-
Notifications
You must be signed in to change notification settings - Fork 2
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
Stop tocbot appearing over content on mobile #47
Comments
Thanks for the PR! I've tested the change and found out it works only for screens at least 769px wide. To make it work for 768px (e.g. for iPads in portrait mode), I'd suggest to set |
This works for me:
Notes re this approach:
|
Thanks @olafgrabienski - that makes sense. PR updated |
Fixes #47 removes position:fixed and top offset
Thanks a lot, @yorkshire-pudding – I've merged the PR after the last changes. |
On mobiles, Tocbots placed in sidebars appear on top of the content. Following discussion over #43 it was decided that to fix the immediate bug we should stop the tocbot block appearing over content.
#43 will remain open to try to implement a pattern that allows that ToC to be used wherever the user is in the content.
The text was updated successfully, but these errors were encountered: