87 lines
3.8 KiB
CSS
87 lines
3.8 KiB
CSS
@layer frost.components {
|
|
.frost-card, .frost-surface {
|
|
border: 1px solid var(--frost-color-border);
|
|
border-radius: var(--frost-radius-lg);
|
|
background: var(--frost-color-surface);
|
|
}
|
|
|
|
.frost-card { padding: var(--frost-space-6); }
|
|
.frost-card--flat { box-shadow: none; }
|
|
.frost-card--elevated { box-shadow: var(--frost-shadow-md); }
|
|
.frost-card--interactive { transition: border-color var(--frost-duration-base) var(--frost-ease-standard), box-shadow var(--frost-duration-base) var(--frost-ease-standard), transform var(--frost-duration-fast) var(--frost-ease-out); }
|
|
.frost-card--interactive:hover,
|
|
.frost-card--interactive:focus-within { border-color: var(--frost-color-border-strong); box-shadow: var(--frost-shadow-md); transform: translateY(-1px); }
|
|
|
|
.frost-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-height: 1.5rem;
|
|
padding: var(--frost-space-1) var(--frost-space-2);
|
|
border: 1px solid var(--frost-color-border);
|
|
border-radius: var(--frost-radius-pill);
|
|
background: var(--frost-color-surface-soft);
|
|
color: var(--frost-color-text);
|
|
font-size: 0.8125rem;
|
|
font-weight: 650;
|
|
line-height: 1;
|
|
}
|
|
|
|
.frost-badge--success { border-color: var(--frost-color-success); border-color: color-mix(in srgb, var(--frost-color-success) 45%, var(--frost-color-border)); color: var(--frost-color-success); }
|
|
.frost-badge--warning { border-color: var(--frost-color-warning); border-color: color-mix(in srgb, var(--frost-color-warning) 45%, var(--frost-color-border)); color: var(--frost-color-warning); }
|
|
.frost-badge--danger { border-color: var(--frost-color-danger); border-color: color-mix(in srgb, var(--frost-color-danger) 45%, var(--frost-color-border)); color: var(--frost-color-danger); }
|
|
.frost-badge--info { border-color: var(--frost-color-info); border-color: color-mix(in srgb, var(--frost-color-info) 45%, var(--frost-color-border)); color: var(--frost-color-info); }
|
|
|
|
.frost-notice { padding: var(--frost-space-4); border: 1px solid var(--frost-color-border-strong); border-radius: var(--frost-radius-md); background: var(--frost-color-surface-soft); color: var(--frost-color-text); }
|
|
.frost-notice--info { border-color: var(--frost-color-info); }
|
|
.frost-notice--success { border-color: var(--frost-color-success); }
|
|
.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; }
|
|
}
|
|
}
|
|
|
|
@layer frost.utilities {
|
|
.frost-text-muted { color: var(--frost-color-text-muted); }
|
|
.frost-text-center { text-align: center; }
|
|
.frost-width-full { width: 100%; }
|
|
.frost-overflow-auto { overflow: auto; }
|
|
}
|
|
|