Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 69ddca2

Browse files
authored
Merge pull request #21085 from meeseeksmachine/auto-backport-of-pr-21082-on-v3.5.x
Backport PR #21082 on branch v3.5.x (Fix layout of sidebar entries)
2 parents 15067e6 + adee2af commit 69ddca2

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

doc/_static/mpl.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,11 @@ table.property-table td {
213213
padding: 4px 10px;
214214
}
215215

216-
.donate-button {
217-
margin: 1em 0;
216+
.sidebar-cheatsheets, .sidebar-donate {
217+
margin: 2.75rem 0;
218218
}
219219

220-
.sphinxsidebarwrapper {
221-
margin: 0 1em;
220+
.sidebar-donate .mpl-button {
221+
/* fix width to width of cheatsheet */
222+
width: 210px;
222223
}

doc/_templates/cheatsheet_sidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
<div class="sphinxsidebarwrapper">
2+
<div class="sidebar-cheatsheets">
33
<h3>Matplotlib cheatsheets</h3>
44
<a href="https://github.com/matplotlib/cheatsheets#cheatsheets">
55
<img src="_static/mpl_cheatsheet1.png"

doc/_templates/donate_sidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22

33

4-
<div id="sidebar-donations" class="donate-button">
4+
<div class="sidebar-donate">
55
<a href="https://numfocus.org/donate-to-matplotlib" target="_blank">
66
<span class="mpl-button" >Support Matplotlib</span>
77
</a>

0 commit comments

Comments
 (0)