9
9
10
10
body {
11
11
font-family : 'Open Sans' , sans-serif;
12
+ font-size : medium;
12
13
}
13
14
14
- pre , code {
15
- font-size : 100% ;
16
- line-height : 155% ;
17
- }
18
-
19
- h1 {
20
- font-family : "Lato" , sans-serif;
21
- color : # 013243 ; /* warm black */
22
- }
23
-
24
- h2 {
25
- color : # 4d77cf ; /* han blue */
26
- letter-spacing : -.03em ;
27
- }
28
-
29
- h3 {
30
- color : # 013243 ; /* warm black */
31
- letter-spacing : -.03em ;
32
- }
33
-
34
- /* Style the active version button.
35
-
36
- - dev: orange
37
- - stable: green
38
- - old, PR: red
39
-
40
- Colors from:
41
-
42
- Wong, B. Points of view: Color blindness.
43
- Nat Methods 8, 441 (2011). https://doi.org/10.1038/nmeth.1618
44
- */
15
+ /* Version switcher colors from PyData Sphinx Theme */
45
16
46
- /* If the active version has the name "dev", style it orange */
47
- # version_switcher_button [data-active-version-name *= "dev" ] {
48
- background-color : # E69F00 ;
49
- border-color : # E69F00 ;
50
- color : # 000000 ;
51
- }
52
-
53
- /* green for `stable` */
54
- # version_switcher_button [data-active-version-name *= "stable" ] {
55
- background-color : # 009E73 ;
56
- border-color : # 009E73 ;
57
- }
58
-
59
- /* red for `old` */
60
- # version_switcher_button : not ([data-active-version-name *= "stable" ], [data-active-version-name *= "dev" ], [data-active-version-name = "" ]) {
61
- background-color : # 980F0F ;
62
- border-color : # 980F0F ;
17
+ .version-switcher__button [data-active-version-name *= "dev" ] {
18
+ background-color : var (--pst-color-warning );
19
+ border-color : var (--pst-color-warning );
20
+ opacity : 0.9 ;
63
21
}
64
22
65
- /* Main page overview cards */
66
-
67
- .sd-card {
68
- background : # fff ;
69
- border-radius : 0 ;
70
- padding : 30px 10px 20px 10px ;
71
- margin : 10px 0px ;
23
+ .version-switcher__button : not ([data-active-version-name *= "stable" ]): not ([data-active-version-name *= "dev" ]): not ([data-active-version-name *= "pull" ]) {
24
+ background-color : var (--pst-color-danger );
25
+ border-color : var (--pst-color-danger );
26
+ opacity : 0.9 ;
72
27
}
73
28
74
- .sd-card .sd-card-header {
75
- text-align : center;
29
+ button .btn .version-switcher__button ,
30
+ button .btn .version-switcher__button : hover {
31
+ color : black;
76
32
}
77
33
78
- .sd-card .sd-card-header .sd-card-text {
79
- margin : 0px ;
80
- }
34
+ /* Main index page overview cards */
81
35
82
36
.sd-card .sd-card-img-top {
83
- height : 52 px ;
84
- width : 52 px ;
37
+ height : 60 px ;
38
+ width : 60 px ;
85
39
margin-left : auto;
86
40
margin-right : auto;
41
+ margin-top : 10px ;
87
42
}
88
43
89
- .sd-card .sd-card-header {
90
- border : none;
91
- background-color : white;
92
- color : # 150458 !important ;
93
- font-size : var (--pst-font-size-h5 );
94
- font-weight : bold;
95
- padding : 2.5rem 0rem 0.5rem 0rem ;
96
- }
97
-
98
- .sd-card .sd-card-footer {
99
- border : none;
100
- background-color : white;
101
- }
102
-
103
- .sd-card .sd-card-footer .sd-card-text {
104
- max-width : 220px ;
105
- margin-left : auto;
106
- margin-right : auto;
107
- }
44
+ /* Main index page overview images */
108
45
109
- /* Dark theme tweaking */
110
46
html [data-theme = dark ] .sd-card img [src *= '.svg' ] {
111
- filter : invert (0.82 ) brightness (0.8 ) contrast (1.2 );
112
- }
113
-
114
- /* Main index page overview cards */
115
- html [data-theme = dark ] .sd-card {
116
- background-color : var (--pst-color-background );
117
- }
118
-
119
- html [data-theme = dark ] .sd-shadow-sm {
120
- box-shadow : 0 .1rem 1rem rgba (250 , 250 , 250 , .6 ) !important
121
- }
122
-
123
- html [data-theme = dark ] .sd-card .sd-card-header {
124
- background-color : var (--pst-color-background );
125
- color : # 150458 !important ;
126
- }
127
-
128
- html [data-theme = dark ] .sd-card .sd-card-footer {
129
- background-color : var (--pst-color-background );
130
- }
131
-
132
- html [data-theme = dark ] h1 {
133
- color : var (--pst-color-primary );
134
- }
135
-
136
- html [data-theme = dark ] h3 {
137
- color : # 0a6774 ;
47
+ filter : invert (0.82 ) brightness (0.8 ) contrast (1.2 );
138
48
}
139
49
140
50
/* Legacy admonition */
@@ -143,13 +53,12 @@ div.admonition-legacy {
143
53
border-color : var (--pst-color-warning );
144
54
}
145
55
146
- .admonition-legacy .admonition > .admonition-title ::before {
56
+ .admonition > .admonition-title ::after ,
57
+ div .admonition > .admonition-title ::after {
147
58
color : var (--pst-color-warning );
148
- content : var (--pst-icon-admonition-attention );
149
- background-color : var (--pst-color-warning );
150
59
}
151
60
152
- .admonition-legacy . admonition > .admonition-title :: after {
153
- color : var ( --pst-color-warning );
154
- content : var (--pst-icon-admonition-default );
61
+ .admonition > .admonition-title ,
62
+ div . admonition > . admonition-title {
63
+ background-color : var (--pst-color-warning-bg );
155
64
}
0 commit comments