From 8c999919b8ce82c2934fdd51f2b3817456aa3188 Mon Sep 17 00:00:00 2001 From: Roman Priesol Date: Mon, 30 Nov 2026 21:01:20 +0100 Subject: [PATCH] =?UTF-8?q?Night=20mode:=20only=20the=20instruments=20and?= =?UTF-8?q?=20signs=20take=20the=20night=20palette=20(the=20UI's=20own=20c?= =?UTF-8?q?olors=20stay=20Day's=20for=20the=20page=20inversion=20to=20dark?= =?UTF-8?q?en=20=E2=80=94=20an=20active=20menu=20item=20had=20gone=20almos?= =?UTF-8?q?t=20white)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/css/style.css | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) 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;