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

Mike Frysinger vapier@gentoo.org
Thu Jan 12 04:47:50 GMT 2023


---
 css/site.css | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

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;
+  }
+}
-- 
2.39.0



More information about the Gdb-patches mailing list