public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: cgen@sourceware.org
Subject: [PATCH htdocs] add dark mode support
Date: Thu, 21 Dec 2023 20:40:36 -0500	[thread overview]
Message-ID: <ZYTpFJsZiDHJ7mXQ@vapier> (raw)

[-- Attachment #1: Type: text/plain, Size: 722 bytes --]

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>
 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

             reply	other threads:[~2023-12-22  1:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-22  1:40 Mike Frysinger [this message]
2023-12-22 10:57 ` Jose E. Marchesi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZYTpFJsZiDHJ7mXQ@vapier \
    --to=vapier@gentoo.org \
    --cc=cgen@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).