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

Smooth scroll to wrong vertical position #1

Closed
MENGCHE-Wu opened this issue Mar 17, 2020 · 1 comment
Closed

Smooth scroll to wrong vertical position #1

MENGCHE-Wu opened this issue Mar 17, 2020 · 1 comment

Comments

@MENGCHE-Wu
Copy link

Hello , thanks for sharing the great theme.
The scroll seems always get too high when i click the toc on side-bar,
It seems the smooth-scroll ignore the header's height, ends up the target string always behind header.
Is there any way to fix it? thanks

@MENGCHE-Wu
Copy link
Author

MENGCHE-Wu commented May 26, 2020

Hello,
After looking for a while for solution, i found that it needs to add some padding/margin to the headers css, so that the scrolling would avoid the height of head wrapper, and without causing the previous element too far.
�I got this issue fixed by modifying the index.styl file located in folder "styles", I hope this helps others.

Screen Shot 2020-05-26 at 4 22 44 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant