]> git.sesse.net Git - remoteglot/blobdiff - www/css/remoteglot.css
Fix SVG positioning when we are scrolled.
[remoteglot] / www / css / remoteglot.css
index 6232f063ddf3899c9ace8627b032d1cedd843adf..a928985e8b2abc19fbeb22f480e3a3ba3bfdc9d4 100644 (file)
@@ -1,5 +1,11 @@
-body {
+:root {
+       color-scheme: light dark;
        font-family: sans-serif;
+       background: white;
+       color: black;
+}
+h1 {
+       margin-top: 0em;
 }
 h3 {
        margin-top: 1em;
@@ -93,6 +99,7 @@ p {
        display: block;
        width: 100%;
        padding: 0;
+       transform: translate(0,0);  /* Make it a containing block. */
 }
 #hiddenboard {
        display: none;
@@ -175,3 +182,56 @@ a.move:hover {
 #linenav {
        display: none;
 }
+#lomonosov {
+       display: none;
+}
+
+#games {
+       font-size: smaller;
+       margin-bottom: 0.5em;
+}
+.game {
+       padding: 0.25em 1em 0.25em 1em;
+       margin: 0;
+       background: #eee;
+       border-right: 1px solid #bbb;
+}
+.game:last-of-type {
+       border-right: none;
+}
+
+.pv, #pv, #history {  /* Mute move colors a bit. */
+       color: #555;
+}
+
+.imbalance-inverted-piece {
+       display: none;
+       filter: invert(1);
+}
+
+@media (prefers-color-scheme: dark) {
+
+:root {
+       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);
+}
+.imbalance-piece {
+       display: none;
+}
+.imbalance-inverted-piece {
+       display: initial;
+}
+
+}