10000 Improve layout of cheatsheets in sidebar · matplotlib/matplotlib@8cb05b8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8cb05b8

Browse files
committed
Improve layout of cheatsheets in sidebar
1 parent 192e935 commit 8cb05b8

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
@@ -208,3 +208,15 @@ div.wide-table table th.stub {
208208
.section-toc.toctree-wrapper .toctree-l1>ul{
209209
padding-left: 0;
210210
}
211+
212+
.sidebar-cheatsheets {
213+
margin-bottom: 3em;
214+
}
215+
216+
.sidebar-cheatsheets > h3 {
217+
margin-top: 0;
218+
}
219+
220+
.sidebar-cheatsheets > img {
221+
width: 100%;
222+
}

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