-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix/6475 Table of Contents overflowing side of window and global foot…
…er (#140) * Fix horizontal overflow of toc * Add script to position fixed toc above footer is it overlaps * Add lodash throttle * 💄 eslint ignore lodash throttle issues * Switch to lodash throttle In several browsers there is a delay before the scroll position is restored. This results in the ToC not being repositioned if the page is refreshed when scrolled to the bottom. Lodash Throttle provides support for `trailing` events to always be fired, which fixes the issue, whereas rafThrottle does not. * Add minified lodash.throttle * 💄 follow file naming convention * Use CSS to handle vertical overflow
- Loading branch information
1 parent
83870de
commit 34241c1
Showing
3 changed files
with
17 additions
and
62 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
5 changes: 2 additions & 3 deletions
5
source/wp-content/themes/wporg-developer/scss/settings/_dimensions.scss
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
$single-handbook-content-width: 960px; | ||
$single-handbook-content-primary-width: 0.72; | ||
$single-handbook-toc-position-top: 200px; | ||
$single-handbook-toc-width: 15vw; | ||
$single-handbook-toc-position-top: 150px; | ||
|
||
$devhub-wrap-content-width: 60em; | ||
$devhub-wrap-toc-position-top: 210px; |
32 changes: 7 additions & 25 deletions
32
source/wp-content/themes/wporg-developer/stylesheets/main.css
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.