@studiocms/ui
Version:
The UI library for StudioCMS. Includes the layouts & components we use to build StudioCMS.
42 lines (41 loc) • 726 B
CSS
.sui-card {
border: 1px solid hsl(var(--border));
background-color: hsl(var(--background-base));
border-radius: var(--radius-md);
width: fit-content;
height: fit-content;
}
.sui-card.filled {
background-color: hsl(var(--background-step-3));
border: none;
}
.sui-card.full-w {
width: 100%;
}
.sui-card.full-h {
height: 100%;
}
.sui-card-header:has(*) {
padding: 1rem 1rem 0rem 1rem;
* {
margin: 0;
}
}
.sui-card-body {
padding: 1rem;
}
.sui-card-footer:has(*) {
border-top: 1px solid hsl(var(--border));
padding: 1rem;
}
.sui-card-footer:not(:has(*)) {
display: none;
}
.filled .sui-card-footer {
border: none;
}
@media screen and (max-width: 840px) {
.sui-card {
width: 100%;
}
}