-
-
Notifications
You must be signed in to change notification settings - Fork 26.5k
[MRG + 1] Sidebar hide in css #4663
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
Conversation
|
Could you please push the rendered version on a gh-pages / github.io repo of your own so that we can easily review the rendered HTML / CSS in a browser? |
|
This can be review at |
|
It does look right. This 3 bar icon, that has nowadays developed into a standard of the hidden menu is presented. |
|
The placement doesn't make it looks like a context menu button. I didn't recognize it as such, so I thought it was an error. |
I agree, it was placed where the hide sidebar block was before. But I'm not sure where to put it now, on top of the sidebar might give more the standard feeling?
Yes, it was easier for me. The old block was harder to control, certainly that specific way the div elements were handled contributed to the bug in the CSS+JS version.
Yes, but for that behavior you need to reduce the screen size. Then the default is hidden, and the context menu shows it. But on big screen, the default is to have the menu. |
|
Ok so if we want to keep that button, I feel it should be between the next and previous buttons, or maybe to the left / above the "previous" / "next" bar. |
|
maybe we can summon @glouppe to give some helpful input? |
|
This is a second review. This time the hide sidebar recovers as possible the old style. Review at |
|
lgtm |
|
Looks like the last letter in the sidebar content is hidden by the sidebar toggle button, e.g. the 's' in Dummy estimators or the 'e' in Kernel Ridge regression. I checked this happens for both Firefox and Chrome. Also is there an easy way to make the sidebar toggle button take the whole space vertically speaking? |
[] I didn't notice this, I'll shift the toggle button more to the left
The whole vertical space of whom?
|
This option sounds reasonable. |
|
Shift done and also larger toogle button. |
|
Would you mind using « and » rather than << and >> for the toggle content? At the moment it seems a bit big. |
|
Done! |
|
Looks fine, thanks! |
|
This is excellent work @Titan-C . Thanks heaps! Merging |
[MRG + 1] Sidebar hide in css
|
Indeed. I had not noticed this off centering in the homepage and the documentation page. I reopened the branch and an new PR #4859. The fix is simple one has to delete the css for the div.container-index that compensates the old javascript behavior. It is not needed anymore. I'm also wondering if one should deleted this from the only 2 files that implement it adhoc. the index.rst and documentation.rst.
that means revert this commit d29719f |


A not yet fix. But a proposal on removing the javascripts on this bug. This is not completely responsive, for all screen sizes. But does not mess up the layout.
This is to work the bugs for sphinxgallery adoption. #4658