Skip to content

Commit be0d1aa

Browse files
authored
Merge pull request matplotlib#29990 from meeseeksmachine/auto-backport-of-pr-29789-on-v3.10.x
Backport PR matplotlib#29789 on branch v3.10.x (Improve layout of cheatsheets in sidebar)
2 parents 2322a8f + 2c0e150 commit be0d1aa

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

doc/_static/mpl.css

+12
Original file line numberDiff line numberDiff line change
@@ -207,3 +207,15 @@ div.wide-table table th.stub {
207207
.section-toc.toctree-wrapper li>ul{
208208
padding-inline-start:0;
209209
}
210+
211+
.sidebar-cheatsheets {
212+
margin-bottom: 3em;
213+
}
214+
215+
.sidebar-cheatsheets > h3 {
216+
margin-top: 0;
217+
}
218+
219+
.sidebar-cheatsheets > img {
220+
width: 100%;
221+
}

doc/_templates/cheatsheet_sidebar.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
<div class="sidebar-cheatsheets">
3-
<h3>Matplotlib cheatsheets</h3>
3+
<h3>Cheatsheets</h3>
44
<a href="https://matplotlib.org/cheatsheets/">
55
<img src="_static/mpl_cheatsheet1.png"
66
alt="Matplotlib cheatsheets"

0 commit comments

Comments
 (0)