-
Notifications
You must be signed in to change notification settings - Fork 25.6k
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
Is there a way to make sticky table of contents scrollable? #1840
Comments
Not without some custom CSS. |
@mmistakes Thanks for the quick reply. I found out that you added scrolling feature for left sidebar so I solve this by doing similar things. |
@mmistakes I think this should be a feature to the main theme, because having lengthy table of contents overflowed from the page and not reachable. |
I just ran into this issue last week too, wish I'd swung by issue tracker at that time when this ticket was open. At the time I was thinking the solution was bringing in a tool like scrollmagic.io to allow a long right sidebar TOC to be scrollable and sticky. Sounds like there might be some other approach than a javascript widget. @Wei2624 did you solve the issue using custom CSS for your right sidebar or did you just fall back to using the left sidebar? |
This is a really critical feature for those building documentations with this theme. Also easy to implement in the meantime (~10 lines of CSS). |
@iBug : do you by chance have it implemented and could share the lines of css? It seems to be a reoccurring problem and would thereby getting a step nearer to being solved for good :-) |
Since I have a long table of contents and I also plan to make it sticky as well, I am wondering if it is possible that I can make right sidebar scrollable? @mmistakes
Thanks
The text was updated successfully, but these errors were encountered: