castopod/app/Resources/styles/radioBtn.css
Yassine Doghri 11ccd0ebe7 feat(plugins): add group field type + multiple option to render field arrays
- update docs
- render hint and helper options for all fields
- replace option's hint with
description
2024-12-10 15:57:06 +00:00

34 lines
795 B
CSS

@layer components {
.form-radio-btn {
@apply absolute right-4 top-4 border-contrast border-3 text-accent-base;
&:focus {
@apply ring-accent;
}
&:checked {
& + label {
@apply text-accent-hover bg-base border-accent-base shadow-none;
}
& + label .form-radio-btn-description {
@apply text-accent-base;
}
}
& + label {
@apply h-full w-full inline-flex flex-col items-start py-3 px-4 text-sm font-bold rounded-lg cursor-pointer border-contrast bg-elevated border-3 transition-all;
box-shadow: 2px 2px 0 hsl(var(--color-border-contrast));
}
& + label span {
@apply pr-8;
}
& + label .form-radio-btn-description {
@apply font-normal text-xs text-skin-muted text-balance;
}
}
}