Loading files
46296531dThis file is pinned to the selected release. Download the original to open it in your design tool.
/* ==========================================================================
OWL Controllers - Shared Utility Classes
Helper classes for visibility, loading states, accessibility
Usage: @import after _animations.css
========================================================================== */
/* -------------------------------------------------------------------------
Visibility Utilities
------------------------------------------------------------------------- */
.hidden {
display: none !important;
}
.visible {
display: block;
}
.invisible {
visibility: hidden;
}
/* Screen reader only - visually hidden but accessible */
.visually-hidden,
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* -------------------------------------------------------------------------
Text Alignment
------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
/* -------------------------------------------------------------------------
Loading States
------------------------------------------------------------------------- */
.loading {
opacity: 0.6;
pointer-events: none;
position: relative;
}
.loading::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 24px;
height: 24px;
border: 3px solid var(--border);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
/* -------------------------------------------------------------------------
Spinner Component
------------------------------------------------------------------------- */
.spinner {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: white;
animation: spin 1s ease-in-out infinite;
margin: 0;
vertical-align: middle;
}
.spinner--dark {
border-color: rgba(0, 0, 0, 0.1);
border-top-color: var(--primary);
}
.spinner--small {
width: 14px;
height: 14px;
border-width: 2px;
}
.spinner--large {
width: 32px;
height: 32px;
border-width: 4px;
}
/* Spinner inside button */
.spinner-small {
display: inline-block;
width: 14px;
height: 14px;
border: 2px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: white;
animation: spin 0.8s linear infinite;
margin-right: 0.5rem;
vertical-align: middle;
}
/* -------------------------------------------------------------------------
Flex Utilities
------------------------------------------------------------------------- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.flex-1 { flex: 1; }
/* -------------------------------------------------------------------------
Spacing Utilities
------------------------------------------------------------------------- */
.m-0 { margin: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.p-0 { padding: 0; }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
/* -------------------------------------------------------------------------
Overflow
------------------------------------------------------------------------- */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
/* -------------------------------------------------------------------------
Cursor
------------------------------------------------------------------------- */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
/* -------------------------------------------------------------------------
User Select
------------------------------------------------------------------------- */
.select-none { user-select: none; }
.select-all { user-select: all; }