Skip to content

Commit

Permalink
move TOC generation to a partial and inject bootstrap scrollspy styling
Browse files Browse the repository at this point in the history
Signed-off-by: Pete Lumbis <[email protected]>
  • Loading branch information
plumbis committed Feb 16, 2024
1 parent a66f1d1 commit 4205d05
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions themes/geekboot/assets/scss/_toc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@
padding-left: 0;
margin-bottom: 0;
list-style: none;
display: inherit;


ul {
padding-left: 1rem;
margin-top: .25rem;
}

}

li {
Expand All @@ -33,11 +36,29 @@

a {
color: inherit;
display: inherit;
padding: inherit;

&.active {
color: var(--content-link-color);
font-weight: 600;
letter-spacing: .60px;

&:hover{
color: var(--content-link-color);;
text-decoration: underline !important;
}
}

&:not(:hover) {
text-decoration: none;
}

&:hover{
color: inherit;
text-decoration: underline !important;
}

code {
font: inherit;
}
Expand Down

0 comments on commit 4205d05

Please sign in to comment.