From 6ddd5c65d7dbcab2278c5a14a18f6a65c5b7ab82 Mon Sep 17 00:00:00 2001 From: nanhaoluo <3075912108@qq.com> Date: Fri, 16 Jan 2026 14:44:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E7=BC=96=E5=8F=B7=E8=A2=AB=E8=A6=86=E7=9B=96=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 .index-link::before 选择器限定为 #leftbar_mobile_catalog - 避免全局样式覆盖 sidebar.php 中的 CSS 计数器 --- style.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/style.css b/style.css index 6847290..2a5b409 100644 --- a/style.css +++ b/style.css @@ -16518,8 +16518,8 @@ article img.loaded, .post-thumbnail img.loaded, article img:not([loading="lazy"] /* 14. 目录导航动画 */ .index-link { transition: all var(--animation-fast) var(--ease-standard); position: relative; } -.index-link::before { content: ""; position: absolute; left: -8px; top: 50%; transform: translateY(-50%) scaleY(0); width: 3px; height: 60%; background: var(--themecolor); border-radius: 2px; transition: transform var(--animation-normal) var(--ease-spring); } -.index-item.current > .index-link::before { transform: translateY(-50%) scaleY(1); } +#leftbar_mobile_catalog .index-link::before { content: ""; position: absolute; left: -8px; top: 50%; transform: translateY(-50%) scaleY(0); width: 3px; height: 60%; background: var(--themecolor); border-radius: 2px; transition: transform var(--animation-normal) var(--ease-spring); } +#leftbar_mobile_catalog .index-item.current > .index-link::before { transform: translateY(-50%) scaleY(1); } /* 15. 时间线动画 */ .timeline-item { opacity: 0; transform: translateX(-20px); animation: modernTimelineSlideIn var(--animation-slow) var(--ease-emphasized-decelerate) forwards; }