diff --git a/public/css/style.css b/public/css/style.css index dc24f39..b45376f 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -62,10 +62,7 @@ /* Night: about a third of Day's luminance, warm greys, blue kept low; the UI never brighter than the map (S-52: added panels "should never generate more light than the chart display itself"). */ -/* also while the page's night mode is on (html.night inverts the UI and - inverts the dashboard back: it has to be the dark one then) */ -:root[data-palette="night"], -html.night { +:root[data-palette="night"] { --ui-bg: #0c0c0b; --ui-fg: #8f8b80; --ui-muted: #5f5c55; @@ -89,6 +86,25 @@ html.night { --sign-fg: #0c0c0b; } +/* The page's night mode (html.night) inverts the whole UI and inverts the + dashboard back — so only the instruments and signs take the night values + there; the UI's own colors stay Day's for the inversion to darken. Goes + once the palettes replace the inversion. */ +html.night { + --inst-bezel: 0 0 0; + --inst-halo: #000000; + --inst-text: #a29d90; + --inst-muted: #5f5c55; + --inst-ok: #2a8a33; + --inst-caution: #a87400; + --inst-warning: #ad2a20; + --inst-active: #94339f; + --inst-selected: #137a8c; + --sign-bg: #6b675e; + --sign-ring: #8a231b; + --sign-fg: #0c0c0b; +} + html, body { height: 100%; margin: 0;