mirror of
https://github.com/kremalicious/asi-calculator.git
synced 2024-12-22 09:23:16 +01:00
fix input styles in dark mode
This commit is contained in:
parent
183e92af7d
commit
837e24ce52
@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user