File tree 4 files changed +50
-7
lines changed
4 files changed +50
-7
lines changed Original file line number Diff line number Diff line change @@ -232,9 +232,6 @@ div.sphinxsidebar {
232
232
text-align : left;
233
233
/* margin-left: -100%; */
234
234
}
235
- div .sphinxsidebarwrapper {
236
- padding-top : 28px
237
- }
238
235
239
236
div .sphinxsidebar h4 , div .sphinxsidebar h3 {
240
237
margin : 1em 0 0.5em 0 ;
@@ -245,6 +242,11 @@ div.sphinxsidebar h4, div.sphinxsidebar h3 {
245
242
background-color : # AFC1C4 ;
246
243
}
247
244
245
+ div .sphinxsidebar h3 a {
246
+ /* workaround for table of contents heading, which is a link */
247
+ color : white !important ;
248
+ }
249
+
248
250
div .sphinxsidebar ul {
249
251
padding-left : 1.5em ;
250
252
margin-top : 7px ;
@@ -258,6 +260,36 @@ div.sphinxsidebar ul ul {
258
260
margin-left : 20px ;
259
261
}
260
262
263
+ div .sphinxsidebar # searchbox input {
264
+ border : 1px solid # aaa ;
265
+ padding : 0.25em ;
266
+ box-sizing : border-box;
267
+ }
268
+
269
+ div .sphinxsidebar # searchbox form {
270
+ display : inline-block;
271
+ width : 100%
272
+ }
273
+
274
+ div .sphinxsidebar # searchbox input [type = "text" ] {
275
+ float : left;
276
+ width : 80% ;
277
+ }
278
+
279
+ div .sphinxsidebar # searchbox input [type = "submit" ] {
280
+ float : left;
281
+ width : 20% ;
282
+ border-left : none;
283
+ }
284
+
285
+ div .sphinxsidebar # searchbox input [type = "submit" ]: hover {
286
+ background : # ddd ;
287
+ }
288
+
289
+ div .sphinxsidebar .searchformwrapper {
290
+ display : block;
291
+ }
292
+
261
293
p {
262
294
margin : 0.8em 0 0.8em 0 ;
263
295
}
@@ -813,6 +845,10 @@ figcaption {
813
845
}
814
846
}
815
847
848
+ # sidebar-donations {
849
+ margin-top : 28px ;
850
+ }
851
+
816
852
.donate_button {
817
853
background : # 11557C ;
818
854
font-weight : normal;
Original file line number Diff line number Diff line change 1
1
2
- < div >
2
+ < div id =" sidebar-donations " >
3
3
< a href ="https://www.flipcause.com/secure/cause_pdetails/MjI1OA== " target ="_blank "> < div class ="donate_button " > Support Matplotlib</ div > </ a >
4
4
< a href ="https://www.flipcause.com/secure/cause_pdetails/MTY3NTU= " target ="_blank "> < div class ="donate_button " > Support NumFOCUS</ div > </ a >
5
5
</ div >
Original file line number Diff line number Diff line change
1
+ {%- if show_source and has_source and sourcename %}
2
+ < div id ="sidebar-pagesource " role ="note " aria-label ="source link "
3
+ style ="margin-top: 1.5em; padding-top: 0.1em; border-top: 1px solid #86989b ">
4
+ < a href ="{{ pathto('_sources/' + sourcename, true)|e }} "
5
+ style ="color: #c0c0c0 " rel ="nofollow "> {{ _('Show Page Source') }}</ a >
6
+ </ div >
7
+ {%- endif %}
Original file line number Diff line number Diff line change @@ -240,9 +240,9 @@ def _check_deps():
240
240
241
241
# Custom sidebar templates, maps page names to templates.
242
242
html_sidebars = {
243
- 'index' : ['donate_sidebar .html' , 'searchbox .html' ],
244
- '**' : ['localtoc.html' , 'relations.html' ,
245
- 'sourcelink.html' , 'searchbox .html' ]
243
+ 'index' : ['searchbox .html' , 'donate_sidebar .html' ],
244
+ '**' : ['searchbox.html' , ' localtoc.html' , 'relations.html' ,
245
+ 'pagesource .html' ]
246
246
}
247
247
248
248
# If false, no module index is generated.
You can’t perform that action at this time.
0 commit comments