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

Skip to content

Commit c30f762

Browse files
authored
Merge pull request #17825 from timhoffm/doc-contribute-buttons
DOC: Add quick-link buttons for contributing
2 parents 37424d4 + e697abd commit c30f762

File tree

3 files changed

+29
-22
lines changed

3 files changed

+29
-22
lines changed

doc/_static/mpl.css

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,26 +1001,36 @@ figcaption {
10011001
}
10021002
}
10031003

1004+
.mpl-button {
1005+
background: #11557C;
1006+
font-weight: normal;
1007+
display: inline-block;
1008+
padding: 0 1em;
1009+
line-height: 2.8;
1010+
font-size: 16px;
1011+
text-align: center;
1012+
cursor: pointer;
1013+
color: #fff;
1014+
text-decoration: none;
1015+
border-radius: 6px;
1016+
z-index: 1;
1017+
transition: background .25s ease;
1018+
}
1019+
1020+
.mpl-button:hover, .mpl-button:active, .mpl-button:focus {
1021+
background: #003c63;
1022+
outline-color: #003c63;
1023+
}
1024+
10041025
#sidebar-donations {
10051026
margin-top: 40px;
10061027
}
10071028

10081029
.donate_button {
1009-
background:#11557C;
1010-
font-weight:normal;
10111030
clear: both;
10121031
display: block;
1013-
width:200px;
1014-
line-height:2.8;
1015-
font-size: 16px;
1016-
text-align: center;
1017-
cursor:pointer;
1018-
color:#fff;
1019-
text-decoration: none;
1032+
width: 200px;
10201033
margin: 30px auto 0;
1021-
border-radius: 6px;
1022-
z-index:1;
1023-
transition: background .25s ease;
10241034
}
10251035

10261036
.donate_button:last-of-type {
@@ -1029,12 +1039,6 @@ figcaption {
10291039

10301040
}
10311041

1032-
.donate_button:hover, .donate_button:active, .donate_button:focus {
1033-
background: #003c63;
1034-
outline-color: #003c63;
1035-
}
1036-
1037-
10381042
div.responsive_screenshots {
10391043
/* Horizontally centered */
10401044
display: block;

doc/_templates/donate_sidebar.html

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

33

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

doc/devel/index.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
The Matplotlib Developers' Guide
55
################################
66

7-
.. only:: html
7+
.. raw:: html
88

9-
:Release: |version|
10-
:Date: |today|
9+
<div style="margin: 2em 0;">
10+
<a href="contributing.html#submitting-a-bug-report"><span class="mpl-button">Report a bug</span></a>
11+
<a href="contributing.html#contributing-code"><span class="mpl-button">Contribute code</span></a>
12+
<a href="contributing.html#contributing-documentation"><span class="mpl-button">Write documentation</span></a>
13+
</div>
1114

1215
.. toctree::
1316
:maxdepth: 2

0 commit comments

Comments
 (0)