castopod/app/Resources/styles/colorRadioBtn.css
Yassine Doghri 5c529a83aa feat(settings): add theme settings to set an accent color for all public pages
set 6 base accent colors: pine, lake, jacaranda, crimson, amber and onyx
2021-12-29 12:06:13 +00:00

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));
}
}
}