feat: establish composed color field and input group protocols
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
/* 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;
|
||||
}
|
||||
Reference in New Issue
Block a user