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:
Erik Demaine
2018-08-08 00:22:06 -04:00
committed by ylemkimon
parent 48e6d9d431
commit 05dc9211cc
3 changed files with 64 additions and 1 deletions

View File

@@ -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%;
}