Introduction
Introduction Statistics Contact Development Disclaimer Help
CSS: add dark mode - gopherproxy-c - Gopher HTTP proxy in C (CGI)
git clone git://git.codemadness.org/gopherproxy-c
Log
Files
Refs
README
LICENSE
---
commit e72d2bbbbce501b34da095ba1fc7f2b64e887a3b
parent 920fc67b93ffe777375e5be476c0da85962040eb
Author: Hiltjo Posthuma <[email protected]>
Date: Sat, 19 Mar 2022 11:30:56 +0100
CSS: add dark mode
Diffstat:
M gopherproxy.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gopherproxy.c b/gopherproxy.c
@@ -606,8 +606,10 @@ main(void)
fputs(" - ", stdout);
fputs(
"Gopher HTTP proxy</title>\n"
- "<style type=\"text/css\">a { text-decoration: none; } "
- "a:hover { text-decoration: underline; }</style>\n"
+ "<style type=\"text/css\">\n"
+ "a { text-decoration: none; } a:hover { text-decoration: under…
+ "@media (prefers-color-scheme: dark) { body { background-color…
+ "</style>\n"
"<meta name=\"robots\" content=\"noindex, nofollow\" />\n"
"<meta name=\"robots\" content=\"none\" />\n"
"<meta content=\"width=device-width\" name=\"viewport\" />\n"
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.