Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add styling to TOC #1014

Merged
merged 2 commits into from
May 24, 2019
Merged

feat: Add styling to TOC #1014

merged 2 commits into from
May 24, 2019

Conversation

dcramer
Copy link
Member

@dcramer dcramer commented May 24, 2019

No description provided.

@dcramer
Copy link
Member Author

dcramer commented May 24, 2019

image

@dcramer dcramer requested a review from cameronmcefee May 24, 2019 17:26
let curMatch;
$(':header').each(function() {
const id = $(this).attr('id');
if (id && scrollTop >= $(this).position().top) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

had to use .position instead of .offset since the scrollbar is not on document (but instead on .main-scroll)

@dcramer dcramer force-pushed the feat/toc-styles branch 3 times, most recently from c21a006 to 525304f Compare May 24, 2019 18:48
@dcramer dcramer force-pushed the feat/toc-styles branch from 525304f to a59d74a Compare May 24, 2019 20:43
@dcramer dcramer merged commit 7bbf75a into master May 24, 2019
@dcramer dcramer deleted the feat/toc-styles branch May 24, 2019 21:57
@github-actions github-actions bot locked and limited conversation to collaborators Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants