asi-calculator/components/Select/Select.module.css

37 lines
663 B
CSS
Raw Permalink Normal View History

2024-04-01 14:42:08 +02:00
.selectWrapper {
position: relative;
}
2024-03-30 20:50:51 +01:00
.select {
display: inline-block;
all: unset;
2024-04-06 14:55:43 +02:00
padding: 0 0.5rem;
2024-04-01 02:15:51 +02:00
}
.select:hover:not(.select[disabled]) {
2024-04-01 15:49:03 +02:00
background-color: rgba(var(--background-rgb), 0.1);
2024-04-01 02:15:51 +02:00
}
2024-04-06 23:41:35 +02:00
.select:focus:not(.select[disabled]) {
2024-04-01 02:15:51 +02:00
outline: none;
2024-04-01 15:49:03 +02:00
background-color: rgba(var(--background-rgb), 0.3);
2024-03-30 20:50:51 +01:00
}
2024-04-06 23:41:35 +02:00
@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);
}
}
2024-03-30 20:50:51 +01:00
.icon {
position: absolute;
2024-04-01 02:15:51 +02:00
right: 0.1rem;
width: 1em;
2024-03-30 20:50:51 +01:00
height: 100%;
z-index: -1;
}