feat: add scroll spy to toc pages as an option (experimental)

This commit is contained in:
Henk Verlinde
2022-06-23 20:15:51 +02:00
parent 75d250b240
commit 8d833bd931
7 changed files with 37 additions and 16 deletions

View File

@ -570,3 +570,7 @@ $navbar-dark-active-color: $link-color-dark;
[data-dark-mode] details summary::before {
content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%28222, 226, 230, 0.75%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
}
[data-dark-mode] #toc a.active {
color: $link-color-dark;
}

View File

@ -214,11 +214,17 @@ body {
text-decoration: none;
}
#TableOfContents ul {
#TableOfContents ul,
#toc ul {
padding-left: 0;
list-style: none;
}
#toc a.active {
color: $primary;
font-weight: 500;
}
::selection {
background: rgba(212, 53, 159, 0.2);
}