-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove extra space above ToC when scrolling down the page (#525)
* Leave the sidebar positioned absolute until the page is scrolled * Add default local nav height This means themes don't need to set it unless different. Matches the css property fallback. * Optimise scroll logic Remove dom selectors and other static vars * Remove scroll logic for toggling contents Toggle functionality has been removed on desktop, which is the only size we handle scroll * Add an extra guard on the scroll logic * Move isSidebarWithinViewport guard within function * Add fallback for top gap * Reduce the bottom space above the footer * Improve comments * Replace local nav bar height var with global setting * Adjust settings to work with Documentation site * Adjust calculation for sidebar fitting in viewport
- Loading branch information
1 parent
03a432f
commit ccedfbb
Showing
4 changed files
with
83 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters