commit 131ec5da72ed5545014e17782a9c5ca60611b542
parent a0ba286eb5abd85d3d8f8d3162e318bd4cbe21b7
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date: Sat, 12 Apr 2025 12:20:55 +0200
fix: clip length of summary
Diffstat:
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/assets/css/custom.css b/assets/css/custom.css
@@ -4,7 +4,7 @@
}
/* Hide linebreaks inside articles */
section > br,
-section > p > br
+section > * > br
{
display: none;
}
@@ -13,8 +13,16 @@ section > p > br
{
display: none;
}
+/* clip article summary at 5th line */
.article_content {
margin-bottom: 1.5em;
+ -webkit-box-orient: vertical;
+ display: -webkit-box;
+ -webkit-line-clamp: 5;
+ overflow: hidden;
+}
+p {
+ margin: 0px;
}
/* Article content should not be weighted or have any styling */
.article_content > * {