8000 Merge pull request #21455 from timhoffm/hide-download-link · matplotlib/matplotlib@88139a4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 88139a4

Browse files
authored
Merge pull request #21455 from timhoffm/hide-download-link
Hide note linking to the download section at the bottom of galleries
2 parents 7747ab9 + a2d2f0a commit 88139a4

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

doc/_static/mpl.css

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ does not float with it.
204204
*/
205205
.sphx-glr-thumbcontainer p.caption:hover > a.headerlink{
206206
visibility: hidden;
207-
208207
}
209208

210209
/* slightly reduce horizontal margin compared to gallery.css to
@@ -218,6 +217,26 @@ does not float with it.
218217
padding: 0;
219218
}
220219

220+
/* hide note linking to the download section at the bottom of galleries
221+
* as suggested in https://github.com/sphinx-gallery/sphinx-gallery/issues/760
222+
*/
223+
div.sphx-glr-download-link-note {
224+
height: 0px;
225+
visibility: hidden;
226+
}
227+
228+
/* re-style the download button */
229+
div.sphx-glr-download a {
230+
background-color: #E3F0F6;
231+
background-image: none;
232+
color: #11557c;
233+
border: 0;
234+
}
235+
236+
div.sphx-glr-download a:hover {
237+
background-color: #BCD4DF;
238+
}
239+
221240
table.property-table th,
222241
table.property-table td {
223242
padding: 4px 10px;

0 commit comments

Comments
 (0)
0