[PATCH htdocs] add dark mode support

Mike Frysinger vapier@gentoo.org
Fri Dec 22 01:40:36 GMT 2023


Very basic, but gets the job done.

Index: index.html
===================================================================
RCS file: /cvs/cgen/htdocs/index.html,v
retrieving revision 1.31
diff -u -p -r1.31 index.html
--- index.html	22 Dec 2023 01:25:42 -0000	1.31
+++ index.html	22 Dec 2023 01:39:24 -0000
@@ -2,6 +2,24 @@
 <head>
 <title>CGEN</title>
 <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+<style type="text/css"><!--
+body {
+  background-color: white;
+  color: black;
+}
+
+@media (prefers-color-scheme: dark) {
+  body {
+    background-color: #333;
+    color: #FFF;
+  }
+
+  a:link {
+    color: #8CB4FF;
+  }
+}
+--></style>
 </head>
 <body>
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/cgen/attachments/20231221/f6083004/attachment.sig>


More information about the Cgen mailing list