tweak toc style

This commit is contained in:
Reorx 2022-04-10 20:38:20 +08:00
parent d7f6d6a773
commit 7dc044f2ba
1 changed files with 5 additions and 3 deletions

View File

@ -69,8 +69,7 @@
font-size: 12px; font-size: 12px;
} }
.post-content a, .post-content a {
.toc a:hover {
box-shadow: 0 1px 0; box-shadow: 0 1px 0;
} }
@ -266,7 +265,7 @@
@media screen and (min-width: 1000px) { @media screen and (min-width: 1000px) {
.toc.side { .toc.side {
position: fixed; position: fixed;
right: 50px; right: 30px;
top: 100px; top: 100px;
width: 300px; width: 300px;
font-size: .9em; font-size: .9em;
@ -297,6 +296,9 @@
margin-inline-start: var(--gap); margin-inline-start: var(--gap);
} }
.toc li a.active { .toc li a.active {
box-shadow: 0 2px 0 var(--secondary);
}
.toc a:hover {
text-decoration: underline; text-decoration: underline;
} }