From 24b91b0d62243352e4022775894f7c2ee5e626f2 Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Fri, 5 Jun 2026 11:45:11 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20packet-beta=20dark=20mode=20=E2=80=94=20?= =?UTF-8?q?CSS=20override=20for=20hardcoded=20white=20blocks=20(themeVaria?= =?UTF-8?q?bles=20ignored=20by=20beta)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/style.css | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/frontend/style.css b/frontend/style.css index 38b055d..1af5bd9 100644 --- a/frontend/style.css +++ b/frontend/style.css @@ -7766,6 +7766,26 @@ body.popup-mode .content-area { max-width: 100%; max-height: 100%; } +/* ── Dark mode overrides for beta diagrams that ignore themeVariables ── */ +[data-theme="dark"] .mermaid-rendered svg .row rect, +[data-theme="dark"] .mermaid-rendered svg g[id*="packet"] rect { + fill: #1e3a5f !important; + stroke: #4a7ab5 !important; +} +[data-theme="dark"] .mermaid-rendered svg .row text, +[data-theme="dark"] .mermaid-rendered svg g[id*="packet"] text { + fill: #c8daf0 !important; +} +[data-theme="dark"] .mermaid-fullscreen-content svg .row rect, +[data-theme="dark"] .mermaid-fullscreen-content svg g[id*="packet"] rect { + fill: #1e3a5f !important; + stroke: #4a7ab5 !important; +} +[data-theme="dark"] .mermaid-fullscreen-content svg .row text, +[data-theme="dark"] .mermaid-fullscreen-content svg g[id*="packet"] text { + fill: #c8daf0 !important; +} + .mermaid-focus-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 480px; z-index: 9998; background: var(--bg-secondary);