X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=www%2Fcss%2Fremoteglot.css;h=a2e221fd0847b5c5a0ba1694fe4c9a4bff49b11b;hb=f120f5172ba09d12928acc7228e4aa331cbdc190;hp=e0f9444138a83842253f5b7ff9b10faaae9028c8;hpb=f71f5c94d093acda1b39d23cf7a71a21c6a3122b;p=remoteglot diff --git a/www/css/remoteglot.css b/www/css/remoteglot.css index e0f9444..a2e221f 100644 --- a/www/css/remoteglot.css +++ b/www/css/remoteglot.css @@ -1,4 +1,5 @@ -body { +html { + color-scheme: light dark; font-family: sans-serif; background: white; color: black; @@ -13,46 +14,41 @@ h3 { #scorecontainer { font-size: x-large; margin-top: 0; + display: grid; + grid-template-columns: max-content 1fr; + gap: 12px; } #score { - float: left; + grid-column: 1; } #scoresparkcontainer { + grid-column: 2; overflow: hidden; + height: 0.85em; + margin-top: 0.15em; + width: 100%; } -#scorespark { - margin-left: 0.5em; - margin-right: 0.5em; -} -#lowdepthcontainer { - font-size: x-small; - margin-top: 0; +#sparklinehover { + position: absolute; + display: none; + background-color: rgba(0, 0, 0, 0.6); + color: white; + font-size: 10px; + white-space: nowrap; + padding: 5px; + border: 1px solid white; + z-index: 10000; } #pvcontainer { clear: left; margin-top: 1em; } -.window { - position: absolute; - width: 0px; - height: 0px; - opacity: 0.0; -} .c1 { opacity: 0.75; } -.l1arrow { - opacity: 1.0; -} .hidden { display: none; } -.vir path { - opacity: 0.0; -} -.vir path.l1arrow { - opacity: 1.0; -} #news { font-size: smaller; } @@ -102,13 +98,14 @@ p { display: block; width: 100%; padding: 0; + transform: translate(0,0); /* Make it a containing block. */ } #hiddenboard { display: none; } #bottompanel { display: block; - width: 100%; + width: calc(100% + 4px); font-size: smaller; margin-top: 0.5em; margin-bottom: 0; @@ -184,9 +181,6 @@ a.move:hover { #linenav { display: none; } -#lomonosov { - display: none; -} #games { font-size: smaller; @@ -202,13 +196,23 @@ 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); +} + +.imbalance-piece, .imbalance-inverted-piece { + width: 15px; + height: 15px; +} + @media (prefers-color-scheme: dark) { -body { +:root { background: black; color: #eee; } @@ -224,5 +228,11 @@ a.move, a.move:link { a:link { color: rgb(128,128,238); } +.imbalance-piece { + display: none; +} +.imbalance-inverted-piece { + display: initial; +} }