diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-12-18 11:45:10 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-18 11:45:10 +0530 |
| commit | b7f8749cdfbd01d19a71d560f5c8b4322f11542e (patch) | |
| tree | 8ebc0d7a610eaa6736a43fd527c50dc9a75046ca /assets/css/search.css | |
| parent | d6b22825827ed5d2153008b8f123e11374be3363 (diff) | |
Search: Keyboard Bindings for easier navigation (#138)
* set up basic actions on keypress
* add actions to perform conditionally
* add simple highlight animation
* prevent mouseclick to change active element
* clear input box on Escape
* click on Arrow Right
* clear results and focus search-input on esc
* refactor
Diffstat (limited to 'assets/css/search.css')
| -rw-r--r-- | assets/css/search.css | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/assets/css/search.css b/assets/css/search.css index d788cd2..275cbe1 100644 --- a/assets/css/search.css +++ b/assets/css/search.css @@ -1,4 +1,4 @@ -.searchbox input { +#searchbox input { padding: 4px 10px; width: 100%; color: var(--primary); @@ -7,7 +7,7 @@ border-radius: var(--radius); } -.searchbox input:focus { +#searchbox input:focus { border-color: var(--secondary); } @@ -38,3 +38,7 @@ left: 0px; outline: none; } + +#searchResults .active { + transform: scale(.98); +} |
