summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/src/less
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-10-30 11:54:31 +0200
committerAlexandre Flament <alex@al-f.net>2021-10-30 22:33:36 +0200
commit60d595ea528cd5c63543a6ed5f4f102c23b33090 (patch)
tree5b0cb88351ecfac26012fcbec7a939573b1933fd /searx/static/themes/simple/src/less
parentd0a31645145aa34dc41e0f4defcdf8c909b10416 (diff)
downloadsearxng-60d595ea528cd5c63543a6ed5f4f102c23b33090.tar.gz
searxng-60d595ea528cd5c63543a6ed5f4f102c23b33090.zip
[mod] simple theme: use :root instead of html to define CSS variables
This allows to use the CSS variables in inline svg.
Diffstat (limited to 'searx/static/themes/simple/src/less')
-rw-r--r--searx/static/themes/simple/src/less/definitions.less4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/static/themes/simple/src/less/definitions.less b/searx/static/themes/simple/src/less/definitions.less
index d99cca713..d2e91f1c3 100644
--- a/searx/static/themes/simple/src/less/definitions.less
+++ b/searx/static/themes/simple/src/less/definitions.less
@@ -5,7 +5,7 @@
*/
/// Light Theme
-html {
+:root {
/// Base Colors
--color-base-font: #444;
--color-base-font-rgb: 68, 68, 68;
@@ -106,7 +106,7 @@ html {
/// Dark Theme (autoswitch based on device pref)
@media (prefers-color-scheme: dark) {
- html {
+ :root {
/// Base Colors
--color-base-font: #bbb;
--color-base-font-rgb: 187, 187, 187;