48 lines
887 B
CSS
48 lines
887 B
CSS
.teaserCard {
|
|
border-radius: var(--Corner-radius-md);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
border: 1px solid var(--Border-Default);
|
|
color: var(--Text-Default);
|
|
|
|
&.default {
|
|
background-color: var(--Surface-Secondary-Default);
|
|
}
|
|
|
|
&.featured {
|
|
background-color: var(--Surface-Primary-Default);
|
|
}
|
|
}
|
|
|
|
.imageContainer {
|
|
width: 100%;
|
|
height: 200px;
|
|
position: relative;
|
|
}
|
|
|
|
.content {
|
|
display: grid;
|
|
gap: var(--Space-x15);
|
|
padding: var(--Space-x2) var(--Space-x3);
|
|
grid-template-rows: auto 1fr auto;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.ctaContainer {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: var(--Space-x1);
|
|
width: 100%;
|
|
}
|
|
|
|
@media (min-width: 1367px) {
|
|
.teaserCard:not(.alwaysStack) .ctaContainer {
|
|
grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
|
|
|
|
&:has(:only-child) {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
}
|