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

26 lines
487 B
CSS
Raw Permalink Normal View History

2024-03-30 20:50:51 +01:00
.input {
all: unset;
2024-04-06 14:55:43 +02:00
padding: 0 0.5rem;
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-04-01 15:49:03 +02:00
background-color: rgba(var(--background-rgb), 0.1);
2024-03-30 20:50:51 +01:00
}
2024-04-06 23:41:35 +02:00
.input:focus {
2024-03-30 20:50:51 +01: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) {
.input:hover {
background-color: rgba(var(--foreground-rgb), 0.05);
}
.input:focus {
background-color: rgba(var(--foreground-rgb), 0.2);
}
}