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
Vendored
+13
-4
@@ -1205,6 +1205,19 @@ div.pp_default .pp_close:hover {
|
|||||||
}
|
}
|
||||||
.blog .post > .row {
|
.blog .post > .row {
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
}
|
||||||
|
.blog .post > .row > .col-4 {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
width: auto;
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
.blog .post > .row > .col-8 {
|
||||||
|
flex: 1 1 auto;
|
||||||
|
width: auto;
|
||||||
|
min-width: 0;
|
||||||
|
padding-left: 12px;
|
||||||
|
padding-right: calc(var(--bs-gutter-x) * 0.5);
|
||||||
}
|
}
|
||||||
.blog .post img {
|
.blog .post img {
|
||||||
display: block;
|
display: block;
|
||||||
@@ -1653,10 +1666,6 @@ h2.box_header span {
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
.news .blog .post {
|
|
||||||
height: 115px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bread_crumb {
|
.bread_crumb {
|
||||||
height: 38px;
|
height: 38px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|||||||
+18
@@ -10,6 +10,24 @@
|
|||||||
// hoogte volgt de inhoud (titel + datum), zodat er geen lege ruimte onder korte berichten ontstaat
|
// hoogte volgt de inhoud (titel + datum), zodat er geen lege ruimte onder korte berichten ontstaat
|
||||||
> .row {
|
> .row {
|
||||||
align-items: flex-start;
|
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 {
|
img {
|
||||||
|
|||||||
+2
-5
@@ -1,7 +1,4 @@
|
|||||||
@use "../components/news_post";
|
@use "../components/news_post";
|
||||||
|
|
||||||
.news {
|
// News list rows (/nieuws and tag pages) follow their content, like the other
|
||||||
.blog .post {
|
// lists; they used to have a fixed height of 115px
|
||||||
height: 115px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user