X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=www%2Fcss%2Fremoteglot.css;h=672e583d7032d80049b90cad9d112f923cb387f6;hb=df46572ddfcbd6a247b8f37b0e7a3842b7b402d2;hp=e0f9444138a83842253f5b7ff9b10faaae9028c8;hpb=f71f5c94d093acda1b39d23cf7a71a21c6a3122b;p=remoteglot diff --git a/www/css/remoteglot.css b/www/css/remoteglot.css index e0f9444..672e583 100644 --- a/www/css/remoteglot.css +++ b/www/css/remoteglot.css @@ -1,4 +1,5 @@ -body { +:root { + color-scheme: light dark; font-family: sans-serif; background: white; color: black; @@ -24,10 +25,6 @@ h3 { margin-left: 0.5em; margin-right: 0.5em; } -#lowdepthcontainer { - font-size: x-small; - margin-top: 0; -} #pvcontainer { clear: left; margin-top: 1em; @@ -202,13 +199,18 @@ a.move:hover { border-right: none; } -.pv, #pv, #history, #lowdepth .depth { /* Mute move colors a bit. */ +.pv, #pv, #history { /* Mute move colors a bit. */ color: #555; } +.imbalance-inverted-piece { + display: none; + filter: invert(1); +} + @media (prefers-color-scheme: dark) { -body { +:root { background: black; color: #eee; } @@ -224,5 +226,9 @@ a.move, a.move:link { a:link { color: rgb(128,128,238); } - +.imbalance-piece { + display: none; +} +.imbalance-inverted-piece { + display: initial; }