Skip to content

Commit

Permalink
Adds underline to current section in the table of contents
Browse files Browse the repository at this point in the history
Closes #408
  • Loading branch information
samglover committed Nov 12, 2024
1 parent e11382f commit 7fd2f2a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
--ifm-footer-padding-vertical: 15px;
}

article a {
article a,
.table-of-contents a.table-of-contents__link--active {
text-decoration: underline;
text-decoration-thickness: 0.04em;
text-underline-offset: 0.3em;
Expand Down Expand Up @@ -134,12 +135,6 @@ article .markdown p img {
}
}

/* Demo what more accessible menu selection can look like */
html[class*="docs-doc-id-alkiln"] a.table-of-contents__link--active {
text-decoration: underline;
text-underline-offset: .4em;
}

html[class*="docs-doc-id-alkiln"] *:not(h1),
html[class*="docs-doc-id-alkiln"] *:not(h2),
html[class*="docs-doc-id-alkiln"] *:not(h3),
Expand Down

0 comments on commit 7fd2f2a

Please sign in to comment.