News list rows: image next to the text, height follows content
- 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>
This commit is contained in:
1 parent
9d9917eea5
commit
7032f46e79
3 files changed
+33
-9
No files matched your search
+18
@@ -10,6 +10,24 @@
|
||||
// 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 {
|
||||
|
||||
Reference in new issue
Block a user