Add migration-driven theme and modal primitives
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user