2022-12-18 13:48:49 +01:00
|
|
|
.preview-grid {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
grid-template-rows: auto;
|
2023-05-01 23:22:33 +02:00
|
|
|
grid-gap: $lineheight / 3;
|
|
|
|
margin: -$lineheight / 3;
|
2022-12-18 13:48:49 +01:00
|
|
|
padding-bottom: $lineheight;
|
|
|
|
|
|
|
|
@include md() {
|
|
|
|
grid-template-columns: 1fr 1fr;
|
|
|
|
}
|
|
|
|
|
2023-05-01 23:22:33 +02:00
|
|
|
@include lg() {
|
2022-12-18 13:48:49 +01:00
|
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
|
|
}
|
|
|
|
|
2023-05-01 23:22:33 +02:00
|
|
|
@include xl() {
|
2022-12-18 13:48:49 +01:00
|
|
|
grid-template-columns: 1fr 1fr 1fr 1fr;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.preview-list {
|
2023-05-01 23:22:33 +02:00
|
|
|
.preview {
|
|
|
|
display: block;
|
|
|
|
}
|
2022-12-18 13:48:49 +01:00
|
|
|
@include sm() {
|
2023-05-03 10:28:39 +02:00
|
|
|
.preview-thumbnail {
|
|
|
|
width: min-content;
|
|
|
|
img {
|
|
|
|
width: 240px;
|
|
|
|
margin-right: $lineheight /2;
|
|
|
|
}
|
2022-12-18 13:48:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.preview {
|
|
|
|
display: flex;
|
2023-05-01 23:22:33 +02:00
|
|
|
align-items: start;
|
2022-12-18 13:48:49 +01:00
|
|
|
margin-bottom: $lineheight;
|
|
|
|
}
|
|
|
|
}
|
2022-12-18 16:41:18 +01:00
|
|
|
@include xl() {
|
2023-05-01 23:22:33 +02:00
|
|
|
.preview-thumbnail img {
|
2022-12-18 13:48:49 +01:00
|
|
|
width: 320px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.preview {
|
|
|
|
font-size: 0.8rem;
|
2023-05-01 23:22:33 +02:00
|
|
|
text-decoration: none;
|
|
|
|
padding: $lineheight / 3;
|
|
|
|
border-radius: $card-radius;
|
2022-12-18 13:48:49 +01:00
|
|
|
}
|
|
|
|
|
2023-05-01 23:22:33 +02:00
|
|
|
.preview-thumbnail {
|
2022-12-18 13:48:49 +01:00
|
|
|
display:block;
|
|
|
|
width: 100%;
|
|
|
|
background-color:transparent;
|
|
|
|
object-fit: cover;
|
|
|
|
padding:0;
|
|
|
|
line-height:0;
|
|
|
|
img {
|
|
|
|
width:100%;
|
|
|
|
object-fit: cover;
|
|
|
|
height: auto;
|
|
|
|
aspect-ratio: 16/9;
|
|
|
|
border-radius: $card-radius;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-18 15:17:25 +01:00
|
|
|
.preview h2, .preview-featured h2 {
|
2022-12-18 13:48:49 +01:00
|
|
|
font-size:1.25rem;
|
|
|
|
line-height: 1.5rem;
|
|
|
|
font-family: $titlefont;
|
|
|
|
font-weight: 800;
|
|
|
|
height:3rem;
|
2023-05-01 23:22:33 +02:00
|
|
|
color: $color-font;
|
2022-12-18 13:48:49 +01:00
|
|
|
a {
|
|
|
|
background-color:transparent!important;
|
|
|
|
color:$color-font;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-01 23:22:33 +02:00
|
|
|
.preview-featured h2 {
|
|
|
|
color: $color-font-light;
|
|
|
|
}
|
|
|
|
|
2022-12-18 13:48:49 +01:00
|
|
|
.preview-excerpt {
|
|
|
|
margin-top: $lineheight / 2;
|
|
|
|
font-size:0.8rem;
|
|
|
|
line-height:1.25rem;
|
|
|
|
color:transparentize($color-font, 0.2);
|
|
|
|
}
|