summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraxtlos <axtlos@tar.black>2023-01-15 13:27:06 +0100
committeraxtlos <axtlos@tar.black>2023-01-15 13:27:06 +0100
commite1527d033a85ba79bd65b16dce7e2129fc523d25 (patch)
treebd0e207683327375cc04f5a3aefa4426541f73c6
parent136f25cb445e8e5e305a50f6c63d55f9605047d5 (diff)
downloadwebsite-e1527d033a85ba79bd65b16dce7e2129fc523d25.tar.gz
website-e1527d033a85ba79bd65b16dce7e2129fc523d25.tar.bz2
Add auto dark mode
-rw-r--r--style.css32
1 files changed, 31 insertions, 1 deletions
diff --git a/style.css b/style.css
index b89918e..83ae18f 100644
--- a/style.css
+++ b/style.css
@@ -5,8 +5,10 @@
/* Global defaults. */
+
+
html { max-width: 65em; margin: auto; }
-body { font-family: Helvetica,Arial,sans-serif; }
+body { font-family: Helvetica,Arial,sans-serif; background: white; }
table { margin-top: 0em;
margin-bottom: 0em; }
td { vertical-align: top; }
@@ -251,3 +253,31 @@ a.In { }
.HP { margin-left: 2em;
text-indent: -2em; }
}
+
+@media (prefers-color-scheme: dark) {
+ /* If the operating system is using dark mode, then apply this CSS */
+ body {
+ background: #46494f;
+ }
+ td {
+ color: white;
+ }
+ h1 {
+ color: white;
+ }
+ p {
+ color: white;
+ }
+ section {
+ color: white;
+ }
+ .permalink {
+ color: #6d8ecf;
+ }
+ a:link {
+ color: #6d8ecf;
+ }
+ a:visited {
+ color: #f6baff;
+ }
+}