fix: select option visibility in dark mode with proper background colors
This commit is contained in:
parent
bdfba8cacc
commit
d7b8834481
1 changed files with 27 additions and 0 deletions
|
@ -89,6 +89,33 @@
|
|||
background-size: 8px;
|
||||
padding-right: 24px;
|
||||
width: auto !important;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// Dark mode: try to achieve dark background for select options
|
||||
.theme-dark .ds4-item-sheet .form-fields select {
|
||||
color-scheme: dark;
|
||||
|
||||
option {
|
||||
background-color: var(--color-cool-4) !important;
|
||||
background: var(--color-cool-4) !important;
|
||||
color: var(--color-light-2) !important;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none;
|
||||
}
|
||||
|
||||
option:checked {
|
||||
background-color: var(--color-cool-3) !important;
|
||||
background: var(--color-cool-3) !important;
|
||||
color: var(--color-light-1) !important;
|
||||
}
|
||||
|
||||
option:hover {
|
||||
background-color: var(--color-cool-3) !important;
|
||||
background: var(--color-cool-3) !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue