Skip to content

Commit 7da7077

Browse files
committed
feat: improve css styling.
1 parent 281f61a commit 7da7077

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

docs/_static/custom.css

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/* Change colour of sphinx-gallery download buttons */
2+
div.sphx-glr-download a {
3+
background-color: #eef5fa !important;
4+
background-image: none !important;
5+
border: 1px solid #c9c9c9 !important;
6+
}
7+
8+
/* Change size of sphinx-gallery thumbnails */
9+
.sphx-glr-thumbcontainer {
10+
min-width: 250px !important;
11+
margin: 20px !important;
12+
padding-bottom: 50px !important;
13+
}
14+
.sphx-glr-thumbcontainer img {
15+
max-height: 250px !important;
16+
width: 250px !important;
17+
}
18+
.sphx-glr-thumbcontainer a.internal {
19+
padding: 180px 10px 0 !important;
20+
}
21+
22+
/* Hide sphinx-gallery signature */
23+
p.sphx-glr-signature a.reference.external {
24+
font-size: 0% !important;
25+
}

docs/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@
127127
# relative to this directory. They are copied after the builtin static files,
128128
# so a file named "default.css" will overwrite the builtin "default.css".
129129
html_static_path = ["_static"]
130+
131+
html_css_files = [
132+
"custom.css",
133+
]
134+
130135
html_theme_options = {
131136
"repository_url": GITHUB_REPO,
132137
"use_repository_button": True,

0 commit comments

Comments
 (0)