8000 Merge pull request #21082 from timhoffm/doc-sidebar-layout · matplotlib/matplotlib@f27eda4 · GitHub
[go: up one dir, main page]

Skip to content

Commit f27eda4

Browse files
authored
Merge pull request #21082 from timhoffm/doc-sidebar-layout
Fix layout of sidebar entries
2 parents a4fd538 + 21083f0 commit f27eda4

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)
0