SHX-Theme/assets/component-swatch.css

24 lines
700 B
CSS

/* swatch lives in its own file for reusability of the swatch in swatch-input and dropdown */
.swatch {
--swatch--size: var(--swatch-input--size, 4.4rem);
--swatch--border-radius: var(--swatch-input--border-radius, 50%);
display: block;
width: var(--swatch--size);
aspect-ratio: 1 / 1;
background: var(--swatch--background);
background-size: cover;
background-origin: border-box;
border: 0.1rem solid rgba(var(--color-foreground), 0.45);
border-radius: var(--swatch--border-radius);
}
.swatch--square {
--swatch--border-radius: var(--swatch-input--border-radius, 0.2rem);
}
.swatch--unavailable {
border-style: dashed;
border-color: rgba(var(--color-foreground), 0.5);
}