still testing css variables inside media queries
authordanix <danix@danix.xyz>
Sun, 26 Feb 2023 05:27:43 +0000 (06:27 +0100)
committerdanix <danix@danix.xyz>
Sun, 26 Feb 2023 05:27:43 +0000 (06:27 +0100)
gitweb-danixland/gitweb.css

index a6014e3..41b3022 100644 (file)
@@ -48,8 +48,10 @@ a { outline: none; }
   --fg: #393E46;
 }
 @media screen and (prefers-color-scheme: dark) {
-  --bg: #393E46;
-  --fg: #D8D9CF;
+  :root {
+    --bg: #393E46;
+    --fg: #D8D9CF;
+  }
 }