Skip to content

Make section scrolling work with modified CSS#75

Open
mattalbright wants to merge 1 commit intopages-themes:masterfrom
mattalbright:patch-1
Open

Make section scrolling work with modified CSS#75
mattalbright wants to merge 1 commit intopages-themes:masterfrom
mattalbright:patch-1

Conversation

@mattalbright
Copy link
Copy Markdown

190px is hardcoded in the Javascript, whereas a user of this theme can easily override the size of the header and banner, and hence the location of the top of the main section. This change makes the scrollTop location when clicking a nav link always be correct, instead of assuming the main section is always 190px from the top.

190px is hardcoded in the Javascript, whereas a user of this theme can easily override the size of the header and banner, and hence the location of the top of the main section. This change makes the scrollTop location when clicking a nav link always be correct, instead of assuming the main section is always 190px from the top.
@welcome
Copy link
Copy Markdown

welcome bot commented Jun 5, 2024

Welcome! Congrats on your first pull request to the Leap Day theme. If you haven't already, please be sure to check out the contributing guidelines.

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

Successfully merging this pull request may close these issues.

1 participant