Download src/static/css/main.css from anaselamr/yaz: direct link, hf CLI and curl.
- Browser
- Download file 23.3 kB
-
https://huggingface.co/spaces/anaselamr/yaz/resolve/main/src/static/css/main.css
- Command line
-
hf download hf://spaces/anaselamr/yaz/src/static/css/main.css
-
curl -L -o main.css https://huggingface.co/spaces/anaselamr/yaz/resolve/main/src/static/css/main.css
23.3 kB
| /* YAZ Care Platform — Shared CSS | |
| All design tokens come from tokens.css (loaded before this file). | |
| This file provides: theme transitions, yaz-* component library. | |
| Design system components (y-* prefix) live in components.css. | |
| Page-level styles use tokens only — no hardcoded values. | |
| ════════════════════════════════════════════════════════════════ */ | |
| /* ── Theme transitions — smooth, jank-free ──────────────────── */ | |
| /* Specific properties only — avoids forcing layout recalc */ | |
| /* sidebar excluded: its layout must be stable before first paint (no CLS) */ | |
| body, | |
| header, | |
| main, | |
| .card, | |
| nav, | |
| input, | |
| button, | |
| select, | |
| textarea { | |
| transition: | |
| background-color var(--duration-fast) var(--ease-default), | |
| color var(--duration-fast) var(--ease-default), | |
| border-color var(--duration-fast) var(--ease-default); | |
| } | |
| /* Hidden utility (safe to keep — not in tailwind safe-list) */ | |
| .hidden { display: none ; } | |
| /* ── Button base reset (framework-agnostic) ──────────────────── */ | |
| button { | |
| cursor: pointer; | |
| border: none; | |
| font-family: inherit; | |
| font-size: inherit; | |
| } | |
| /* ── Loading spinner (canonical — do NOT redefine elsewhere) ─── */ | |
| .loading-spinner { | |
| display: inline-block; | |
| width: 1rem; | |
| height: 1rem; | |
| border: 2px solid var(--border); | |
| border-top-color: var(--primary); | |
| border-radius: 50%; | |
| animation: spin 0.8s linear infinite; | |
| } | |
| .loading-spinner--sm { width: 0.875rem; height: 0.875rem; } | |
| .loading-spinner--lg { width: 2.5rem; height: 2.5rem; border-width: 4px; } | |
| @keyframes spin { to { transform: rotate(360deg); } } | |
| /* ════════════════════════════════════════════════════════════════ | |
| YAZ Shared Component Library (.yaz-* classes) | |
| ════════════════════════════════════════════════════════════════ | |
| Used by stay, stoka, educa, clinica, applications.html. | |
| All values derive from tokens.css — no hardcoded values. | |
| ════════════════════════════════════════════════════════════════ */ | |
| /* ── Alias layer: map --yaz-* → tokens.css vars ─────────────── */ | |
| :root { | |
| --yaz-primary: var(--primary); | |
| --yaz-primary-dark: var(--primary-hover); | |
| --yaz-secondary: var(--text-muted); | |
| --yaz-accent: var(--success); | |
| --yaz-warning: var(--warning); | |
| --yaz-error: var(--error); | |
| --yaz-bg-primary: var(--surface); | |
| --yaz-bg-secondary: var(--bg); | |
| --yaz-bg-tertiary: var(--surface-hover); | |
| --yaz-surface: var(--surface); | |
| --yaz-surface-hover: var(--surface-hover); | |
| --yaz-text-primary: var(--text); | |
| --yaz-text-secondary: var(--text-secondary, var(--text-muted)); | |
| --yaz-text-muted: var(--text-muted); | |
| --yaz-text-inverse: var(--text-inverse, #fff); | |
| --yaz-border-color: var(--border); | |
| --yaz-border-radius: var(--radius-lg); | |
| --yaz-border-radius-sm: var(--radius-md); | |
| --yaz-border-radius-lg: var(--radius-xl); | |
| --yaz-shadow-sm: var(--shadow-xs); | |
| --yaz-shadow: var(--shadow-sm); | |
| --yaz-shadow-md: var(--shadow-md); | |
| --yaz-shadow-lg: var(--shadow-lg); | |
| --yaz-transition: var(--transition); | |
| --yaz-transition-fast: var(--transition-fast); | |
| --yaz-space-xs: var(--space-1); | |
| --yaz-space-sm: var(--space-2); | |
| --yaz-space-md: var(--space-4); | |
| --yaz-space-lg: var(--space-6); | |
| --yaz-space-xl: var(--space-8); | |
| --yaz-space-2xl: var(--space-12); | |
| } | |
| /* ── Layout System ───────────────────────────────────────────── */ | |
| .yaz-container { max-width: 100%; margin: 0 auto; padding: 0 var(--yaz-space-md); } | |
| @media (min-width: 1440px) { .yaz-container { padding: 0 var(--yaz-space-xl); } } | |
| @media (min-width: 1920px) { .yaz-container { padding: 0 var(--yaz-space-2xl); } } | |
| .yaz-grid { display: grid; gap: var(--yaz-space-md); } | |
| .yaz-grid-2 { grid-template-columns: repeat(2, 1fr); } | |
| .yaz-grid-3 { grid-template-columns: repeat(3, 1fr); } | |
| .yaz-grid-4 { grid-template-columns: repeat(4, 1fr); } | |
| @media (max-width: 768px) { | |
| .yaz-grid-2, | |
| .yaz-grid-3, | |
| .yaz-grid-4 { grid-template-columns: 1fr; } | |
| } | |
| .yaz-flex { display: flex; gap: var(--yaz-space-md); } | |
| .yaz-flex-center { display: flex; align-items: center; justify-content: center; } | |
| .yaz-flex-between { display: flex; align-items: center; justify-content: space-between; } | |
| /* ── App Header ──────────────────────────────────────────────── */ | |
| .yaz-app-header { | |
| border-radius: var(--yaz-border-radius); | |
| padding: var(--yaz-space-lg) var(--yaz-space-xl); | |
| color: var(--yaz-text-inverse); | |
| margin-bottom: var(--yaz-space-lg); | |
| } | |
| .yaz-app-header-content { display: flex; align-items: center; justify-content: space-between; gap: var(--yaz-space-md); } | |
| .yaz-app-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: rgba(255,255,255,0.15); border-radius: var(--yaz-border-radius-sm); flex-shrink: 0; } | |
| .yaz-app-title { font-size: var(--text-xl); font-weight: 700; line-height: 1.2; } | |
| .yaz-app-subtitle { font-size: var(--text-sm); opacity: 0.85; margin-top: 2px; } | |
| /* App-specific gradients — neutral professional */ | |
| .yaz-gradient-stay { background: linear-gradient(135deg, #6b7380, #525a66); } | |
| .yaz-gradient-stoka { background: linear-gradient(135deg, #8f97a4, #6b7380); } | |
| .yaz-gradient-educa { background: linear-gradient(135deg, #8f97a4, #6b7380); } | |
| .yaz-gradient-clinica { background: linear-gradient(135deg, #525a66, #3b424d); } | |
| .yaz-gradient-amraved { background: linear-gradient(135deg, #525a66, #3b424d); } | |
| .yaz-gradient-movio { background: linear-gradient(135deg, #2563eb, #1d4ed8); } | |
| .yaz-gradient-insura { background: linear-gradient(135deg, #0891b2, #0e7490); } | |
| /* Generic app-header alias (used by clinica without yaz- prefix) */ | |
| .app-header { border-radius: var(--yaz-border-radius); padding: var(--yaz-space-lg) var(--yaz-space-xl); background: var(--surface-hover); margin-bottom: var(--yaz-space-lg); } | |
| .app-header .header-content { display: flex; align-items: center; justify-content: space-between; gap: var(--yaz-space-md); } | |
| .app-header .header-text h1 { font-size: var(--text-xl); font-weight: 700; color: var(--text); } | |
| .app-header .header-text p { font-size: var(--text-sm); color: var(--text-muted); margin-top: 2px; } | |
| .app-header .header-actions { display: flex; gap: var(--yaz-space-sm); } | |
| @media (max-width: 768px) { | |
| .yaz-app-header-content, | |
| .app-header .header-content { flex-direction: column; align-items: flex-start; } | |
| .app-header .header-actions { width: 100%; } | |
| } | |
| /* ── Card System ─────────────────────────────────────────────── */ | |
| .yaz-card { | |
| background: var(--yaz-surface); | |
| border: 1px solid var(--yaz-border-color); | |
| border-radius: var(--yaz-border-radius); | |
| padding: var(--yaz-space-lg); | |
| transition: box-shadow 0.15s ease; | |
| } | |
| .yaz-card:hover { box-shadow: var(--yaz-shadow-md); } | |
| .yaz-card-header { border-bottom: 1px solid var(--yaz-border-color); padding-bottom: var(--yaz-space-md); margin-bottom: var(--yaz-space-md); display: flex; align-items: center; justify-content: space-between; } | |
| .yaz-card-title { font-size: var(--text-md); font-weight: 600; color: var(--yaz-text-primary); } | |
| .yaz-card-subtitle { font-size: var(--text-sm); color: var(--yaz-text-muted); margin-top: 2px; } | |
| .yaz-card-content { font-size: var(--text-base); } | |
| /* Generic .card (used by clinica) */ | |
| .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); } | |
| .card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); } | |
| .card-header h3 { font-size: var(--text-md); font-weight: 600; } | |
| .card-content { font-size: var(--text-base); } | |
| /* ── Button System ───────────────────────────────────────────── */ | |
| .yaz-btn { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: var(--yaz-space-sm); | |
| padding: var(--yaz-space-sm) var(--yaz-space-md); | |
| border: none; | |
| border-radius: var(--yaz-border-radius-sm); | |
| font-weight: 500; | |
| font-size: var(--text-sm); | |
| cursor: pointer; | |
| transition: background 0.15s ease, box-shadow 0.15s ease; | |
| text-decoration: none; | |
| white-space: nowrap; | |
| line-height: 1.4; | |
| } | |
| .yaz-btn-icon { width: 16px; height: 16px; flex-shrink: 0; } | |
| .yaz-btn-primary { background: var(--primary); color: var(--yaz-text-inverse); } | |
| .yaz-btn-primary:hover { background: var(--primary-hover); } | |
| .yaz-btn-secondary { background: var(--surface-hover); color: var(--text); border: 1px solid var(--border); } | |
| .yaz-btn-secondary:hover { background: var(--surface-active, var(--surface-hover)); border-color: var(--primary); } | |
| .yaz-btn-ghost { background: transparent; color: var(--text-muted); } | |
| .yaz-btn-ghost:hover { background: var(--surface-hover); color: var(--text); } | |
| .yaz-btn-danger { background: var(--error); color: var(--yaz-text-inverse); } | |
| .yaz-btn-danger:hover { background: var(--c-error-600); } | |
| /* Small button variants */ | |
| .yaz-btn-primary-sm, | |
| .yaz-btn-secondary-sm, | |
| .yaz-btn-success-sm, | |
| .yaz-btn-danger-sm { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: none; border-radius: var(--radius-md); font-size: var(--text-xs); font-weight: 500; cursor: pointer; transition: background 0.12s ease; white-space: nowrap; } | |
| .yaz-btn-primary-sm { background: var(--primary); color: #fff; } | |
| .yaz-btn-primary-sm:hover { background: var(--primary-hover); } | |
| .yaz-btn-secondary-sm { background: var(--surface-hover); color: var(--text); border: 1px solid var(--border); } | |
| .yaz-btn-success-sm { background: var(--success); color: #fff; } | |
| .yaz-btn-danger-sm { background: var(--error); color: #fff; } | |
| /* ── Metric Cards ────────────────────────────────────────────── */ | |
| .yaz-metric-card { | |
| background: var(--yaz-surface); | |
| border: 1px solid var(--yaz-border-color); | |
| border-radius: var(--yaz-border-radius); | |
| padding: var(--yaz-space-lg); | |
| display: flex; | |
| align-items: flex-start; | |
| gap: var(--yaz-space-md); | |
| } | |
| .yaz-metric-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--yaz-border-radius-sm); font-size: 18px; flex-shrink: 0; } | |
| .yaz-metric-content { flex: 1; min-width: 0; } | |
| .yaz-metric-content h3 { font-size: var(--text-2xl); font-weight: 700; color: var(--text); line-height: 1; } | |
| .yaz-metric-content p { font-size: var(--text-sm); color: var(--text-muted); margin-top: 4px; } | |
| .yaz-metric-trend { font-size: var(--text-xs); font-weight: 500; margin-top: 4px; display: flex; align-items: center; gap: 4px; } | |
| /* Metric color variants — icon tint + left border */ | |
| .yaz-metric-primary { border-left: 3px solid var(--primary); } | |
| .yaz-metric-primary .yaz-metric-icon { background: var(--primary-subtle); color: var(--primary); } | |
| .yaz-metric-info { border-left: 3px solid var(--info); } | |
| .yaz-metric-info .yaz-metric-icon { background: var(--info-subtle); color: var(--info); } | |
| .yaz-metric-success { border-left: 3px solid var(--success); } | |
| .yaz-metric-success .yaz-metric-icon { background: var(--success-subtle); color: var(--success); } | |
| .yaz-metric-warning { border-left: 3px solid var(--warning); } | |
| .yaz-metric-warning .yaz-metric-icon { background: var(--warning-subtle); color: var(--warning); } | |
| .yaz-metric-danger { border-left: 3px solid var(--error); } | |
| .yaz-metric-danger .yaz-metric-icon { background: var(--error-subtle); color: var(--error); } | |
| /* Trend indicators */ | |
| .yaz-trend-up { color: var(--success); } | |
| .yaz-trend-stable { color: var(--text-muted); } | |
| .yaz-trend-warning { color: var(--warning); } | |
| .yaz-trend-critical { color: var(--error); } | |
| /* Generic .metric-card / .dashboard-grid (used by clinica) */ | |
| .dashboard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-bottom: var(--space-6); } | |
| .metric-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); display: flex; align-items: center; gap: var(--space-4); } | |
| .metric-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); background: var(--primary-subtle); color: var(--primary); font-size: 18px; flex-shrink: 0; } | |
| .metric-content { flex: 1; } | |
| .metric-content h3 { font-size: var(--text-2xl); font-weight: 700; color: var(--text); line-height: 1; } | |
| .metric-content p { font-size: var(--text-sm); color: var(--text-muted); margin-top: 4px; } | |
| .content-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); } | |
| @media (max-width: 768px) { | |
| .dashboard-grid { grid-template-columns: repeat(2, 1fr); } | |
| .content-grid { grid-template-columns: 1fr; } | |
| } | |
| /* ── Status System ───────────────────────────────────────────── */ | |
| .yaz-status { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: var(--yaz-space-xs); | |
| padding: 2px var(--yaz-space-sm); | |
| border-radius: var(--radius-full); | |
| font-size: var(--text-xs); | |
| font-weight: 500; | |
| } | |
| .yaz-status-success { background: var(--success-subtle); color: var(--success); } | |
| .yaz-status-warning { background: var(--warning-subtle); color: var(--warning); } | |
| .yaz-status-error { background: var(--error-subtle); color: var(--error); } | |
| .yaz-status-info { background: var(--info-subtle); color: var(--primary); } | |
| /* Generic .status-badge (used by clinica) */ | |
| .status-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 500; } | |
| .status-active { background: var(--success-subtle); color: var(--success); } | |
| .status-inactive { background: var(--surface-hover); color: var(--text-muted); } | |
| .status-pending { background: var(--warning-subtle); color: var(--warning); } | |
| .status-critical { background: var(--error-subtle); color: var(--error); } | |
| /* Generic .empty-state (used by clinica) */ | |
| .empty-state { text-align: center; padding: var(--space-8) var(--space-4); color: var(--text-muted); } | |
| .empty-state h4 { font-size: var(--text-md); font-weight: 600; color: var(--text); margin-bottom: var(--space-2); } | |
| .empty-state p { font-size: var(--text-sm); margin-bottom: var(--space-4); } | |
| /* Generic .action-grid (used by clinica) */ | |
| .action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); } | |
| .action-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-md); text-decoration: none; color: var(--text); transition: background 0.12s ease; } | |
| .action-item:hover { background: var(--surface-hover); } | |
| .action-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); background: var(--primary-subtle); color: var(--primary); font-size: 16px; flex-shrink: 0; } | |
| .action-text h4 { font-size: var(--text-sm); font-weight: 600; } | |
| .action-text p { font-size: var(--text-xs); color: var(--text-muted); } | |
| /* ── Table System ────────────────────────────────────────────── */ | |
| .yaz-table-container { background: var(--yaz-surface); border: 1px solid var(--yaz-border-color); border-radius: var(--yaz-border-radius); overflow: hidden; } | |
| .yaz-table { width: 100%; border-collapse: collapse; } | |
| .yaz-table th { background: var(--surface-hover); padding: var(--space-3) var(--space-4); text-align: left; font-weight: 600; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); border-bottom: 1px solid var(--border); } | |
| .yaz-table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-subtle); font-size: var(--text-sm); } | |
| .yaz-table tr:hover { background: var(--surface-hover); } | |
| /* Generic .data-table (used by clinica) */ | |
| .data-table { overflow-x: auto; } | |
| .data-table table { width: 100%; border-collapse: collapse; } | |
| .data-table th { background: var(--surface-hover); padding: var(--space-3) var(--space-4); text-align: left; font-weight: 600; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); border-bottom: 1px solid var(--border); } | |
| .data-table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-subtle); font-size: var(--text-sm); } | |
| .data-table tr:hover { background: var(--surface-hover); } | |
| /* ── Form System ─────────────────────────────────────────────── */ | |
| .yaz-input, | |
| .yaz-select, | |
| .yaz-textarea { | |
| width: 100%; | |
| padding: var(--yaz-space-sm) var(--yaz-space-md); | |
| border: 1px solid var(--yaz-border-color); | |
| border-radius: var(--yaz-border-radius-sm); | |
| font-size: var(--text-sm); | |
| font-family: inherit; | |
| background: var(--yaz-surface); | |
| color: var(--text); | |
| transition: border-color 0.12s ease, box-shadow 0.12s ease; | |
| } | |
| .yaz-input:focus, | |
| .yaz-select:focus, | |
| .yaz-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px var(--focus-ring); } | |
| .yaz-textarea { min-height: 100px; resize: vertical; } | |
| .yaz-label { display: block; font-weight: 500; color: var(--text); margin-bottom: var(--space-1); font-size: var(--text-sm); } | |
| /* ── Progress ────────────────────────────────────────────────── */ | |
| .yaz-progress-bar { width: 100%; height: 6px; background: var(--surface-hover); border-radius: var(--radius-full); overflow: hidden; } | |
| .yaz-progress-fill { height: 100%; background: var(--primary); transition: width 0.3s ease; border-radius: var(--radius-full); } | |
| .yaz-progress-fill.yaz-progress-success { background: var(--success); } | |
| .yaz-progress-fill.yaz-progress-warning { background: var(--warning); } | |
| .yaz-progress-fill.yaz-progress-danger { background: var(--error); } | |
| /* ── Loading & Animations ────────────────────────────────────── */ | |
| .yaz-loading { display: inline-flex; align-items: center; gap: var(--yaz-space-sm); color: var(--text-muted); font-size: var(--text-sm); } | |
| .yaz-spinner { width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: yaz-spin 0.8s linear infinite; } | |
| @keyframes yaz-spin { to { transform: rotate(360deg); } } | |
| .yaz-fade-in { animation: yaz-fadeIn 0.2s ease; } | |
| @keyframes yaz-fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } } | |
| /* ── Utility Classes ─────────────────────────────────────────── */ | |
| .yaz-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; } | |
| .yaz-hidden { display: none ; } | |
| .yaz-text-center { text-align: center; } | |
| .yaz-text-right { text-align: right; } | |
| .yaz-text-success { color: var(--success); } | |
| .yaz-text-warning { color: var(--warning); } | |
| .yaz-text-danger { color: var(--error); } | |
| .yaz-mb-0 { margin-bottom: 0 ; } | |
| .yaz-mb-sm { margin-bottom: var(--space-2); } | |
| .yaz-mb-md { margin-bottom: var(--space-4); } | |
| .yaz-mb-lg { margin-bottom: var(--space-6); } | |
| .yaz-mt-sm { margin-top: var(--space-2); } | |
| .yaz-mt-md { margin-top: var(--space-4); } | |
| .yaz-mt-lg { margin-top: var(--space-6); } | |
| /* ══════════════════════════════════════════════════════════════ | |
| HTMX Island Transitions — Smooth, Zero-Layout-Shift Swaps | |
| ══════════════════════════════════════════════════════════════ */ | |
| /* Content entering after an HTMX swap fades + rises in */ | |
| .htmx-added { | |
| animation: y-fade-up var(--duration-normal) var(--ease-spring) both; | |
| } | |
| /* Content that is about to be swapped out fades gently */ | |
| .htmx-swapping { | |
| opacity: 0; | |
| transition: opacity var(--duration-fast) var(--ease-default); | |
| } | |
| /* Entire island container shimmered during request */ | |
| .htmx-request.htmx-loading, | |
| [hx-indicator].htmx-request { | |
| opacity: 0.6; | |
| pointer-events: none; | |
| transition: opacity var(--duration-fast) var(--ease-default); | |
| } | |
| /* Standard htmx-indicator: hidden by default, visible during request */ | |
| .htmx-indicator { | |
| opacity: 0; | |
| transition: opacity var(--duration-fast) var(--ease-default); | |
| pointer-events: none; | |
| } | |
| .htmx-request .htmx-indicator, | |
| .htmx-indicator.htmx-request { | |
| opacity: 1; | |
| pointer-events: auto; | |
| } | |
| /* ── Keyframes ───────────────────────────────────────────────── */ | |
| @keyframes y-fade-up { | |
| from { opacity: 0; transform: translateY(6px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| @keyframes y-modal-in { | |
| from { opacity: 0; transform: scale(0.96) translateY(8px); } | |
| to { opacity: 1; transform: scale(1) translateY(0); } | |
| } | |
| @keyframes y-modal-out { | |
| from { opacity: 1; transform: scale(1) translateY(0); } | |
| to { opacity: 0; transform: scale(0.96) translateY(8px); } | |
| } | |
| @keyframes y-slide-in-right { | |
| from { opacity: 0; transform: translateX(16px); } | |
| to { opacity: 1; transform: translateX(0); } | |
| } | |
| @keyframes y-skeleton-shimmer { | |
| 0% { background-position: -200% 0; } | |
| 100% { background-position: 200% 0; } | |
| } | |
| /* Modal open animation (applied to .y-modal when .is-open is added) */ | |
| .y-modal.is-open { | |
| animation: y-modal-in var(--dur-normal, 250ms) var(--ease-spring) both; | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| .htmx-added, | |
| .htmx-swapping, | |
| .y-modal.is-open { animation: none; transition: none; } | |
| } |