style: text-shadow替代加粗

This commit is contained in:
2026-08-28 22:29:33 +08:00
parent c7e51af0e0
commit 3595435078

View File

@@ -58,13 +58,17 @@ const lowLevel = Math.min(...toc.map((v) => v.level));
.toc-item:hover { .toc-item:hover {
color: var(--text-title-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 { .toc-item.is-active {
position: relative; position: relative;
color: var(--text-title-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::before { .toc-item.is-active::before {
@@ -80,7 +84,7 @@ const lowLevel = Math.min(...toc.map((v) => v.level));
} }
@media (max-width: 1250px) { @media (max-width: 1250px) {
.toc-mount{ .toc-mount {
display: none; display: none;
} }
} }