Skip to content

Commit 397a5f1

Browse files
committed
dl button css
1 parent 073944e commit 397a5f1

2 files changed

Lines changed: 29 additions & 1 deletion

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/* Custom style for download buttons according to color of breeze theme https://github.com/sphinx-gallery/sphinx-gallery/blob/master/sphinx_gallery/_static/sg_gallery.css*/
2+
3+
/* hide the top link note leading to footpage */
4+
div.sphx-glr-download-link-note {
5+
display: none;
6+
}
7+
8+
/* re-style the download button */
9+
div.sphx-glr-download a {
10+
background-color: #E3F0F6;
11+
background-image: none;
12+
color: var(--color-content-primary);
13+
border: 0;
14+
}
15+
16+
div.sphx-glr-download a:visited {
17+
color: var(--color-content-primary);
18+
}
19+
20+
/* ===== Dark mode (breeze) ===== */
21+
html[data-theme="dark"] div.sphx-glr-download a {
22+
background-color: #1f3a4a;
23+
color: #9fd3f0;
24+
}
25+
26+
html[data-theme="dark"] div.sphx-glr-download a:hover {
27+
background-color: #2a4f63;
28+
}

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
# so a file named "default.css" will overwrite the builtin "default.css".
109109
html_static_path = ["_static"]
110110

111-
html_css_files = ['sphxglr.css']
111+
html_css_files = ["sphxglr.css", "custom_download_button.css"]
112112

113113
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
114114
# using the given strftime format.

0 commit comments

Comments
 (0)