fix input styles in dark mode

This commit is contained in:
Matthias Kretschmann 2024-04-06 22:41:35 +01:00
parent 183e92af7d
commit 837e24ce52
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 22 additions and 2 deletions

View File

@ -9,7 +9,17 @@
background-color: rgba(var(--background-rgb), 0.1); background-color: rgba(var(--background-rgb), 0.1);
} }
.input:focus-within { .input:focus {
outline: none; outline: none;
background-color: rgba(var(--background-rgb), 0.3); background-color: rgba(var(--background-rgb), 0.3);
} }
@media (prefers-color-scheme: dark) {
.input:hover {
background-color: rgba(var(--foreground-rgb), 0.05);
}
.input:focus {
background-color: rgba(var(--foreground-rgb), 0.2);
}
}

View File

@ -12,11 +12,21 @@
background-color: rgba(var(--background-rgb), 0.1); background-color: rgba(var(--background-rgb), 0.1);
} }
.select:focus-within { .select:focus:not(.select[disabled]) {
outline: none; outline: none;
background-color: rgba(var(--background-rgb), 0.3); background-color: rgba(var(--background-rgb), 0.3);
} }
@media (prefers-color-scheme: dark) {
.select:hover:not(.select[disabled]) {
background-color: rgba(var(--foreground-rgb), 0.05);
}
.select:focus:not(.select[disabled]) {
background-color: rgba(var(--foreground-rgb), 0.2);
}
}
.icon { .icon {
position: absolute; position: absolute;
right: 0.1rem; right: 0.1rem;