Files
clj-ui-framework/src/ui/card.css
Florian Schroedl 0dd8a9c8bf fix(card): reduce internal spacing and bump footer button size
Refactor card to use flex column with gap-based spacing instead of
per-section padding, tightening the space between header, body, and
footer from size-6 to size-3. Add .card-footer .btn override to
render buttons at font-base size.
2026-03-03 17:08:29 +01:00

49 lines
775 B
CSS

.card {
display: flex;
flex-direction: column;
gap: var(--size-3);
background: var(--bg-1);
color: var(--fg-0);
border: var(--border-0);
border-radius: var(--radius-md);
box-shadow: var(--shadow-0);
overflow: hidden;
padding: var(--size-6);
}
.card-header {
display: flex;
flex-direction: column;
gap: var(--size-1);
}
.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6 {
margin: 0;
}
.card-header p {
font-size: var(--font-sm);
color: var(--fg-2);
margin: 0;
}
.card-body {
}
.card-footer {
display: flex;
justify-content: flex-end;
gap: var(--size-2);
}
.card-footer .btn {
padding: var(--size-2) var(--size-4);
font-size: var(--font-base);
line-height: var(--size-5);
}