CSS: add dark mode - gopherproxy-c - Gopher HTTP proxy in C (CGI)
 (HTM) git clone git://git.codemadness.org/gopherproxy-c
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit e72d2bbbbce501b34da095ba1fc7f2b64e887a3b
 (DIR) parent 920fc67b93ffe777375e5be476c0da85962040eb
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       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(-)
       ---
 (DIR) 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: underline; }\n"
       +                "@media (prefers-color-scheme: dark) { body { background-color: #000; color: #bdbdbd; } a { color: #bdbdbd; } }\n"
       +                "</style>\n"
                        "<meta name=\"robots\" content=\"noindex, nofollow\" />\n"
                        "<meta name=\"robots\" content=\"none\" />\n"
                        "<meta content=\"width=device-width\" name=\"viewport\" />\n"