sendou.ink/app/components/elements/ChipRadio.module.css
Kalle fef1ffc955
Design refresh + a bunch of stuff (#2864)
Co-authored-by: hfcRed <hfcred@gmx.net>
2026-03-19 17:51:42 +02:00

48 lines
880 B
CSS

.group {
display: flex;
gap: var(--s-1);
width: max-content;
}
.group[data-orientation="vertical"] {
flex-direction: column;
align-items: stretch;
}
.radio {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}
.label {
font-size: var(--font-xs);
font-weight: var(--weight-semi);
padding: 0 var(--s-2);
height: var(--selector-size);
border-radius: var(--radius-selector);
background-color: var(--color-bg-higher);
color: var(--color-text);
cursor: pointer;
transition: background-color 0.15s;
display: inline-flex;
align-items: center;
justify-content: center;
}
.radio:focus-visible + .label {
outline: var(--focus-ring);
outline-offset: 2px;
}
.radio:checked + .label {
background-color: var(--color-accent-high);
color: var(--color-text-inverse);
}