From 1c3c63dec1be327544c45d5b5e0d3bfce8fd8696 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 4 May 2023 13:05:13 +0200 Subject: [PATCH] limit description to 2 lines max --- static/css/blog/index.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/static/css/blog/index.css b/static/css/blog/index.css index 5606ea0..eb310ac 100644 --- a/static/css/blog/index.css +++ b/static/css/blog/index.css @@ -139,9 +139,14 @@ a:hover { /* Descriptions */ .timeline > ul > li > .content > p { - padding: 5px 0px 15px 0px; + padding-top: 5px; font-size: calc(var(--font-size) - 2px); max-width: 25em; + + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + overflow: hidden; } /* Points côté */