summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/src/less/search.less
diff options
context:
space:
mode:
authorBnyro <bnyro@tutanota.com>2024-11-26 15:01:21 +0100
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-11-29 15:05:00 +0100
commit6a9b97cad23c2dccb6e5bbe36b58fd3280da8af9 (patch)
tree951cf758987a450b4474ef76f096d0a19bc9a4a6 /searx/static/themes/simple/src/less/search.less
parent6ca89e13198ed3b1e67e8f8209022affc4377603 (diff)
[feat] search: shift/ctrl click a category to select multiple categories
Diffstat (limited to 'searx/static/themes/simple/src/less/search.less')
-rw-r--r--searx/static/themes/simple/src/less/search.less17
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 {