-
Notifications
You must be signed in to change notification settings - Fork 39
/
custom.css
50 lines (44 loc) · 1.52 KB
/
custom.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
Sphinx-Gallery has compatible CSS to fix default sphinx themes
Tested for Sphinx 1.3.1 for all themes: default, alabaster, sphinxdoc,
scrolls, agogo, traditional, nature, haiku, pyramid
Tested for Read the Docs theme 0.1.7 */
div.sphx-glr-download a {
background-color: rgb(255, 255, 255) !important;
background-image: linear-gradient(to bottom, rgb(255, 255, 255), #ffffff) !important;
border-radius: 4px;
border: 1px solid #ffffff !important;
color: #000;
display: inline-block;
font-weight: bold;
padding: 1ex;
text-align: center;
}
div.sphx-glr-download a:hover {
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
0 1px 5px rgba(0, 0, 0, 0.25);
text-decoration: none;
background-image: none;
background-color: #ffffff !important;
}
/* Workaround for https: //github.com/napari/docs/pull/423#issuecomment-2141165872 */
.bd-content .sd-tab-set>label {
background-color: var(--napari-gray);
color: #222832;
}
/* Version warning banner color */
#bd-header-version-warning {
background-color: color-mix(in srgb, var(--pst-color-secondary-bg), transparent 30%);
}
#bd-header-version-warning .pst-button-link-to-stable-version {
background-color: color-mix(in srgb, var(--pst-color-secondary-bg), transparent 0%);
border-color: var(--pst-color-secondary-bg);
color: #222832;
font-weight: 700;
}
#bd-header-version-warning .pst-button-link-to-stable-version:hover {
background-color: var(--pst-color-secondary-bg);
border-color: var(--pst-color-secondary-bg);
color: #222832;
font-weight: 700;
}