feat: initialize Vue component library and aligned documentation
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
@layer theme, base, components, utilities;
|
||||
@import "tailwindcss/theme.css" layer(theme);
|
||||
@import "tailwindcss/preflight.css" layer(base);
|
||||
@import "./themes/shared/theme.css";
|
||||
@import "./themes/default/variables.css";
|
||||
@import "./utilities/index.css";
|
||||
@import "./variants/index.css";
|
||||
@import "./components/button.css" layer(components);
|
||||
@import "./components/close-button.css" layer(components);
|
||||
@import "./components/card.css" layer(components);
|
||||
@import "./components/input.css" layer(components);
|
||||
@import "./components/switch.css" layer(components);
|
||||
@import "./components/switch-group.css" layer(components);
|
||||
@import "./components/label.css" layer(components);
|
||||
@import "./components/description.css" layer(components);
|
||||
/* The Vue Switch uses Reka's native button for its clickable content. */
|
||||
@layer components {
|
||||
.hv-switch:has(.hv-switch__content:focus-visible) .hv-switch__control {
|
||||
@apply status-focused;
|
||||
}
|
||||
.hv-switch__content {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
font: inherit;
|
||||
}
|
||||
.hv-spinner {
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
border: 2px solid currentColor;
|
||||
border-right-color: transparent;
|
||||
border-radius: 50%;
|
||||
animation: hv-spin 0.75s linear infinite;
|
||||
}
|
||||
@keyframes hv-spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.hv-spinner {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@layer components {
|
||||
.hv-switch__input {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
clip-path: inset(50%);
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.hv-field-error,
|
||||
.hv-switch > .hv-field-error {
|
||||
color: var(--danger);
|
||||
font-size: var(--text-xs);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user