[htdocs,2/2] css: add dark mode support

Message ID 20230112044750.10509-2-vapier@gentoo.org
State New
Headers
Series [htdocs,1/2] css: start a file to hold common content |

Commit Message

Mike Frysinger Jan. 12, 2023, 4:47 a.m. UTC
  ---
 css/site.css | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
  

Patch

diff --git a/css/site.css b/css/site.css
index 824a5b9573bb..0252f5602ead 100644
--- a/css/site.css
+++ b/css/site.css
@@ -14,3 +14,22 @@  a:active {
 a:visited {
   color: #90D;
 }
+
+@media (prefers-color-scheme: dark) {
+  body {
+    background-color: #333;
+    color: #FFF;
+  }
+
+  a:link {
+    color: #8CB4FF;
+  }
+
+  a:active {
+    color: #0FF;
+  }
+
+  a:visited {
+    color: #8CB400;
+  }
+}