-
Notifications
You must be signed in to change notification settings - Fork 323
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
FIX: new CSS approach to navbar-covers-target-anchor problem #318
Conversation
@drammock Thanks for the PR! WIll try to give this a look in the weekend |
This tweet seemed like a promising option. @drammock wanna see if this fixed the problem? https://mobile.twitter.com/JoshWComeau/status/1332015868725891076 |
@choldgraf Thanks! I wasn't able to get |
b4e996a
to
948eec7
Compare
amazing! this LGTM. @jorisvandenbossche ? |
CSS magic .. ;-) |
Thanks both! |
closes #315
This attempts to use JavaScript instead of CSS to handle the problem of page anchors being hidden under the navbar. It's not perfect, but I'm hoping someone here with better webdev / javascript skills than mine can spot ways to improve it, and in any event at least it gets rid of the horrible handling of inline targets described in #315.
Known shortcomings:
hashchange
--- in this situation the hash isn't changing --- maybe there's a better way to trigger it that I'm not aware of?PS: I'm also no yarn / node expert so I may have messed up the precommit hook / hashed assets thing... LMK if it looks wrong and any tips on how to fix it.