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

26 lines
501 B
CSS
Raw Normal View History

2024-03-30 20:50:51 +01:00
.input {
all: unset;
2024-04-01 02:49:17 +02:00
padding: 0 0.75rem;
2024-03-30 20:50:51 +01:00
text-align: center;
2024-04-01 02:15:51 +02:00
border-right: 1px solid rgba(var(--foreground-rgb), 0.15);
2024-03-30 20:50:51 +01:00
}
.input:hover {
2024-03-30 23:10:36 +01:00
background-color: rgba(var(--background-rgb), 0.5);
2024-03-30 20:50:51 +01:00
}
.input:focus-within {
outline: none;
2024-03-30 23:10:36 +01:00
background-color: rgba(var(--background-rgb), 0.9);
2024-03-30 20:50:51 +01:00
}
@media (prefers-color-scheme: dark) {
.input:hover {
2024-03-31 04:08:51 +02:00
background-color: rgba(var(--foreground-rgb), 0.1);
2024-03-30 20:50:51 +01:00
}
.input:focus-within {
2024-03-31 04:08:51 +02:00
background-color: rgba(var(--foreground-rgb), 0.2);
2024-03-30 20:50:51 +01:00
}
}