8000 Correctly hide download buttons using CSS by timhoffm · Pull Request #25693 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Correctly hide download buttons using CSS #25693

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

Merged
merged 1 commit into from
Apr 16, 2023
Merged

Conversation

timhoffm
Copy link
Member

visibility:hidden; height: 0px still keeps margins, creating a large amount of whitespace. display: none is the correct way to remove an HTML element completely.

before (with margins highlighted):
image

now:
image

Also reported upstream: sphinx-gallery/sphinx-gallery#1131

`visibility:hidden; height: 0px` still keeps margins, creating a large
amount of whitespace. `display: none` is the correct way to remove an
HTML element completely.
@timhoffm timhoffm added this to the v3.7-doc milestone Apr 15, 2023
@timhoffm
Copy link
Member Author

I'll merge since one review is envough for doc PRs.

@timhoffm timhoffm merged commit 8f16372 into matplotlib:main Apr 16, 2023
@timhoffm timhoffm deleted the css-fix branch April 16, 2023 21:14
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Apr 16, 2023
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Apr 16, 2023
ksunden added a commit that referenced this pull request Apr 17, 2023
…693-on-v3.7.x

Backport PR #25693 on branch v3.7.x (Correctly hide download buttons using CSS)
ksunden added a commit that referenced this pull request Apr 17, 2023
…693-on-v3.7.1-doc

Backport PR #25693 on branch v3.7.1-doc (Correctly hide download buttons using CSS)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0