From b367d031b5fc1153c0c7dbc3f49189d0398f3861 Mon Sep 17 00:00:00 2001 From: r-zakarya <82443831+r-zakarya@users.noreply.github.com> Date: Fri, 3 Jul 2026 18:01:57 +0100 Subject: [PATCH] style: define missing --bg-elev-3 / --accent-fg CSS variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bg-elev-3 was referenced (spinner ring, search-clear hover) but never defined in either theme, so var(--bg-elev-3) with no fallback produced an invalid declaration — that's why the busy spinner ring was invisible until it was switched to --border. Define it as a real elevation step above --bg-elev-2 in dark (#34343f) and light (#e3e3dd). Also define --accent-fg (#fff) explicitly instead of relying on the inline var(--accent-fg, #fff) fallback. Audited used-vs-defined custom properties: the only remaining "undefined" one is --strength, which is set at runtime by JS on the password-strength bar (has a 0% fallback) — intentional, not a bug. Co-Authored-By: Claude Opus 4.7 --- css/style.css | 3 +++ delphi-backend/assets/assets.res | Bin 669816 -> 670060 bytes 2 files changed, 3 insertions(+) diff --git a/css/style.css b/css/style.css index 7642cb7..3c290e4 100644 --- a/css/style.css +++ b/css/style.css @@ -35,6 +35,7 @@ kbd { --bg: #15151c; --bg-elev: #1d1d26; --bg-elev-2: #292932; + --bg-elev-3: #34343f; /* one step above elev-2 — hover / raised bits */ --bg-glass: rgba(29,29,38,0.78); --border: #353541; --border-soft: #25252e; @@ -44,6 +45,7 @@ kbd { --accent: #06b6d4; --accent-hover: #22d3ee; --accent-soft: rgba(6,182,212,0.12); + --accent-fg: #ffffff; /* text/icon colour on an accent background */ --accent-2: #a78bfa; --danger: #f43f5e; --danger-soft: rgba(244,63,94,0.12); @@ -63,6 +65,7 @@ kbd { --bg: #f7f7f5; --bg-elev: #ffffff; --bg-elev-2: #efefec; + --bg-elev-3: #e3e3dd; /* one step above elev-2 — hover / raised bits */ --bg-glass: rgba(255,255,255,0.92); --border: #dcdcd7; --border-soft: #ebebe6; diff --git a/delphi-backend/assets/assets.res b/delphi-backend/assets/assets.res index 29dac9d2229da1a7c3959ed934890a43d7ae3d87..d23e21a8cc788641b35e5246d055d7df4f8cb06d 100644 GIT binary patch delta 279 zcmezILF3IQjfNJ+7N!>F7M2#)7Pc1lEgTxpm^g#CYdzzzX7xUWr0dVsdtRQGRJ& t3ecG81|K-Yw)el`@MS`ATdHxYaY_oAZkrBtn{@lzcO2W_zT@on1OVDMUBmzY delta 61 zcmaF!N#n-{jfNJ+7N!>F7M2#)7Pc1lEgTxpm_&oNYdzzzX5GHyHHQ-8c8#|jp-j_( RY{B-2?>V+Ve9zhK2>}0^8CL)R