public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
* [PATCH htdocs] add dark mode support
@ 2023-12-22  1:40 Mike Frysinger
  2023-12-22 10:57 ` Jose E. Marchesi
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2023-12-22  1:40 UTC (permalink / raw)
  To: cgen

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH htdocs] add dark mode support
  2023-12-22  1:40 [PATCH htdocs] add dark mode support Mike Frysinger
@ 2023-12-22 10:57 ` Jose E. Marchesi
  0 siblings, 0 replies; 2+ messages in thread
From: Jose E. Marchesi @ 2023-12-22 10:57 UTC (permalink / raw)
  To: Mike Frysinger via Cgen; +Cc: Mike Frysinger


OK.  Thanks.

> 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>
>  

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-12-22 10:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-22  1:40 [PATCH htdocs] add dark mode support Mike Frysinger
2023-12-22 10:57 ` Jose E. Marchesi

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).