fix: chip text and input backgrounds in both light/dark modes
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:
+13
-8
@@ -98,6 +98,8 @@ body {
|
|||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
|
background: var(--surface);
|
||||||
|
color: var(--text);
|
||||||
}
|
}
|
||||||
.form-card button[type="submit"] { margin-top: 20px; width: 100%; }
|
.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); }
|
.form-footer { margin-top: 16px; text-align: center; font-size: 0.85rem; color: var(--muted); }
|
||||||
@@ -133,6 +135,7 @@ body {
|
|||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
background: var(--surface);
|
background: var(--surface);
|
||||||
|
color: var(--text);
|
||||||
}
|
}
|
||||||
.hint { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
|
.hint { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
|
||||||
|
|
||||||
@@ -194,6 +197,7 @@ body {
|
|||||||
/* ── Chips ── */
|
/* ── Chips ── */
|
||||||
.chip {
|
.chip {
|
||||||
padding: 6px 18px;
|
padding: 6px 18px;
|
||||||
|
color: var(--text);
|
||||||
border: 2px solid var(--border);
|
border: 2px solid var(--border);
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
background: var(--surface);
|
background: var(--surface);
|
||||||
@@ -252,7 +256,15 @@ body {
|
|||||||
.manage-form .hint { margin-bottom: 8px; }
|
.manage-form .hint { margin-bottom: 8px; }
|
||||||
.manage-form label { display: block; margin: 12px 0 4px; font-weight: 500; font-size: 0.85rem; }
|
.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="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 ── */
|
/* ── Language footer ── */
|
||||||
.lang-footer {
|
.lang-footer {
|
||||||
@@ -379,9 +391,6 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ── Dark mode overrides for non-variable colors ── */
|
/* ── Dark mode overrides for non-variable colors ── */
|
||||||
[data-theme="dark"] body {
|
|
||||||
color-scheme: dark;
|
|
||||||
}
|
|
||||||
[data-theme="dark"] .btn:hover {
|
[data-theme="dark"] .btn:hover {
|
||||||
background: #2a2a4a;
|
background: #2a2a4a;
|
||||||
}
|
}
|
||||||
@@ -407,9 +416,6 @@ body {
|
|||||||
[data-theme="dark"] .chip-no.active {
|
[data-theme="dark"] .chip-no.active {
|
||||||
color: #1a1a2e;
|
color: #1a1a2e;
|
||||||
}
|
}
|
||||||
[data-theme="dark"] .chip {
|
|
||||||
color: var(--text);
|
|
||||||
}
|
|
||||||
[data-theme="dark"] .badge {
|
[data-theme="dark"] .badge {
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
}
|
}
|
||||||
@@ -449,7 +455,6 @@ body {
|
|||||||
[data-theme="dark"] select,
|
[data-theme="dark"] select,
|
||||||
[data-theme="dark"] textarea {
|
[data-theme="dark"] textarea {
|
||||||
background: #1a1a30;
|
background: #1a1a30;
|
||||||
color: var(--text);
|
|
||||||
border-color: var(--border);
|
border-color: var(--border);
|
||||||
}
|
}
|
||||||
[data-theme="dark"] input::placeholder {
|
[data-theme="dark"] input::placeholder {
|
||||||
|
|||||||
Reference in New Issue
Block a user