mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-05 20:56:13 -05:00
52 lines
1.0 KiB
CSS
52 lines
1.0 KiB
CSS
.iconNav {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: var(--s-2);
|
|
overflow-x: auto;
|
|
scroll-snap-type: x mandatory;
|
|
padding-block: var(--s-2);
|
|
scrollbar-width: thin;
|
|
}
|
|
|
|
.iconNavItem {
|
|
flex: 0 0 auto;
|
|
scroll-snap-align: start;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: var(--field-size);
|
|
aspect-ratio: 1 / 1;
|
|
background-color: var(--color-bg);
|
|
border: 2px solid var(--color-bg-higher);
|
|
border-radius: var(--radius-box);
|
|
color: var(--color-text);
|
|
transition: all 0.2s;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.iconNavItem:hover {
|
|
background-color: var(--color-bg-higher);
|
|
}
|
|
|
|
.iconNavItem:focus-visible {
|
|
outline: 2px solid var(--color-text-second);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.iconNavItem.active {
|
|
border-color: var(--color-text-second);
|
|
background-color: var(--color-bg-higher);
|
|
}
|
|
|
|
@media screen and (min-width: 768px) {
|
|
.iconNav {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 42px);
|
|
grid-auto-rows: 42px;
|
|
gap: var(--s-2);
|
|
overflow-x: visible;
|
|
scroll-snap-type: none;
|
|
padding-block: 0;
|
|
}
|
|
}
|