mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-09-06 18:59:20 +02:00
27 lines
583 B
CSS
27 lines
583 B
CSS
@layer components {
|
|
.color-radio-btn {
|
|
@apply absolute opacity-0;
|
|
|
|
&:focus + label {
|
|
@apply ring-accent;
|
|
}
|
|
|
|
&:checked {
|
|
@apply ring-2 ring-contrast;
|
|
|
|
& + label {
|
|
@apply flex items-center justify-center text-2xl text-accent-contrast bg-accent-base;
|
|
|
|
&::before {
|
|
content: "✓";
|
|
}
|
|
}
|
|
}
|
|
|
|
& + label {
|
|
@apply inline-block w-16 h-16 text-sm font-semibold rounded-full cursor-pointer border-contrast bg-accent-base text-accent-contrast border-3;
|
|
color: hsl(var(--color-text-muted));
|
|
}
|
|
}
|
|
}
|