commit: 6cb52dc5f46703e0166381c476aa6fce1ec8867e
parent 63c4acb1142cb9d086e19d7c8b9fae494e58d634
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Tue, 22 Feb 2022 10:18:26 +0100
common.css: Add color-scheme property
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/common.css b/common.css
@@ -2,6 +2,13 @@
font-family: serif;
text-rendering: optimizelegibility;
font-kerning: normal;
+ color-scheme: light dark;
+}
+/* <https://github.com/whatwg/html/issues/5426#issuecomment-607286557> */
+@media (prefers-color-scheme: dark) {
+ a {
+ color: violet;
+ }
}
main {
margin: 0 auto;