Welcome to little lamb

Code » qmdoc » commit 239ba7b

Make light theme "default"/always used, helping..

author Olivier Brunel
2022-12-23 17:17:18 UTC
committer Olivier Brunel
2022-12-23 17:17:21 UTC
parent b92b8a213360bfb0d53d1b096020a7c991051f89

Make light theme "default"/always used, helping..

for browsers that don't support @media

base.htm +86 -88

diff --git a/base.htm b/base.htm
index 1ee8094..d99229a 100644
--- a/base.htm
+++ b/base.htm
@@ -266,94 +266,92 @@ main footer {
     }
 </style>
 <style>
-@media (prefers-color-scheme: light) {
-    :root {
-        color-scheme: light;
-    }
-    header {
-        background: #2980B9;
-    }
-    header section h1 {
-        color: #fcfcfc;
-    }
-    header section h2 {
-        color: #56b5ee;
-    }
-    header nav {
-        background: #343131;
-    }
-    header nav ul li:hover {
-        background: #4e4a4a;
-    }
-    header nav ul ul li a {
-        color: #b3b3b3;
-    }
-    header nav li a {
-        color: #55a5d9;
-    }
-    main, main footer {
-        background: #fbf4ce;
-    }
-    main {
-        color: #404040;
-    }
-    main .highlight {
-        color: blue;
-    }
-    main .highlight2 {
-        color: red;
-    }
-    main .highlighted {
-        background: #ff0;
-    }
-    main pre {
-        border: 1px solid #e1e4e5;
-        background: #f2ecb7;
-    }
-    main a {
-        color: blue;
-    }
-    main a:visited {
-        color: purple;
-    }
-    main kbd {
-        border: 1px solid #888;
-        background-image: linear-gradient(#ddd 0%,#eee 10%,#bbb 10%,#ccc 30%,#fff 85%,#eee 85%,#888 100%);
-    }
-    main span.button {
-        border: 1px solid #555;
-        background-image: linear-gradient(#fff 0%,#fff 1%,#f2f2f2 1%,#ebebeb 50%,#ddd 50%,#cfcfcf 99%,#fff 99%,#fff 100%);
-    }
-    main div.box :first-child {
-        color: #eee;
-    }
-    main div.box.hint {
-        background: #91ffad;
-    }
-    main div.box.hint :first-child {
-        background: #24ae2d;
-    }
-    main div.box.info {
-        background: #71e1fb;
-    }
-    main div.box.info :first-child {
-        background: #217ed0;
-    }
-    main div.box.warn {
-        background: #fdbf91;
-    }
-    main div.box.warn :first-child {
-        background: #df5b5b;
-    }
-    main div.box.note {
-        background: #c4bfb0;
-    }
-    main div.box.note :first-child {
-        background: #5c5353;
-    }
-    main footer {
-        border-top: 2px solid #2d70aa;
-    }
+:root {
+    color-scheme: light;
+}
+header {
+    background: #2980B9;
+}
+header section h1 {
+    color: #fcfcfc;
+}
+header section h2 {
+    color: #56b5ee;
+}
+header nav {
+    background: #343131;
+}
+header nav ul li:hover {
+    background: #4e4a4a;
+}
+header nav ul ul li a {
+    color: #b3b3b3;
+}
+header nav li a {
+    color: #55a5d9;
+}
+main, main footer {
+    background: #fbf4ce;
+}
+main {
+    color: #404040;
+}
+main .highlight {
+    color: blue;
+}
+main .highlight2 {
+    color: red;
+}
+main .highlighted {
+    background: #ff0;
+}
+main pre {
+    border: 1px solid #e1e4e5;
+    background: #f2ecb7;
+}
+main a {
+    color: blue;
+}
+main a:visited {
+    color: purple;
+}
+main kbd {
+    border: 1px solid #888;
+    background-image: linear-gradient(#ddd 0%,#eee 10%,#bbb 10%,#ccc 30%,#fff 85%,#eee 85%,#888 100%);
+}
+main span.button {
+    border: 1px solid #555;
+    background-image: linear-gradient(#fff 0%,#fff 1%,#f2f2f2 1%,#ebebeb 50%,#ddd 50%,#cfcfcf 99%,#fff 99%,#fff 100%);
+}
+main div.box :first-child {
+    color: #eee;
+}
+main div.box.hint {
+    background: #91ffad;
+}
+main div.box.hint :first-child {
+    background: #24ae2d;
+}
+main div.box.info {
+    background: #71e1fb;
+}
+main div.box.info :first-child {
+    background: #217ed0;
+}
+main div.box.warn {
+    background: #fdbf91;
+}
+main div.box.warn :first-child {
+    background: #df5b5b;
+}
+main div.box.note {
+    background: #c4bfb0;
+}
+main div.box.note :first-child {
+    background: #5c5353;
+}
+main footer {
+    border-top: 2px solid #2d70aa;
 }
 </style>
 <style>