Files
heroui-vue/packages/styles/components/spinner.css
T
2026-10-21 13:04:06 +08:00

51 lines
899 B
CSS

/* Adapted from HeroUI v3, ce90ea3. Copyright 2025 NextUI Inc.
* See third-party/HEROUI-LICENSE. Modified: hv- class prefix; Vue state adapters. */
/* Base spinner styles */
.hv-spinner {
@apply pointer-events-none inline-flex size-6 shrink-0 animate-spin-fast motion-reduce:animate-none;
}
/* Size variants */
.hv-spinner--sm {
@apply size-4;
}
.hv-spinner--md {
/* No styles as this is the default size */
}
.hv-spinner--lg {
@apply size-8;
}
.hv-spinner--xl {
@apply size-10;
}
/* Color variants */
.hv-spinner--current {
color: inherit;
}
.hv-spinner--accent {
color: var(--accent);
}
.hv-spinner--danger {
color: var(--danger);
}
.hv-spinner--success {
color: var(--success);
}
.hv-spinner--warning {
color: var(--warning);
}
/* Spinner icon fills the host box; excluded from generic button SVG sizing via data-slot. */
.hv-spinner > svg {
@apply size-full;
}