fix: chip text and input backgrounds in both light/dark modes
CI / test-and-package (push) Successful in 1m11s
CI / build-android (push) Successful in 1m31s

Root fixes:
- .chip now has explicit color: var(--text) in base theme,
  not just dark — buttons no longer use browser default
- All inputs/selects/textareas get background: var(--surface)
  and color: var(--text) in both light and dark themes
- Removed color-scheme: dark on body (prevented browser from
  forcing dark form controls regardless of data-theme)
- Dark mode input override only changes background shade now

This fixes: unreadable chip text and always-dark inputs.
This commit is contained in:
agentbox
2026-08-01 13:29:55 +00:00
parent ec40e73422
commit 7a90fec638
+13 -8
View File
@@ -98,6 +98,8 @@ body {
border: 1px solid var(--border);
border-radius: 4px;
font-size: 1rem;
background: var(--surface);
color: var(--text);
}
.form-card button[type="submit"] { margin-top: 20px; width: 100%; }
.form-footer { margin-top: 16px; text-align: center; font-size: 0.85rem; color: var(--muted); }
@@ -133,6 +135,7 @@ body {
border-radius: 4px;
font-size: 1rem;
background: var(--surface);
color: var(--text);
}
.hint { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
@@ -194,6 +197,7 @@ body {
/* ── Chips ── */
.chip {
padding: 6px 18px;
color: var(--text);
border: 2px solid var(--border);
border-radius: 20px;
background: var(--surface);
@@ -252,7 +256,15 @@ body {
.manage-form .hint { margin-bottom: 8px; }
.manage-form label { display: block; margin: 12px 0 4px; font-weight: 500; font-size: 0.85rem; }
.manage-form input[type="text"],
.manage-form input[type="password"] { width: 100%; padding: 6px 10px; border: 1px solid var(--border); border-radius: 4px; margin-bottom: 8px; }
.manage-form input[type="password"] {
width: 100%;
padding: 6px 10px;
border: 1px solid var(--border);
border-radius: 4px;
margin-bottom: 8px;
background: var(--surface);
color: var(--text);
}
/* ── Language footer ── */
.lang-footer {
@@ -379,9 +391,6 @@ body {
}
/* ── Dark mode overrides for non-variable colors ── */
[data-theme="dark"] body {
color-scheme: dark;
}
[data-theme="dark"] .btn:hover {
background: #2a2a4a;
}
@@ -407,9 +416,6 @@ body {
[data-theme="dark"] .chip-no.active {
color: #1a1a2e;
}
[data-theme="dark"] .chip {
color: var(--text);
}
[data-theme="dark"] .badge {
color: var(--text);
}
@@ -449,7 +455,6 @@ body {
[data-theme="dark"] select,
[data-theme="dark"] textarea {
background: #1a1a30;
color: var(--text);
border-color: var(--border);
}
[data-theme="dark"] input::placeholder {