diff options
author | tdro <tdro@noreply.example.com> | 2022-05-04 03:56:38 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-05-04 03:56:38 -0400 |
commit | d4570297d931c001b3a95ba3ab5f3891fd8a99f9 (patch) | |
tree | 9645db81f8e4b83e83457b62ea9cc480601a6710 /static/css/default.css | |
parent | 8200cb6919489187b2916fc8902f75eb4293d1a2 (diff) | |
download | canory-d4570297d931c001b3a95ba3ab5f3891fd8a99f9.tar.gz canory-d4570297d931c001b3a95ba3ab5f3891fd8a99f9.tar.bz2 canory-d4570297d931c001b3a95ba3ab5f3891fd8a99f9.zip |
static/js/fixedsearch: Keep search bar focused on inactivity
Diffstat (limited to 'static/css/default.css')
-rw-r--r-- | static/css/default.css | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/static/css/default.css b/static/css/default.css index 3ecb7a9..caeaab5 100644 --- a/static/css/default.css +++ b/static/css/default.css @@ -1147,6 +1147,7 @@ search-entry { width: 100%; } +search-entry[data-focus], search-entry:focus-within { position: absolute; } @@ -1161,12 +1162,12 @@ search-entry form { background-color: var(--background); border-radius: 0.5rem; border: 1px solid; - border: 1px solid; border-color: #ccc; border-color: var(--border-darker); display: inline-flex; - margin: 0 0.5rem; + margin: 0 1rem; width: 100%; + position: relative; } search-entry form button { @@ -1212,13 +1213,14 @@ search-entry form input:focus { search-entry ul { position: absolute; background-color: inherit; - padding-top: 3rem; + padding-top: 2.9rem; border: 1px solid #ccc; border: 1px solid var(--border-darker); border-radius: 0.5rem; z-index: -1; - margin-right: 0.5rem; + margin-right: 1rem; margin-left: -0.05rem; + width: 100.3%; } search-entry ul li a span { |