File tree Expand file tree Collapse file tree
themes/htmx-theme/static/css Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ The table below lists all other attributes available in htmx.
158158| [ ` htmx:responseError ` ] ( @/events.md#htmx:responseError ) | triggered when an HTTP response error (non-` 200 ` or ` 300 ` response code) occurs
159159| [ ` htmx:sendError ` ] ( @/events.md#htmx:sendError ) | triggered when a network error prevents an HTTP request from happening
160160| [ ` htmx:sseError ` ] ( @/events.md#htmx:sseError ) | triggered when an error occurs with a SSE source
161- | ` htmx:sseOpen ` | triggered when a SSE source is opened
161+ | [ ` htmx:sseOpen ` ] ( /events#htmx:sseOpen ) | triggered when a SSE source is opened
162162| [ ` htmx:swapError ` ] ( @/events.md#htmx:swapError ) | triggered when an error occurs during the swap phase
163163| [ ` htmx:targetError ` ] ( @/events.md#htmx:targetError ) | triggered when an invalid target is specified
164164| [ ` htmx:timeout ` ] ( @/events.md#htmx:timeout ) | triggered when a request timeout occurs
Original file line number Diff line number Diff line change @@ -416,28 +416,26 @@ background: none;
416416}
417417
418418
419- # search {
420- transition : all 0.3s ease-out;
421- width : 3em ;
422- padding : 6px 8px ;
423- border : 1px solid # eee ;
424- background-color : inherit;
425- border-radius : 10px ;
426- margin-right : 6px ;
427- position : relative;
428- vertical-align : top;
419+ .search-box {
420+ transition : all .2s ease-in-out;
421+ width : 2.5rem ;
422+ padding : 4px 6px ;
423+ border : 2px solid # eee ;
424+ border-radius : 10px ;
425+ margin-right : 10px ;
426+ outline : 0 ;
429427}
430428
431-
432- # search : hover , # search : not (: placeholder-shown ) {
433- border : 1px solid rgb (204 , 204 , 204 );
434- background-color : white;
429+ .search-box ::placeholder {
430+ text-align : right;
435431}
436432
433+ .search-box : hover , .search-box : not (: placeholder-shown ) {
434+ border : 2px solid var (--midBlue );
435+ }
437436
438- # search : focus , # search : not (: placeholder-shown ) {
439- width : 150px ;
440- border-radius : 4px ;
437+ .search-box : active , .search-box : focus , .search-box : not (: placeholder-shown ) {
438+ width : 10rem ;
441439}
442440
443441footer {
You can’t perform that action at this time.
0 commit comments