Files
havox/assets/sass/components/_card.scss
2026-03-10 21:01:46 +00:00

68 lines
978 B
SCSS

/* Card */
.card-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.box-wrapper {
margin: 0;
padding: 0;
}
.card-container .box-wrapper {
flex: 0 0 50%;
}
.card {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border-radius: _size(border-radius);
border: solid _size(border-width) #ddd;
margin-bottom: _size(element-margin);
padding: 1.5em;
margin: 1.5em;
width: 100%;
> :last-child,
> :last-child > :last-child,
> :last-child > :last-child > :last-child {
margin-bottom: 0;
}
&.alt {
border: 0;
border-radius: 0;
padding: 0;
}
.title {
font-size: 1.5em;
}
img {
width: 80%;
max-width: 600px;
height: auto;
}
.description {
font-size: 1.1em;
padding-top: 1em;
}
.date {
font-size: 1em;
margin-top: auto;
}
}
@include breakpoint("<=small") {
.card-container .box-wrapper {
flex: 0 0 100%;
}
}