From a88d032958c4059abdda056341565a936191f525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BE=A1=E7=BE=A1?= Date: Fri, 21 Apr 2023 10:21:26 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=E4=BF=AE=E5=A4=8D=E7=BD=AE=E9=A1=B6?= =?UTF-8?q?=E6=96=87=E5=AD=97=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/assets/zhheo/zhheoblog.css | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/templates/assets/zhheo/zhheoblog.css b/templates/assets/zhheo/zhheoblog.css index b4165faf..16b3b8eb 100644 --- a/templates/assets/zhheo/zhheoblog.css +++ b/templates/assets/zhheo/zhheoblog.css @@ -8965,7 +8965,7 @@ li { } } -.recent-post-item .recent-post-info .recent-post-info-top .content { +.recent-post-info-top:not(:has(> span)) .content { transition: 0.3s; display: -webkit-box; overflow: hidden; @@ -8976,6 +8976,17 @@ li { margin-top: 0.5rem; } +span + a + .content:last-child { + transition: 0.3s; + display: -webkit-box; + overflow: hidden; + -webkit-box-orient: vertical; + -webkit-line-clamp: 1; + line-height: 1.4; + color: var(--heo-secondtext); + margin-top: 0.5rem; +} + @media screen and (max-width: 1300px) { .recent-post-item:hover .recent-post-info .recent-post-info-top .content {