-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
basic theme: Avoid clashes between sidebar and other blocks #7484
Conversation
I think it might be better to clear only |
Could you paste screenshots for before and after this change? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with nits.
Thank you for explanation. I've forgotten how sidebars are rendered. +1 for bugfix. |
Thanks! |
depends on the use case .. TLDR; its just another broken solution. Since you will normally not really often have one after the other sidebar I prefer as it was .. Did you ever seen a contents and a sidebar directive on the top of a document .. example .. "second" looks horrible while first is overlapping, which looks much nicer to me. before #7484after #7484 |
FWIW: here is my hot-fix (not widely tested): div.sidebar {
clear: none;
}
div.admonition, div.topic, pre {
clear: none;
} |
I'm quite sure that the changes for I admit that I might have been over-eager in adding @return42 Would you like to make a PR for this (I think it would be good to use the |
I'm suggesting to partially revert this PR in #7878. |
This reverts commit 0616684. Since PR sphinx-doc/sphinx#7878 has been merged into Spinx-doc (v3.1.2), this patch is no longer needed: See sphinx-doc project, PR 7838 & 7484 with elementary patch to the basic CSS: - sphinx-doc/sphinx#7838 (comment) - sphinx-doc/sphinx#7484 (comment) Signed-off-by: Markus Heiser <[email protected]>
When following a
sidebar
, these blocks should not be squished next to the sidebar, but they should start after the end of the sidebar in their full width: