mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-10 21:48:41 +00:00
ScrollSpy for table of contents (#1557)
* ScrollSpy for table of contents * Add reference * Incorporate comments * Simplify headingsCache and change ScrollSpy reference * Add comment * Fix lint errors * Switch back to throlling, update comments
This commit is contained in:
@@ -1,3 +1,17 @@
|
||||
ul.toc-headings > li {
|
||||
padding-bottom: 0px; /* moved to li > a */
|
||||
}
|
||||
|
||||
.toc-headings > li > a {
|
||||
display: block;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.toc-headings > li > a.active {
|
||||
background-color: rgba(27, 31, 35, 0.05);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.fixedHeaderContainer header img {
|
||||
height: 80%;
|
||||
}
|
||||
|
Reference in New Issue
Block a user