Buckets:
| /* ═══════════════════════════════════════════════════════════════════ | |
| css/modal.css — SleepyFX Elite | |
| Modals · Bottom Sheets · Toasts · Popovers · Confirm dialogs. | |
| All glass surfaces. Focus trap CSS hooks. Escape animations. | |
| ═══════════════════════════════════════════════════════════════════ */ | |
| /* ╔══════════════════════════════════════════════════════════════╗ | |
| ║ OVERLAY BACKDROP ║ | |
| ╚══════════════════════════════════════════════════════════════╝ */ | |
| .sfx-modal-overlay { | |
| position: fixed; | |
| inset: 0; | |
| z-index: var(--sfx-z-modal); | |
| background: oklch(0% 0 0 / 0.65); | |
| backdrop-filter: blur(4px); | |
| -webkit-backdrop-filter: blur(4px); | |
| align-items: center; | |
| justify-content: center; | |
| padding: var(--sfx-sp-2); | |
| /* HIDDEN BY DEFAULT — JS adds .sfx-modal-overlay--open to show */ | |
| display: none; | |
| } | |
| /* JS adds this class to show the modal */ | |
| .sfx-modal-overlay--open { | |
| display: flex; | |
| animation: sfx-fade-in var(--sfx-dur-fast) var(--sfx-ease) both; | |
| } | |
| /* Safety net — aria-hidden always wins */ | |
| .sfx-modal-overlay[aria-hidden="true"] { | |
| display: none ; | |
| } | |
| .sfx-modal-overlay--closing { | |
| animation: sfx-fade-out var(--sfx-dur-fast) var(--sfx-ease) both; | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| .sfx-modal-overlay, | |
| .sfx-modal-overlay--closing { | |
| animation: none; | |
| } | |
| } | |
| /* ╔══════════════════════════════════════════════════════════════╗ | |
| ║ MODAL CONTENT ║ | |
| ╚══════════════════════════════════════════════════════════════╝ */ | |
| .sfx-modal-content { | |
| position: relative; | |
| width: 100%; | |
| max-width: 480px; | |
| max-height: 90dvh; | |
| overflow-y: auto; | |
| border-radius: var(--sfx-r-xl); | |
| padding: var(--sfx-sp-3); | |
| /* Glass */ | |
| background: var(--sfx-glass-bg); | |
| backdrop-filter: var(--sfx-glass-blur) var(--sfx-glass-sat); | |
| -webkit-backdrop-filter: var(--sfx-glass-blur) var(--sfx-glass-sat); | |
| border: 1px solid var(--sfx-glass-border); | |
| box-shadow: var(--sfx-shadow-modal); | |
| /* Enter */ | |
| animation: sfx-slide-up var(--sfx-dur-normal) var(--sfx-ease) both; | |
| } | |
| .sfx-modal-content--closing { | |
| animation: sfx-fade-out var(--sfx-dur-fast) var(--sfx-ease) both; | |
| } | |
| /* Wide variant */ | |
| .sfx-modal-content--wide { | |
| max-width: 680px; | |
| } | |
| /* Compact variant */ | |
| .sfx-modal-content--compact { | |
| max-width: 360px; | |
| padding: var(--sfx-sp-2); | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| .sfx-modal-content, | |
| .sfx-modal-content--closing { | |
| animation: none; | |
| } | |
| } | |
| /* ── Modal header ───────────────────────────────────────────────── */ | |
| .sfx-modal__header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| margin-bottom: var(--sfx-sp-2); | |
| padding-bottom: var(--sfx-sp-2); | |
| border-bottom: 1px solid var(--sfx-border); | |
| } | |
| .sfx-modal__title { | |
| font-family: var(--sfx-font-sans); | |
| font-size: var(--sfx-fs-lg); | |
| font-weight: 700; | |
| color: var(--sfx-text-primary); | |
| line-height: 1.2; | |
| } | |
| .sfx-modal__subtitle { | |
| font-family: var(--sfx-font-sans); | |
| font-size: var(--sfx-fs-sm); | |
| color: var(--sfx-text-secondary); | |
| margin-top: 3px; | |
| } | |
| /* Close button */ | |
| .sfx-modal__close { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: var(--sfx-touch-target); | |
| height: var(--sfx-touch-target); | |
| border-radius: var(--sfx-r-md); | |
| color: var(--sfx-text-muted); | |
| background: transparent; | |
| border: none; | |
| cursor: pointer; | |
| flex-shrink: 0; | |
| transition: background var(--sfx-dur-fast) var(--sfx-ease), | |
| color var(--sfx-dur-fast) var(--sfx-ease); | |
| -webkit-tap-highlight-color: transparent; | |
| } | |
| .sfx-modal__close:hover { | |
| background: oklch(100% 0 0 / 0.07); | |
| color: var(--sfx-text-primary); | |
| } | |
| /* ── Modal body ─────────────────────────────────────────────────── */ | |
| .sfx-modal__body { | |
| color: var(--sfx-text-secondary); | |
| font-size: var(--sfx-fs-md); | |
| line-height: 1.6; | |
| } | |
| /* ── Modal footer ───────────────────────────────────────────────── */ | |
| .sfx-modal__footer { | |
| display: flex; | |
| align-items: center; | |
| justify-content: flex-end; | |
| gap: var(--sfx-sp-1); | |
| margin-top: var(--sfx-sp-2); | |
| padding-top: var(--sfx-sp-2); | |
| border-top: 1px solid var(--sfx-border); | |
| } | |
| .sfx-modal__footer--center { | |
| justify-content: center; | |
| } | |
| .sfx-modal__footer--between { | |
| justify-content: space-between; | |
| } | |
| /* ╔══════════════════════════════════════════════════════════════╗ | |
| ║ BOTTOM SHEET ║ | |
| ╚══════════════════════════════════════════════════════════════╝ */ | |
| .sfx-sheet-overlay { | |
| position: fixed; | |
| inset: 0; | |
| z-index: var(--sfx-z-modal); | |
| background: oklch(0% 0 0 / 0.55); | |
| backdrop-filter: blur(3px); | |
| -webkit-backdrop-filter: blur(3px); | |
| animation: sfx-fade-in var(--sfx-dur-fast) var(--sfx-ease) both; | |
| } | |
| .sfx-sheet-overlay--closing { | |
| animation: sfx-fade-out var(--sfx-dur-fast) var(--sfx-ease) both; | |
| } | |
| .sfx-sheet { | |
| position: fixed; | |
| bottom: 0; | |
| left: 0; | |
| right: 0; | |
| z-index: calc(var(--sfx-z-modal) + 1); | |
| max-height: 92dvh; | |
| overflow-y: auto; | |
| border-radius: var(--sfx-r-xl) var(--sfx-r-xl) 0 0; | |
| padding: var(--sfx-sp-3); | |
| padding-bottom: calc(var(--sfx-sp-3) + var(--sfx-safe-area-bot)); | |
| /* Glass */ | |
| background: var(--sfx-glass-bg); | |
| backdrop-filter: var(--sfx-glass-blur) var(--sfx-glass-sat); | |
| -webkit-backdrop-filter: var(--sfx-glass-blur) var(--sfx-glass-sat); | |
| border: 1px solid var(--sfx-glass-border); | |
| border-bottom: none; | |
| box-shadow: var(--sfx-shadow-modal); | |
| animation: sfx-sheet-up var(--sfx-dur-normal) var(--sfx-ease) both; | |
| } | |
| .sfx-sheet--closing { | |
| animation: sfx-sheet-down var(--sfx-dur-normal) var(--sfx-ease) both; | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| .sfx-sheet-overlay, | |
| .sfx-sheet-overlay--closing, | |
| .sfx-sheet, | |
| .sfx-sheet--closing { | |
| animation: none; | |
| } | |
| } | |
| /* Sheet drag handle */ | |
| .sfx-sheet__handle { | |
| width: 40px; | |
| height: 4px; | |
| background: oklch(100% 0 0 / 0.20); | |
| border-radius: var(--sfx-r-pill); | |
| margin: 0 auto var(--sfx-sp-2); | |
| } | |
| /* Sheet header */ | |
| .sfx-sheet__header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| margin-bottom: var(--sfx-sp-2); | |
| } | |
| .sfx-sheet__title { | |
| font-family: var(--sfx-font-sans); | |
| font-size: var(--sfx-fs-lg); | |
| font-weight: 700; | |
| color: var(--sfx-text-primary); | |
| } | |
| /* ╔══════════════════════════════════════════════════════════════╗ | |
| ║ TOAST CONTAINER + INDIVIDUAL TOASTS ║ | |
| ╚══════════════════════════════════════════════════════════════╝ */ | |
| /* Toast stack anchor — top-right */ | |
| .sfx-toast-container { | |
| position: fixed; | |
| top: calc(var(--sfx-topbar-height) + var(--sfx-safe-area-top) + var(--sfx-sp-2)); | |
| right: var(--sfx-sp-2); | |
| z-index: var(--sfx-z-toast); | |
| display: flex; | |
| flex-direction: column; | |
| gap: var(--sfx-sp-1); | |
| pointer-events: none; | |
| max-width: 360px; | |
| width: calc(100vw - 32px); | |
| } | |
| /* Individual toast */ | |
| .sfx-toast { | |
| display: flex; | |
| align-items: flex-start; | |
| gap: 10px; | |
| padding: var(--sfx-sp-1) var(--sfx-sp-2); | |
| border-radius: var(--sfx-r-lg); | |
| pointer-events: auto; | |
| /* Glass */ | |
| background: var(--sfx-glass-bg); | |
| backdrop-filter: var(--sfx-glass-blur) var(--sfx-glass-sat); | |
| -webkit-backdrop-filter: var(--sfx-glass-blur) var(--sfx-glass-sat); | |
| border: 1px solid var(--sfx-glass-border); | |
| box-shadow: var(--sfx-shadow-modal); | |
| animation: sfx-toast-in var(--sfx-dur-normal) var(--sfx-ease) both; | |
| } | |
| .sfx-toast--exit { | |
| animation: sfx-toast-out var(--sfx-dur-fast) var(--sfx-ease) both; | |
| } | |
| /* Left accent bar */ | |
| .sfx-toast--info { | |
| border-left: 3px solid var(--sfx-info); | |
| } | |
| .sfx-toast--warn { | |
| border-left: 3px solid var(--sfx-warning); | |
| } | |
| .sfx-toast--danger { | |
| border-left: 3px solid var(--sfx-loss); | |
| } | |
| .sfx-toast--success { | |
| border-left: 3px solid var(--sfx-profit); | |
| } | |
| /* Toast icon */ | |
| .sfx-toast__icon { | |
| flex-shrink: 0; | |
| margin-top: 1px; | |
| width: 16px; | |
| height: 16px; | |
| } | |
| .sfx-toast--info .sfx-toast__icon { | |
| color: var(--sfx-info); | |
| } | |
| .sfx-toast--warn .sfx-toast__icon { | |
| color: var(--sfx-warning); | |
| } | |
| .sfx-toast--danger .sfx-toast__icon { | |
| color: var(--sfx-loss); | |
| } | |
| .sfx-toast--success .sfx-toast__icon { | |
| color: var(--sfx-profit); | |
| } | |
| /* Toast body */ | |
| .sfx-toast__body { | |
| flex: 1; | |
| min-width: 0; | |
| } | |
| .sfx-toast__title { | |
| font-family: var(--sfx-font-sans); | |
| font-size: var(--sfx-fs-sm); | |
| font-weight: 700; | |
| color: var(--sfx-text-primary); | |
| margin-bottom: 2px; | |
| } | |
| .sfx-toast__message { | |
| font-family: var(--sfx-font-sans); | |
| font-size: var(--sfx-fs-xs); | |
| color: var(--sfx-text-secondary); | |
| line-height: 1.45; | |
| } | |
| /* Toast dismiss button */ | |
| .sfx-toast__dismiss { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 24px; | |
| height: 24px; | |
| border-radius: var(--sfx-r-sm); | |
| color: var(--sfx-text-muted); | |
| background: transparent; | |
| border: none; | |
| cursor: pointer; | |
| flex-shrink: 0; | |
| transition: background var(--sfx-dur-fast) var(--sfx-ease); | |
| -webkit-tap-highlight-color: transparent; | |
| } | |
| .sfx-toast__dismiss:hover { | |
| background: oklch(100% 0 0 / 0.10); | |
| color: var(--sfx-text-primary); | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| .sfx-toast, | |
| .sfx-toast--exit { | |
| animation: none; | |
| } | |
| } | |
| /* Mobile: toasts full-width bottom */ | |
| @media (max-width: 480px) { | |
| .sfx-toast-container { | |
| top: auto; | |
| right: 0; | |
| left: 0; | |
| bottom: calc(var(--sfx-nav-height) + var(--sfx-safe-area-bot) + var(--sfx-sp-1)); | |
| max-width: 100%; | |
| width: 100%; | |
| padding: 0 var(--sfx-sp-1); | |
| } | |
| } | |
| /* ╔══════════════════════════════════════════════════════════════╗ | |
| ║ CONFIRM DIALOG ║ | |
| ╚══════════════════════════════════════════════════════════════╝ */ | |
| .sfx-confirm { | |
| max-width: 340px; | |
| } | |
| .sfx-confirm__icon { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 48px; | |
| height: 48px; | |
| border-radius: var(--sfx-r-lg); | |
| margin-bottom: var(--sfx-sp-2); | |
| } | |
| .sfx-confirm__icon--danger { | |
| background: var(--sfx-loss-bg); | |
| color: var(--sfx-loss); | |
| } | |
| .sfx-confirm__icon--warn { | |
| background: var(--sfx-warning-bg); | |
| color: var(--sfx-warning); | |
| } | |
| .sfx-confirm__text { | |
| font-family: var(--sfx-font-sans); | |
| font-size: var(--sfx-fs-md); | |
| color: var(--sfx-text-secondary); | |
| margin-bottom: var(--sfx-sp-2); | |
| line-height: 1.55; | |
| } | |
| /* ╔══════════════════════════════════════════════════════════════╗ | |
| ║ POPOVER / TOOLTIP ║ | |
| ╚══════════════════════════════════════════════════════════════╝ */ | |
| .sfx-popover { | |
| position: absolute; | |
| z-index: calc(var(--sfx-z-modal) - 10); | |
| padding: var(--sfx-sp-1) var(--sfx-sp-2); | |
| border-radius: var(--sfx-r-md); | |
| max-width: 280px; | |
| background: var(--sfx-glass-bg); | |
| backdrop-filter: var(--sfx-glass-blur) var(--sfx-glass-sat); | |
| -webkit-backdrop-filter: var(--sfx-glass-blur) var(--sfx-glass-sat); | |
| border: 1px solid var(--sfx-glass-border); | |
| box-shadow: var(--sfx-shadow-modal); | |
| animation: sfx-scale-in var(--sfx-dur-fast) var(--sfx-ease) both; | |
| } | |
| .sfx-tooltip { | |
| position: absolute; | |
| z-index: var(--sfx-z-toast); | |
| padding: 4px 10px; | |
| border-radius: var(--sfx-r-sm); | |
| font-family: var(--sfx-font-sans); | |
| font-size: var(--sfx-fs-xs); | |
| font-weight: 500; | |
| color: var(--sfx-text-inverse); | |
| background: var(--sfx-text-primary); | |
| white-space: nowrap; | |
| pointer-events: none; | |
| animation: sfx-fade-in var(--sfx-dur-fast) var(--sfx-ease) both; | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| .sfx-popover, | |
| .sfx-tooltip { | |
| animation: none; | |
| } | |
| } | |
| /* ╔══════════════════════════════════════════════════════════════╗ | |
| ║ CYCLE DETAIL PANEL (full-height right-side panel) ║ | |
| ╚══════════════════════════════════════════════════════════════╝ */ | |
| .sfx-panel { | |
| position: fixed; | |
| top: calc(var(--sfx-topbar-height) + var(--sfx-safe-area-top)); | |
| right: 0; | |
| bottom: calc(var(--sfx-nav-height) + var(--sfx-safe-area-bot)); | |
| width: min(420px, 100vw); | |
| z-index: calc(var(--sfx-z-modal) - 5); | |
| overflow-y: auto; | |
| padding: var(--sfx-sp-2); | |
| background: var(--sfx-glass-bg); | |
| backdrop-filter: var(--sfx-glass-blur) var(--sfx-glass-sat); | |
| -webkit-backdrop-filter: var(--sfx-glass-blur) var(--sfx-glass-sat); | |
| border-left: 1px solid var(--sfx-glass-border); | |
| box-shadow: var(--sfx-shadow-modal); | |
| animation: sfx-slide-right var(--sfx-dur-normal) var(--sfx-ease) both; | |
| transform-origin: right center; | |
| } | |
| .sfx-panel--closing { | |
| animation: sfx-fade-out var(--sfx-dur-fast) var(--sfx-ease) both; | |
| } | |
| .sfx-panel__header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| margin-bottom: var(--sfx-sp-2); | |
| padding-bottom: var(--sfx-sp-2); | |
| border-bottom: 1px solid var(--sfx-border); | |
| } | |
| .sfx-panel__title { | |
| font-family: var(--sfx-font-sans); | |
| font-size: var(--sfx-fs-md); | |
| font-weight: 700; | |
| color: var(--sfx-text-primary); | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| .sfx-panel, | |
| .sfx-panel--closing { | |
| animation: none; | |
| } | |
| } |
Xet Storage Details
- Size:
- 15.9 kB
- Xet hash:
- 2405c91ceafd9c30e55a59847f50f347bc12572f3873c6943fa3909bdaaa6fa8
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.