Skip to content

Backport PR #29789 on branch v3.10.1-doc (Improve layout of cheatsheets in sidebar) #29991

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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions doc/_static/mpl.css
Original file line number Diff line number Diff line change
Expand Up @@ -207,3 +207,15 @@ div.wide-table table th.stub {
.section-toc.toctree-wrapper li>ul{
padding-inline-start:0;
}

.sidebar-cheatsheets {
margin-bottom: 3em;
}

.sidebar-cheatsheets > h3 {
margin-top: 0;
}

.sidebar-cheatsheets > img {
width: 100%;
}
2 changes: 1 addition & 1 deletion doc/_templates/cheatsheet_sidebar.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

<div class="sidebar-cheatsheets">
<h3>Matplotlib cheatsheets</h3>
<h3>Cheatsheets</h3>
<a href="https://matplotlib.org/cheatsheets/">
<img src="_static/mpl_cheatsheet1.png"
alt="Matplotlib cheatsheets"
Expand Down