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; } }