- Image column exactly as wide as the image, 12px gap to the title (was a third of the row: 28-152px of empty space depending on the list) - Long titles stay inside the list on desktop - /nieuws and tag pages: rows follow their content (fixed 115px removed), like the homepage and sidebar lists Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
89 lines
1.8 KiB
SCSS
Vendored
89 lines
1.8 KiB
SCSS
Vendored
@use "../abstracts/mixin" as *;
|
|
@use "../abstracts/variables" as *;
|
|
|
|
.blog {
|
|
@include reset-list;
|
|
|
|
.post {
|
|
margin-bottom: 20px;
|
|
|
|
// hoogte volgt de inhoud (titel + datum), zodat er geen lege ruimte onder korte berichten ontstaat
|
|
> .row {
|
|
align-items: flex-start;
|
|
flex-wrap: nowrap;
|
|
|
|
// Image column exactly as wide as the image, the text right next to it
|
|
// (was a third of the row, which left a large gap on wide lists)
|
|
> .col-4 {
|
|
flex: 0 0 auto;
|
|
width: auto;
|
|
padding-right: 0;
|
|
}
|
|
|
|
> .col-8 {
|
|
flex: 1 1 auto;
|
|
width: auto;
|
|
min-width: 0;
|
|
padding-left: 12px;
|
|
// Cancels the row's negative margin, so long titles stay inside the list
|
|
padding-right: calc(var(--bs-gutter-x) * 0.5);
|
|
}
|
|
}
|
|
|
|
img {
|
|
display: block;
|
|
width: 70px;
|
|
height: 70px;
|
|
object-fit: cover;
|
|
}
|
|
.post_title {
|
|
margin: 0;
|
|
font-family: var(--font-base);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
line-height: 1.43;
|
|
|
|
a {
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
|
|
&.clipText {
|
|
display: -webkit-box;
|
|
}
|
|
}
|
|
}
|
|
|
|
.col-8 {
|
|
padding: 0;
|
|
}
|
|
|
|
.post_date {
|
|
@include post_date;
|
|
color: $primary;
|
|
}
|
|
|
|
.disabled {
|
|
color: #A1A1A1;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.post_body {
|
|
font-family: var(--font-base);
|
|
font-size: 15px;
|
|
line-height: 1.6;
|
|
color: $text-dark-color;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Mobiel: lijst past binnen het vak (de bootstrap-rij had negatieve marges waardoor tekst tegen de rand liep)
|
|
@media (max-width: 768px) {
|
|
.blog .post > .row {
|
|
margin-left: 0;
|
|
margin-right: 0;
|
|
> .col-4 {
|
|
padding-left: 0;
|
|
}
|
|
}
|
|
}
|