mirror of
https://github.com/kremalicious/asi-calculator.git
synced 2024-12-22 09:23:16 +01:00
37 lines
663 B
CSS
37 lines
663 B
CSS
.selectWrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.select {
|
|
display: inline-block;
|
|
all: unset;
|
|
padding: 0 0.5rem;
|
|
}
|
|
|
|
.select:hover:not(.select[disabled]) {
|
|
background-color: rgba(var(--background-rgb), 0.1);
|
|
}
|
|
|
|
.select:focus:not(.select[disabled]) {
|
|
outline: none;
|
|
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 {
|
|
position: absolute;
|
|
right: 0.1rem;
|
|
width: 1em;
|
|
height: 100%;
|
|
z-index: -1;
|
|
}
|