Skip to content

Commit f9c1805

Browse files
Copilotdorkmo
andcommitted
Use CSS variable for pill background color
Co-authored-by: dorkmo <[email protected]>
1 parent 8ddb6d9 commit f9c1805

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

TankAlarm-112025-Server-BluesOpta/TankAlarm-112025-Server-BluesOpta.ino

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ static const char CONFIG_GENERATOR_HTML[] PROGMEM = R"HTML(
269269
--chip: #f8fafc;
270270
--input-border: #cbd5e1;
271271
--danger: #ef4444;
272+
--pill-bg: rgba(37,99,235,0.12);
272273
}
273274
body[data-theme="dark"] {
274275
--bg: #0f172a;
@@ -284,6 +285,7 @@ static const char CONFIG_GENERATOR_HTML[] PROGMEM = R"HTML(
284285
--chip: rgba(148,163,184,0.15);
285286
--input-border: rgba(148,163,184,0.4);
286287
--danger: #f87171;
288+
--pill-bg: rgba(56,189,248,0.18);
287289
}
288290
header {
289291
background: var(--header-bg);
@@ -318,14 +320,11 @@ static const char CONFIG_GENERATOR_HTML[] PROGMEM = R"HTML(
318320
padding: 10px 20px;
319321
text-decoration: none;
320322
font-weight: 600;
321-
background: rgba(37,99,235,0.12);
323+
background: var(--pill-bg);
322324
color: var(--accent);
323325
border: 1px solid transparent;
324326
transition: transform 0.15s ease;
325327
}
326-
body[data-theme="dark"] .pill {
327-
background: rgba(56,189,248,0.18);
328-
}
329328
.pill:hover {
330329
transform: translateY(-1px);
331330
}

0 commit comments

Comments
 (0)