From 3595435078d5979ee2843e1f61479030b53fd472 Mon Sep 17 00:00:00 2001 From: xy <10816187@qq.com> Date: Fri, 28 Aug 2026 22:29:33 +0800 Subject: [PATCH] =?UTF-8?q?style:=20text-shadow=E6=9B=BF=E4=BB=A3=E5=8A=A0?= =?UTF-8?q?=E7=B2=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Post/Toc.astro | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/Post/Toc.astro b/src/components/Post/Toc.astro index 94ed7b2..a92f6e8 100644 --- a/src/components/Post/Toc.astro +++ b/src/components/Post/Toc.astro @@ -58,13 +58,17 @@ const lowLevel = Math.min(...toc.map((v) => v.level)); .toc-item:hover { color: var(--text-title-hover); - font-weight: bold; + text-shadow: + 0.3px 0 0 currentColor, + -0.3px 0 0 currentColor; } .toc-item.is-active { position: relative; color: var(--text-title-hover); - font-weight: bold; + text-shadow: + 0.3px 0 0 currentColor, + -0.3px 0 0 currentColor; } .toc-item.is-active::before { @@ -80,7 +84,7 @@ const lowLevel = Math.min(...toc.map((v) => v.level)); } @media (max-width: 1250px) { - .toc-mount{ + .toc-mount { display: none; } }