|
1 |
| -a { |
2 |
| - color: #11557C; |
3 |
| - text-decoration: none; |
4 |
| -} |
5 |
| - |
6 |
| -a:hover { |
7 |
| - color: #CA7900; |
| 1 | +html[data-theme="light"], html[data-theme="dark"] { |
| 2 | + --pst-color-primary: rgb(19, 6, 84); |
| 3 | + --pst-color-link: rgb(17, 85, 124); |
| 4 | + --pst-color-link-hover: rgb(0, 60, 99); |
8 | 5 | }
|
9 | 6 |
|
10 | 7 | html[data-theme="light"] {
|
11 |
| - --pst-color-primary: rgb(19, 6, 84); |
12 | 8 | --pst-color-text-base: rgb(51, 51, 51);
|
13 | 9 | }
|
14 | 10 |
|
15 | 11 | html[data-theme="dark"] {
|
16 |
| - --pst-color-primary: rgb(19, 6, 84); |
17 | 12 | --pst-color-text-base: rgb(240, 240, 240);
|
18 | 13 | }
|
19 | 14 |
|
20 |
| -table.highlighttable { |
21 |
| - margin-left: 0.5em; |
22 |
| -} |
23 |
| - |
24 |
| -table.highlighttable td { |
25 |
| - padding: 0 0.5em 0 0.5em; |
26 |
| -} |
27 |
| - |
28 |
| -.simple li>p { |
29 |
| - margin: 0; |
30 |
| -} |
31 |
| - |
32 |
| -div.responsive_screenshots { |
33 |
| - /* Horizontally centered */ |
34 |
| - display: block; |
35 |
| - margin: auto; |
36 |
| - |
37 |
| - /* Do not go beyond 1:1 scale (and ensure a 1x4 tight layout) */ |
38 |
| - max-width: 640px; /* at most 4 x 1:1 subfig width */ |
39 |
| - max-height: 120px; /* at most 1 x 1:1 subfig height */ |
40 |
| -} |
41 |
| - |
42 |
| -/* To avoid subfigure parts outside of the responsive_screenshots */ |
43 |
| -/* element (see <https://stackoverflow.com/q/2062258/>) */ |
44 |
| -span.clear_screenshots { clear: left; display: block; } |
45 |
| - |
46 |
| -div.responsive_subfig{ |
47 |
| - float: left; |
48 |
| - width: 25%; /* we want 4 subfigs in a row */ |
49 |
| - |
50 |
| - /* Include content, padding and border in width. This should */ |
51 |
| - /* avoid having to use tricks like "width: 24.9999%" */ |
52 |
| - box-sizing: border-box; |
53 |
| -} |
54 |
| - |
55 |
| -div.responsive_subfig img { |
56 |
| - /* Horizontally centered */ |
57 |
| - display: block; |
58 |
| - margin: auto; |
59 |
| - |
60 |
| - /* Possible downscaling */ |
61 |
| - max-width: 162px; /* at most 1 x 1:1 subfig width */ |
62 |
| - max-height: 139px; /* at most 1 x 1:1 subfig height */ |
63 |
| - |
64 |
| - width: 100%; |
65 |
| -} |
66 |
| - |
67 |
| -@media only screen and (max-width: 930px){ |
68 |
| - /* The value of 1000px was handcrafted to provide a more or less */ |
69 |
| - /* smooth transition between the 1x4 and the 2x2 layouts. It is */ |
70 |
| - /* NB: it is slightly below 1024px: so one should still have a */ |
71 |
| - /* row in a 1024x768 window */ |
72 |
| - |
73 |
| - div.responsive_screenshots { |
74 |
| - /* Do not go beyond 1:1 scale (and ensure a 2x2 tight layout) */ |
75 |
| - max-width: 324px; /* at most 2 x 1:1 subfig width */ |
76 |
| - max-height: 278px; /* at most 2 x 1:1 subfig height */ |
77 |
| - } |
78 |
| - |
79 |
| - div.responsive_subfig { |
80 |
| - width: 50%; /* we want 2 subfigs in a row */ |
81 |
| - } |
82 |
| -} |
83 |
| - |
84 |
| -/* bullet boxes on main page */ |
85 |
| -div.bullet-box-container { |
86 |
| - display: flex; |
87 |
| - flex-wrap: wrap; |
88 |
| - margin: 1em 0; |
89 |
| -} |
90 |
| - |
91 |
| -div.bullet-box { |
92 |
| - flex-grow: 1; |
93 |
| - width: 28%; |
94 |
| - margin: 0.4em; |
95 |
| - padding: 0 1em; |
96 |
| - background: #eff9ff; |
97 |
| -} |
98 |
| - |
99 |
| -div.bullet-box p:first-of-type { |
100 |
| - font-size: 1.4em; |
101 |
| - text-align: center; |
102 |
| -} |
103 |
| - |
104 |
| -div.bullet-box ul { |
105 |
| - padding-left: 1.2em; |
106 |
| -} |
107 |
| - |
108 |
| -div.bullet-box li { |
109 |
| - padding-left: 0.3em; |
110 |
| - margin-bottom: 0.3em; |
111 |
| -} |
112 |
| - |
113 |
| -@media only screen and (max-width: 930px){ |
114 |
| - div.bullet-box { |
115 |
| - flex: 0 0 90%; |
116 |
| - } |
117 |
| -} |
118 |
| - |
119 |
| -/* community items on main page */ |
120 |
| -div.box { |
121 |
| - display: flex; |
122 |
| - flex-flow: row wrap; |
123 |
| -} |
124 |
| - |
125 |
| -div.box-item { |
126 |
| - flex: 0 0 45%; |
127 |
| - padding: 4px; |
128 |
| - margin: 8px 12px; |
129 |
| -} |
130 |
| - |
131 |
| -div.box-item img { |
132 |
| - float: left; |
133 |
| - width: 30px; |
134 |
| - height: 30px; |
135 |
| - fill: #888; |
136 |
| - |
137 |
| -} |
138 |
| -div.box-item p { |
139 |
| - margin: 0 0 0 50px; |
140 |
| -} |
141 |
| - |
142 |
| -div.box-item ul { |
143 |
| - margin: 0 0 0 50px; |
144 |
| - padding-left: 20px; |
145 |
| -} |
146 |
| - |
147 |
| -hr.box-sep { |
148 |
| - margin: 1em 2em; |
149 |
| -} |
150 |
| - |
151 |
| -@media only screen and (max-width: 930px){ |
152 |
| - div.box-item { |
153 |
| - flex: 0 0 90%; |
154 |
| - } |
155 |
| -} |
156 |
| - |
157 |
| - |
158 |
| -/* multi colunm TOC */ |
159 |
| -.contents ul { |
160 |
| - list-style-type: none; |
161 |
| - padding-left: 2em; |
162 |
| -} |
163 |
| - |
164 |
| -.contents > ul { |
165 |
| - padding-left: 0; |
166 |
| -} |
167 |
| - |
168 |
| -.multicol-toc > ul { |
169 |
| - column-width: 250px; |
170 |
| - column-gap: 60px; |
171 |
| - -webkit-column-width: 250px; |
172 |
| - -moz-column-width: 250px; |
173 |
| - column-rule: 1px solid #ccc; |
174 |
| -} |
175 |
| - |
176 |
| -.multicol-toc > li { |
177 |
| - /* break inside is not yet broadly supported, but we just try */ |
178 |
| - break-inside: avoid-column; |
179 |
| - -moz-break-inside: avoid-column; |
180 |
| - -webkit-break-inside: avoid-column; |
181 |
| -} |
182 |
| - |
183 |
| -.contents > ul > li > a { |
184 |
| - font-size: 1.0em; |
185 |
| -} |
186 |
| - |
187 |
| - |
188 |
| -.mpl-button { |
189 |
| - background: #11557C; |
190 |
| - font-weight: normal; |
191 |
| - display: inline-block; |
192 |
| - padding: 0 1em; |
193 |
| - line-height: 2.8; |
194 |
| - font-size: 16px; |
195 |
| - text-align: center; |
196 |
| - cursor: pointer; |
197 |
| - color: #fff; |
198 |
| - text-decoration: none; |
199 |
| - border-radius: 6px; |
200 |
| - z-index: 1; |
201 |
| - transition: background .25s ease; |
202 |
| -} |
203 |
| - |
204 |
| -.mpl-button:hover, .mpl-button:active, .mpl-button:focus { |
205 |
| - background: #003c63; |
206 |
| - outline-color: #003c63; |
207 |
| -} |
208 |
| - |
209 |
| - |
210 |
| -/* Hide red ¶ between the thumbnail and caption in gallery |
211 |
| -
|
212 |
| -Due the way that sphinx-gallery floats its captions the perma-link |
213 |
| -does not float with it. |
214 |
| -*/ |
215 |
| -.sphx-glr-thumbcontainer p.caption:hover > a.headerlink{ |
216 |
| - visibility: hidden; |
217 |
| - |
218 |
| -} |
219 |
| - |
220 |
| -/* slightly reduce horizontal margin compared to gallery.css to |
221 |
| -* get four columns of thumbnails in the pydata-sphinx-theme. */ |
222 |
| -.sphx-glr-thumbcontainer { |
223 |
| - margin: 5px 2px; |
224 |
| -} |
225 |
| - |
226 |
| -/* workaround: the default padding decenters the image inside the frame */ |
227 |
| -.sphx-glr-thumbcontainer .figure { |
228 |
| - padding: 0; |
229 |
| -} |
230 |
| - |
231 |
| -table.property-table th, |
232 |
| -table.property-table td { |
233 |
| - padding: 4px 10px; |
234 |
| -} |
235 |
| - |
236 | 15 | .sidebar-cheatsheets, .sidebar-donate {
|
237 | 16 | margin: 2.75rem 0;
|
238 | 17 | }
|
239 |
| - |
240 |
| -.sidebar-donate .mpl-button { |
241 |
| - /* fix width to width of cheatsheet */ |
242 |
| - width: 210px; |
243 |
| -} |
244 |
| - |
245 |
| -/* Two columns for install code blocks */ |
246 |
| -div.twocol { |
247 |
| - padding-left: 0; |
248 |
| - padding-right: 0; |
249 |
| - display: flex; |
250 |
| - gap: 20px; |
251 |
| -} |
252 |
| - |
253 |
| -div.twocol > div { |
254 |
| - flex-grow: 1; |
255 |
| - padding: 0; |
256 |
| - margin: 0; |
257 |
| -} |
0 commit comments