]> git.sesse.net Git - remoteglot/blobdiff - www/css/remoteglot.css
Better imbalance pieces in dark mode.
[remoteglot] / www / css / remoteglot.css
index fcd6e5759fd3bbbe5393a3e4e2454b7ab74e7601..672e583d7032d80049b90cad9d112f923cb387f6 100644 (file)
@@ -1,4 +1,5 @@
-body {
+:root {
+       color-scheme: light dark;
        font-family: sans-serif;
        background: white;
        color: black;
@@ -202,9 +203,14 @@ a.move:hover {
        color: #555;
 }
 
+.imbalance-inverted-piece {
+       display: none;
+       filter: invert(1);
+}
+
 @media (prefers-color-scheme: dark) {
 
-body {
+:root {
        background: black;
        color: #eee;
 }
@@ -220,5 +226,9 @@ a.move, a.move:link {
 a:link {
        color: rgb(128,128,238);
 }
-
+.imbalance-piece {
+       display: none;
+}
+.imbalance-inverted-piece {
+       display: initial;
 }