Add migration-driven theme and modal primitives

This commit is contained in:
2026-10-29 23:01:50 +01:00
parent f3fcafcb7d
commit 1944cb8f5a
7 changed files with 72 additions and 2 deletions
+34
View File
@@ -37,6 +37,40 @@
.frost-notice--warning { border-color: var(--frost-color-warning); }
.frost-notice--danger { border-color: var(--frost-color-danger); }
.frost-backdrop {
position: fixed;
inset: 0;
background: var(--frost-color-overlay);
z-index: var(--frost-z-overlay);
}
.frost-modal {
position: fixed;
inset: 0;
display: grid;
place-items: center;
padding: var(--frost-space-4);
z-index: var(--frost-z-modal);
}
.frost-modal__content {
width: min(100%, 32rem);
max-height: min(90vh, 42rem);
overflow: auto;
padding: var(--frost-space-6);
border: 1px solid var(--frost-color-border-strong);
border-radius: var(--frost-radius-lg);
background: var(--frost-color-surface);
color: var(--frost-color-text);
box-shadow: var(--frost-shadow-lg);
}
.frost-modal__header,
.frost-modal__footer { display: flex; align-items: center; gap: var(--frost-space-3); }
.frost-modal__header { justify-content: space-between; margin-block-end: var(--frost-space-4); }
.frost-modal__body { display: grid; gap: var(--frost-space-4); }
.frost-modal__footer { justify-content: flex-end; margin-block-start: var(--frost-space-4); }
@media (prefers-reduced-motion: reduce) {
.frost-card--interactive:hover,
.frost-card--interactive:focus-within { transform: none; }