summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/src/less/toolkit.less
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-11-19 17:14:35 +0100
committerGitHub <noreply@github.com>2021-11-19 17:14:35 +0100
commitbc0cf9e83e2b52a45ea9a13ffdace07a622ed0cc (patch)
treea179697bd18097f6368eb14b630aa126cea35857 /searx/static/themes/simple/src/less/toolkit.less
parent256ccc4a552ff51a73dc58f33442861870141869 (diff)
parentcf9d161d265ac23cdb1317b8dc878de4235819d3 (diff)
Merge pull request #521 from dalf/simple-theme-style-pref
Simple theme: allow the user to choose auto, light, dark style
Diffstat (limited to 'searx/static/themes/simple/src/less/toolkit.less')
-rw-r--r--searx/static/themes/simple/src/less/toolkit.less7
1 files changed, 6 insertions, 1 deletions
diff --git a/searx/static/themes/simple/src/less/toolkit.less b/searx/static/themes/simple/src/less/toolkit.less
index 195cd9af4..f8ae3c1bb 100644
--- a/searx/static/themes/simple/src/less/toolkit.less
+++ b/searx/static/themes/simple/src/less/toolkit.less
@@ -333,10 +333,15 @@ select {
}
@media (prefers-color-scheme: dark) {
- select {
+ html.theme-auto select,
+ html.theme-dark select {
background-image: data-uri('image/svg+xml;charset=UTF-8', @select-dark-svg-path);
}
}
+
+ html.theme-dark select {
+ background-image: data-uri('image/svg+xml;charset=UTF-8', @select-dark-svg-path);
+ }
}
/* -- checkbox-onoff -- */