fixes from master

This commit is contained in:
Carson Gross 2023-04-11 10:07:27 -06:00
parent 56ed5696e6
commit 926cfb02f0
2 changed files with 16 additions and 18 deletions

View File

@ -158,7 +158,7 @@ The table below lists all other attributes available in htmx.
| [`htmx:responseError`](@/events.md#htmx:responseError) | triggered when an HTTP response error (non-`200` or `300` response code) occurs | [`htmx:responseError`](@/events.md#htmx:responseError) | triggered when an HTTP response error (non-`200` or `300` response code) occurs
| [`htmx:sendError`](@/events.md#htmx:sendError) | triggered when a network error prevents an HTTP request from happening | [`htmx:sendError`](@/events.md#htmx:sendError) | triggered when a network error prevents an HTTP request from happening
| [`htmx:sseError`](@/events.md#htmx:sseError) | triggered when an error occurs with a SSE source | [`htmx:sseError`](@/events.md#htmx:sseError) | triggered when an error occurs with a SSE source
| `htmx:sseOpen` | triggered when a SSE source is opened | [`htmx:sseOpen`](/events#htmx:sseOpen) | triggered when a SSE source is opened
| [`htmx:swapError`](@/events.md#htmx:swapError) | triggered when an error occurs during the swap phase | [`htmx:swapError`](@/events.md#htmx:swapError) | triggered when an error occurs during the swap phase
| [`htmx:targetError`](@/events.md#htmx:targetError) | triggered when an invalid target is specified | [`htmx:targetError`](@/events.md#htmx:targetError) | triggered when an invalid target is specified
| [`htmx:timeout`](@/events.md#htmx:timeout) | triggered when a request timeout occurs | [`htmx:timeout`](@/events.md#htmx:timeout) | triggered when a request timeout occurs

View File

@ -416,28 +416,26 @@ background: none;
} }
#search { .search-box {
transition: all 0.3s ease-out; transition: all .2s ease-in-out;
width: 3em; width: 2.5rem;
padding: 6px 8px; padding: 4px 6px;
border: 1px solid #eee; border: 2px solid #eee;
background-color: inherit; border-radius: 10px;
border-radius: 10px; margin-right: 10px;
margin-right: 6px; outline: 0;
position: relative;
vertical-align: top;
} }
.search-box::placeholder {
#search:hover, #search:not(:placeholder-shown) { text-align: right;
border: 1px solid rgb(204, 204, 204);
background-color: white;
} }
.search-box:hover, .search-box:not(:placeholder-shown) {
border: 2px solid var(--midBlue);
}
#search:focus, #search:not(:placeholder-shown) { .search-box:active, .search-box:focus, .search-box:not(:placeholder-shown) {
width: 150px; width: 10rem;
border-radius: 4px;
} }
footer { footer {