-
Notifications
You must be signed in to change notification settings - Fork 321
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
optimize figure bottom margin #1749
Conversation
Avoid multiple margin-bottom by `p` and `figure`, that result in too wide a bottom margin.
Thanks for the contribution @berlin2123, since there is no associated issue with this PR could you please add a screenshot of the before and after this change so we understand the rationale behind it? |
seems like a reasonable change to make. Linter is failing; @berlin2123 can you try installing our pre-commit hook? It should auto-fix linter errors at commit time. |
@gabalafou This seems reasonable, but a last check would be helpful. If you are happy with this and so is the CI, you can go ahead and merge. |
I pushed a few tweaks:
|
@drammock could you give this another round of review? |
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.
kitchen sink docs pages should not be modified; they are vendored from an external source and periodically updated, so these changes will eventually get clobbered. See docs/community/topics/kitchen-sink.md
and docs/scripts/update-kitchen-sink.py
Please either remove the caption alignment example, or move it to a file outside of docs/examples/kitchen-sink/
@drammock, ah, good to know. I decided to remove the example because it's essentially already covered at the bottom of Kitchen Sink / Structural Elements. That said, I think the figure section should probably also have an example like the one on the structural elements page. Would it be possible to make this change upstream? |
you'd have to propose the change at https://github.com/sphinx-themes/sphinx-themes.org If you clearly explain the rationale for the change (as you typically do 👍🏻) I'm confident that @pradyunsg would merge it |
* figure bottom margin Avoid multiple margin-bottom by `p` and `figure`, that result in too wide a bottom margin. * Update _figures.scss * Only adjust margins at top and bottom of figcaption --------- Co-authored-by: gabalafou <[email protected]>
* figure bottom margin Avoid multiple margin-bottom by `p` and `figure`, that result in too wide a bottom margin. * Update _figures.scss * Only adjust margins at top and bottom of figcaption --------- Co-authored-by: gabalafou <[email protected]>
Avoid multiple
margin-bottom
byp
andfigure
, that result in too wide a bottom margin.