8000 Backport PR #29789: Improve layout of cheatsheets in sidebar · matplotlib/matplotlib@c4c74fd · GitHub
[go: up one dir, main page]

Skip to content
Sign in

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c4c74fd

Browse files
dstansbymeeseeksmachine
authored andcommitted
Backport PR #29789: Improve layout of cheatsheets in sidebar
1 parent 8da8655 commit c4c74fd

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

doc/_static/mpl.css

Lines changed: 12 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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)
0