diff options
Diffstat (limited to 'searx/static/themes/simple/src/less/search.less')
-rw-r--r-- | searx/static/themes/simple/src/less/search.less | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/searx/static/themes/simple/src/less/search.less b/searx/static/themes/simple/src/less/search.less index fb5cd12f4..458bba155 100644 --- a/searx/static/themes/simple/src/less/search.less +++ b/searx/static/themes/simple/src/less/search.less @@ -77,16 +77,23 @@ button.category_button { } &.selected, - &:active, - &:focus-within { + &:active { color: var(--color-categories-item-selected-font); border-bottom: 2px solid var(--color-categories-item-border-selected); } } -#categories_container:has(button.category_button:focus-within) button.category_button.selected { - color: var(--color-base-font); - border-bottom: none; +// only used when JavaScript is disabled +.no-js #categories_container:has(button.category_button:focus-within) button.category_button { + &.selected { + color: var(--color-base-font); + border-bottom: none; + } + + &:focus-within { + color: var(--color-categories-item-selected-font); + border-bottom: 2px solid var(--color-categories-item-border-selected); + } } #search_logo { |