-
-
Notifications
You must be signed in to change notification settings - Fork 281
Expand file tree
/
Copy pathcustom_styles.css
More file actions
363 lines (292 loc) · 7.38 KB
/
custom_styles.css
File metadata and controls
363 lines (292 loc) · 7.38 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
/* Fonts */
@font-face {
font-family: "Silka";
src: url("../fonts/silka-regular-webfont.woff2") format("woff2");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "Silka";
src: url("../fonts/silka-regularitalic-webfont.woff2") format("woff2");
font-weight: normal;
font-style: italic;
}
/* PyData Sphinx Theme variables */
@property --color-primary {
inherits: true;
initial-value: #0000c0;
syntax: "<color>";
}
:root {
/* stylelint-disable-next-line no-unknown-custom-properties -- PyData Sphinx Theme variable */
--color-primary: var(--pst-color-primary);
--pst-font-family-base: "Silka", Futura, Trebuchet MS, Arial, sans-serif;
--pst-font-family-heading: "Silka", Futura, Trebuchet MS, Arial, sans-serif;
}
/* Increase content width and decrease left sidebar width */
.bd-main .bd-content .bd-article-container {
/* Center the article container */
margin: 0 auto;
}
.bd-page-width {
max-width: 100%; /* default is 88rem */
}
.bd-sidebar-primary {
max-width: 18%; /* default is 25% */
}
/* Temporarily fix page source styling due to to pydata/pydata-sphinx-theme#2088 */
/* https://github.com/pydata/pydata-sphinx-theme/issues/2088 */
.sidebar-secondary-item ul {
list-style: none;
padding: 0;
}
.sidebar-secondary-item h3 {
display: none;
}
.sidebar-secondary-item:nth-child(2) ul li:nth-child(1) a::before {
content: "\f15c";
/* stylelint-disable-next-line font-family-no-missing-generic-family-keyword -- We want this exact font family */
font-family: "Font Awesome 6 Free";
font-size: 1.2em;
font-weight: bold;
padding-right: 0.5em;
vertical-align: sub;
}
/* Increase bottom margin for images */
section img {
margin-bottom: 1rem;
}
/* Style for Font Awesome that only styles the icons before elements */
.fasb::before,
.fabb::before {
color: var(--color-primary);
display: inline-block;
/* stylelint-disable-next-line font-family-no-missing-generic-family-keyword -- We want this exact font family */
font-family: "Font Awesome 6 Free";
font-size: 26px;
font-style: normal;
font-variant: normal;
font-weight: 900;
line-height: 1;
margin-right: 5px;
vertical-align: middle;
}
/* Style for Font Awesome brands */
.fabb::before {
/* stylelint-disable-next-line font-family-no-missing-generic-family-keyword -- We want this exact font family */
font-family: "Font Awesome 6 Brands";
}
/* Ensure FA icons applied to section divs display inline */
section.fasb h3,
section.fabb h3 {
display: inline-block;
}
/* Custom color and size for FA icons */
.blue-32px .fasb::before {
color: var(--color-primary);
width: 32px;
}
/* Adjust vertical positioning of FA icons to be centered */
.fa-offset-h3 .fasb::before,
.fa-offset-h3 .fabb::before {
padding-bottom: 0.3em;
}
/* Center iframes and adjust their bottom margins */
iframe {
display: block;
height: 100%;
left: 0;
margin-bottom: 0;
margin-left: auto;
margin-right: auto;
padding-top: 0;
position: absolute;
top: 0;
width: 100%;
}
/*** Custom colors for specific FA icons in the index page ***/
section.fa-laptop-code::before {
color: #4e4e4e;
}
section.fa-book::before {
color: #6a3514;
}
section.fa-globe-americas::before {
color: #1c4489;
}
section.fa-user-friends::before {
color: #f6951f;
}
/*** Styling for quickstart interactive tour ***/
.interactive-tour-container {
display: inline-block;
margin-top: 0.7rem;
position: relative;
transition: transform 500ms ease-in-out;
}
.interactive-tour-container .tour-screenshot {
display: none;
height: auto;
margin-bottom: 0.4rem;
max-width: 100%;
}
.interactive-tour-container img.tour-screenshot-active {
display: block !important;
}
.interactive-tour-container .tour-overlay {
left: 0;
position: absolute;
top: 0;
}
.tour-overlay .highlight-rect {
fill: none;
opacity: 0;
stroke: var(--color-primary);
stroke-linejoin: round;
stroke-width: 5;
}
@media (max-width: 767px) {
.tour-overlay .highlight-rect {
stroke-width: 10;
}
}
div#driver-highlighted-element-stage {
opacity: 0;
}
rect.driver-highlighted-element {
opacity: 1 !important;
}
/*** Fix tour navigation buttons' margins, arrows and alignment ***/
div#driver-popover-item .driver-popover-footer {
margin-top: 1em;
}
div#driver-popover-item .driver-popover-footer button {
min-width: 4.3rem;
}
div#driver-popover-item .driver-navigation-btns {
line-height: 1rem;
}
/* Style tour progress indicator */
div#driver-popover-item .tour-progress-indicator {
float: right;
font-size: 0.7em;
font-weight: bold;
}
/* Version and language selectors */
/* stylelint-disable-next-line selector-class-pattern -- Third party class using BEM */
.version-switcher__button,
/* stylelint-disable-next-line selector-class-pattern -- Third party class using BEM */
.language-switcher__button {
margin-bottom: 0 !important;
}
/*** Styles for video transcript dropdown elements ***/
.dropdown-videos {
border: 0;
border-radius: unset;
margin-left: auto;
margin-right: auto;
margin-top: -1px;
max-width: 640px;
width: 100%;
}
.dropdown-videos .sd-card-header {
border-radius: unset;
padding-bottom: 0.1em !important;
padding-top: 0.1em !important;
}
.dropdown-videos div.scroll {
font-size: 0.8em;
height: 250px;
margin: 1px;
overflow: hidden auto;
padding-left: 1.2rem;
padding-right: 1.2rem;
}
div.video-container-container {
margin-left: auto;
margin-right: auto;
max-width: 640px;
}
div.video-container {
background-color: #000;
height: 0;
margin-left: auto;
margin-right: auto;
overflow: hidden;
padding-bottom: 56.25%;
position: relative;
width: 100%;
}
/* Add vertical whitespace after videos when followed by text */
div.video-container-container + p {
margin-top: 1em;
}
/* Style for video tags */
video {
display: block;
height: auto;
margin-left: auto;
margin-right: auto;
max-width: 100%;
object-fit: contain;
object-position: center;
width: 100%;
}
/* Style for adding icons to the installers table */
table.installer-table td {
border-top: 0;
font-size: 1.4em;
}
table.installer-table tbody td p::before {
/* stylelint-disable-next-line font-family-no-missing-generic-family-keyword -- We want this exact font family */
font-family: "Font Awesome 6 Brands";
}
table.installer-table tbody td:nth-child(1) p,
table.installer-table tbody td:nth-child(4) p {
padding-top: 0.62em;
}
table.installer-table tbody td:nth-child(1) p::before {
content: "\f17a";
font-size: 1.6em;
padding-right: 0.7em;
vertical-align: middle;
}
table.installer-table tbody td:nth-child(2) p::before,
table.installer-table tbody td:nth-child(3) p::before {
content: "\f179";
font-size: 2em;
padding-right: 0.5em;
vertical-align: sub;
}
table.installer-table tbody td:nth-child(4) p::before {
content: "\f17c";
font-size: 1.6em;
padding-right: 0.5em;
vertical-align: middle;
}
@media screen and (max-width: 991px) {
table.installer-table td {
display: block;
}
}
/* Style for links added to dropdowns */
a.dropdown-link {
color: var(--color-primary);
margin-left: 0.5em;
padding: 0.25em;
visibility: hidden;
}
details.sd-dropdown:hover a.dropdown-link,
details.sd-dropdown:focus a.dropdown-link {
visibility: visible;
}
a.dropdown-link:hover,
a.dropdown-link:focus {
background-color: var(--color-primary);
color: #fff;
text-decoration: none;
}
/* Override image filters */
html[data-theme="dark"] img {
filter: none !important;
}