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

Skip to content

Commit 1886f7a

Browse files
dorafctacaswell
authored andcommitted
DOC: style donate button
Typed what @doraf said to
1 parent 56fa7b0 commit 1886f7a

2 files changed

Lines changed: 25 additions & 3 deletions

File tree

doc/_static/mpl.css

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,3 +650,26 @@ figcaption {
650650
}
651651

652652

653+
.donate_button {
654+
background:#11557C;
655+
font-weight:normal;
656+
border:solid 1px #fff;
657+
outline: solid 1px #11557C;
658+
clear: both;
659+
display: block;
660+
width:200px;
661+
line-height:2.8;
662+
font-size: 16px;
663+
text-align: center;
664+
cursor:pointer;
665+
color:#fff;
666+
text-decoration: none;
667+
margin: 30px auto 0;
668+
z-index:1;
669+
transition: background .25s ease;
670+
}
671+
672+
.donate_button:hover, .donate_button:active, .donate_button:focus {
673+
background: #003c63;
674+
outline-color: #003c63;
675+
}

doc/_templates/donate_sidebar.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

2-
<div style="background:#ccc; border-radius:0px 0px 0px 0px;font-weight:normal; font-family:Arial, Helvetica, sans-serif;border:none;box-shadow:none;left: 50%; margin-left:-72.5px;clear: both;display: block; width:145px;height:45px; line-height:2.8; position:relative; font-size:16px;text-align:center; cursor:pointer;color:#fff;text-decoration: none; z-index:1" onclick="open_window('MjI1OA==')">Support Matplotlib</div>
2+
<div onclick="open_window('MjI1OA==')" class="donate_button">Support matplotlib</div>
33

44

5-
6-
<div style="background:#ccc; border-radius:0px 0px 0px 0px;font-weight:normal; font-family:Arial, Helvetica, sans-serif;border:none;box-shadow:none;left: 50%; margin-left:-72.5px;clear: both;display: block; width:145px;height:45px; line-height:2.8; position:relative; font-size:16px;text-align:center; cursor:pointer;color:#fff;text-decoration: none; z-index:1" onclick="open_window('MjM2OA==')">Support NumFOCUS</div>
5+
<div onclick="open_window('MjM2OA==')" class="donate_button">Support NumFOCUS</div>

0 commit comments

Comments
 (0)