26 lines
626 B
CSS
26 lines
626 B
CSS
/* Adapted from HeroUI ce90ea3, Apache-2.0; see third-party/HEROUI-LICENSE. */
|
|
/* ==========================================================================
|
|
ColorField - Form field for editing hex colors or individual color channels
|
|
========================================================================== */
|
|
|
|
/* Base styles */
|
|
.hv-color-field {
|
|
@apply flex flex-col gap-1;
|
|
|
|
&[data-invalid="true"],
|
|
&[aria-invalid="true"] {
|
|
[data-slot="description"] {
|
|
@apply hidden;
|
|
}
|
|
}
|
|
|
|
[data-slot="label"] {
|
|
@apply w-fit;
|
|
}
|
|
}
|
|
|
|
/* Full width modifier */
|
|
.hv-color-field--full-width {
|
|
@apply w-full;
|
|
}
|