54 lines
1.3 KiB
CSS
54 lines
1.3 KiB
CSS
/* Adapted from HeroUI ce90ea3. Copyright 2025 NextUI Inc.
|
|
* See third-party/HEROUI-LICENSE. Modified: hv- class prefix. */
|
|
/* Radio Group base styles */
|
|
.hv-radio-group {
|
|
@apply flex flex-col;
|
|
|
|
/* Default orientation */
|
|
&[data-orientation="vertical"] {
|
|
[data-slot="radio"] {
|
|
@apply mt-4;
|
|
}
|
|
}
|
|
|
|
&[data-orientation="horizontal"] {
|
|
@apply flex-row flex-wrap gap-4;
|
|
}
|
|
}
|
|
|
|
/* Variant property definitions */
|
|
.hv-radio-group--primary {
|
|
/* Default styles */
|
|
}
|
|
|
|
.hv-radio-group--secondary .hv-radio__control {
|
|
@apply shadow-none;
|
|
background-color: var(--radio-control-bg);
|
|
|
|
--radio-control-bg: var(--default);
|
|
--radio-control-bg-hover: var(--default-hover);
|
|
|
|
/* Hover state */
|
|
.hv-radio:has([data-slot="radio-content"][data-hovered="true"]) &,
|
|
.hv-radio [data-slot="radio-content"][data-hovered="true"] & {
|
|
@apply border-field-border-hover;
|
|
}
|
|
|
|
/* Default indicator color (unselected) */
|
|
.hv-radio:not([data-selected]):not(:has(input:checked))
|
|
&
|
|
.hv-radio__indicator:empty::before {
|
|
background-color: var(--radio-control-bg);
|
|
}
|
|
|
|
/* Hover indicator color (unselected) */
|
|
.hv-radio:has([data-slot="radio-content"][data-hovered="true"]):not(
|
|
[data-selected]
|
|
):not(:has(input:checked))
|
|
& {
|
|
.hv-radio__indicator:empty::before {
|
|
background-color: var(--radio-control-bg-hover);
|
|
}
|
|
}
|
|
}
|