style: text-shadow替代加粗
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user