@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; } } }