Mark active item in table of contents (#733)

This commit is contained in:
Philipp Oppermann
2020-01-31 14:17:22 +01:00
committed by GitHub
parent e2ea963d5d
commit 728620b527
2 changed files with 46 additions and 2 deletions

View File

@@ -193,14 +193,21 @@ aside#all-posts-link {
margin-left: -15rem;
font-size: 90%;
line-height: 1.2;
}
#toc-aside li:not(.active) > a, #toc-aside h2 {
opacity: .5;
transition: opacity .5s;
}
#toc-aside:hover {
#toc-aside:hover li:not(.active) > a, #toc-aside:hover h2 {
opacity: 1;
}
#toc-aside li.active > a {
font-weight: bold;
}
#toc-aside h2 {
font-size: 110%;
margin-bottom: .2rem;
@@ -212,7 +219,7 @@ aside#all-posts-link {
list-style:none;
}
#toc-aside ol li:before {
#toc-aside ol li a:before {
content: "";
border-color: transparent #008eef;
border-style: solid;