Files
heroui-vue/packages/styles/components/card.css
T

54 lines
1019 B
CSS

/* Adapted from HeroUI v3, ce90ea3. Copyright 2025 NextUI Inc.
* See third-party/HEROUI-LICENSE. Modified: hv- class prefix; Vue state adapters. */
/* Card component styles */
/* Block */
.hv-card {
@apply relative flex flex-col gap-3 overflow-visible p-4;
@apply shadow-surface;
border-radius: min(32px, var(--radius-3xl));
}
/* Element - header */
.hv-card__header {
@apply flex flex-col;
}
/* Element - title */
.hv-card__title {
@apply text-sm leading-6 font-medium text-foreground;
}
/* Element - description */
.hv-card__description {
@apply text-sm leading-5 text-muted;
}
/* Element - content */
.hv-card__content {
@apply flex flex-1 flex-col gap-1;
}
/* Element - footer */
.hv-card__footer {
@apply flex flex-row items-center;
}
/* Modifier - variant */
.hv-card--transparent {
@apply border-none bg-transparent shadow-none;
}
.hv-card--default {
@apply bg-surface;
}
.hv-card--secondary {
@apply bg-surface-secondary;
}
.hv-card--tertiary {
@apply bg-surface-tertiary;
}