From 7a30c47f69414033365ef8be20f3c9cf48bdce0a Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Fri, 12 Jun 2020 09:59:16 +0200 Subject: [PATCH] Add some dark mode CSS, for the latest fads. --- www/css/remoteglot.css | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/www/css/remoteglot.css b/www/css/remoteglot.css index 09b6b08..fcd6e57 100644 --- a/www/css/remoteglot.css +++ b/www/css/remoteglot.css @@ -1,5 +1,7 @@ body { font-family: sans-serif; + background: white; + color: black; } h1 { margin-top: 0em; @@ -195,3 +197,28 @@ a.move:hover { .game:last-of-type { border-right: none; } + +.pv, #pv, #history { /* Mute move colors a bit. */ + color: #555; +} + +@media (prefers-color-scheme: dark) { + +body { + background: black; + color: #eee; +} +.pv, #pv, #history { /* Mute move colors a bit. */ + color: #bbb; +} +#numviewers { + color: #bbb; +} +a.move, a.move:link { + color: #eee; +} +a:link { + color: rgb(128,128,238); +} + +} -- 2.39.2