-
Notifications
You must be signed in to change notification settings - Fork 371
Expand file tree
/
Copy pathcustom.css
More file actions
463 lines (416 loc) · 10.2 KB
/
Copy pathcustom.css
File metadata and controls
463 lines (416 loc) · 10.2 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
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
body {
counter-reset: listing;
}
/* TOC - Main landing page */
/* Show two columns if screen is wide enough */
@media screen and (min-width: 700px) {
/* For regular items */
.toctree-wrapper > ul {
columns: 2;
}
/* For Social and Learning Resources sections */
.toc-outside-links {
columns: 2;
}
}
/* Wrap individual main page items for easier group manipulation
of contents and images. See PR #2027 for main page css changes */
.main-page-item-wrapper {
align-items: flex-start;
display: flex;
margin: 10px;
}
.main-page-item-wrapper > .toctree-wrapper {
width: 100%;
}
/* single-col-box for items on main page with 2 bullet points, use if
wanting to avoid having 2 columns with 1 item each inside */
.main-page-item-wrapper > .single-col-box {
width: 100%;
}
.main-page-item-wrapper > .single-col-box ul {
columns: 1;
}
/* For Social and Learning Resources to make
title + list appear like other categories */
.main-page-item-wrapper > .main-page-item-sub-wrapper {
display: flex;
flex-direction: column;
margin: 0px;
width: 100%;
}
.main-page-item-wrapper > .main-page-item-title {
width: 100%;
}
.main-page-item-title > p {
font-size: var(--font-size--small);
margin-bottom: 0;
text-align: initial;
text-transform: uppercase;
}
.main-page-item-sub-wrapper > .toc-outside-links {
margin-left: 0px;
width: 100%;
}
/* Align the GitHub stars button since Sphinx doesn't offer us great control over headings */
.main-page-item-wrapper-header {
align-items: center;
float: right;
display: relative;
}
/* IMPORTANT: unlike flex, you have to clear float! */
.main-page-item-wrapper-header::after {
float: clear;
}
.main-page-box {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
}
.main-page-box > .main-page-link {
display: flex;
width: 100%;
}
.main-page-box > .main-page-link a {
display: flex;
}
.sprinter-box {
margin-left: 10px;
height: 55px;
display: flex;
}
.start-here-box {
align-items: center;
display: flex;
margin-left: -10px;
}
/* #the-python-arcade-library h2 {
font-size: var(--font-size--small);
font-weight: 400;
margin-bottom: 0;
margin-top: .5rem;
text-align: initial;
text-transform: uppercase;
width: 100%;
display: flex;
} */
.main-page-box-gh {
display: flex;
align-items: center;
margin-right: 0px;
}
#github-stars {
width: 141px;
height: 30px;
margin-bottom: -9px;
}
/* Formatting for list items */
.toctree-l1 {
margin-left: 5px;
}
.toctree-wrapper a {
text-decoration: none;
}
.toctree-wrapper a:hover {
text-decoration: underline;
}
#the-python-arcade-library ul {
margin-top: 0;
margin-bottom: 0;
}
.heading-icon {
columns: 2;
position: relative;
left: -20px;
top: -4px;
float: left;
width: 55px;
}
/* Put logo next to text */
.sidebar-brand {
flex-direction: row;
}
.sidebar-logo-container {
flex: 1;
}
.sidebar-brand-text {
flex: 3;
}
/* Example code section */
#how-to-example-code section {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
#how-to-example-code section h2 {
width: 100%;
}
#how-to-example-code section h3 {
width: 100%;
}
/* Right side image, for longer text */
img.right-image {
float: right;
margin-left: 8px;
margin-bottom: 4px;
margin-top: 10px;
}
.vimeo-video {
border: 0;
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
}
/* Make signatures look nice */
.sig:not(.sig-inline) {
/* Highlight even when not hovering */
background: var(--color-api-background-hover);
}
/* Make Function API look nice */
.sig-param .n:first-of-type {
margin-left: 10px;
}
.sig-param::before {
content: '\A ';
white-space: pre;
margin-left: 10px;
}
/* Make code look nice */
.code-block-caption::before {
counter-increment: listing;
content: "Listing " counter(listing) ":\00a0 ";
}
.code-block-caption {
font-family: 'Consolas', 'courier new', 'courier', monospace;
font-size: 15px;
}
/* Datatable - mostly for quick api index */
table.dataTable.display tbody tr.odd {
background-color: var(--color-background-primary);
}
table.dataTable.display tbody tr.even {
background-color: var(--color-background-secondary);
}
table.dataTable.display tbody tr.odd > .sorting_1 {
background-color: var(--color-background-primary);
}
table.dataTable.display tbody tr.even > .sorting_1 {
background-color: var(--color-background-secondary);
}
.dataTables_wrapper .dataTables_filter {
color: var(--color-foreground-primary);
}
/* Color tables and resource pages */
.checkered-bg, .color-swatch{
background: url(../checkered.png);
background-repeat: repeat;
}
/*Test*/
table.resource-table {
empty-cells: hide;
white-space: normal; /* table behavior for CSS styling? maybe dupe of below. */
}
/* Make the resource page's table cell contents look neat */
/* copy button doesn't need so much margin in here */
.resource-table div.highlight-python {
margin-bottom: 0;
}
/* Only center the contents of tiles which have images in them
* NOTE: The * instead of table alloes for non-table resource tiles
*/
*.resource-table td:has(.resource-thumb) {
text-align: center;
}
.resource-table,
.resource-table table
{
width: 100%;
max-width: 100%;
}
.wy-table-responsive table :is(th, td) { white-space: normal; }
/* Prevent huge copyable areas for .. code:: boxes using sphinx-copybutton */
.resource-table div.highlight > pre {
padding: 8px;
}
table.resource-table td > .resource-thumb {
display: inline-block;
}
table.resource-table td > img.resource-thumb {
/* Maximum 20% of the smallest display dimension */
max-width: min(20vw, 20vh);
}
table.resource-table td > .resource-thumb.file-icon {
width: 128px;
height: 128px;
max-width: 128px;
max-height: 128px;
}
.resource-handle {
/* Flex props keep this all on one line when the viewport with's small */
display: inline-flex;
flex-direction: row;
flex-shrink: 0;
/* Make the button round so it's nice-looking */
border-radius: 0.4em;
border: 1px solid rgb(0, 0, 0, 0);
width: fit-content !important;
}
.resource-handle:has(button.arcade-ezcopy:hover) {
border-color: #54c079;
color: #54c079;
}
.resource-table .caption-text > .literal,
.resource-handle > .literal {
font-style: normal;
height: 1.5em;
min-height: 1.5em;
border-radius: 0.4em;
border: 1px solid #1b1f2426;
vertical-align: middle;
/* Not clear why this doesn't work for the .caption-text */
font-size: 1em !important;
}
.resource-handle > .literal {
/* Removes the verticle scroll when you zoom out more than 100% */
overflow-y: hidden;
}
/* Imitate sphinx-copybutton style */
.arcade-ezcopy {
width: 1.5em;
height: 1.5em;
min-width: 1.5em;
min-height: 1.5em;
padding: 0;
/* Imitate sphinx-copybutton minus styling spacing issues */
border-radius: 0.4em 0.4em 0.4em 0.4em;
border: 1px solid #1b1f2426;
border-left: 0;
color: #57606a;
background-color: #f6f8fa;
}
/* Hide left border on items which haven adjacent copy button
CAVEAT: This won't currently work with right-to-left layout modes!
This is because of the following assume left-to-right:
1. The + here assumes the button element's next in the DOM order
2. The right border of the box gets switched off
*/
.resource-table * > .literal:has(+ button.arcade-ezcopy) {
border-radius: 0.4em 0 0 0.4em !important;
}
.resource-table * > .literal + button.arcade-ezcopy {
border-radius: 0 0.4em 0.4em 0 !important;
}
.arcade-ezcopy > *:is(img, svg) {
margin: 0;
width: 100%;
max-width: 100%;
height: 100%;
max-height: 100%;
}
.arcade-ezcopy:hover {
background-color: #54c079;
}
/* Give it some breathing room inside the inline HTML we're using for the moment
# pending: post-3.0 clean-up
*/
li .arcade-ezcopy.doc-ui-example-dummy {
margin-left: 0.2em;
margin-right: 0.2em;
/* Override 12 px bottom margin */
margin-top: inherit !important;
margin-bottom: inherit !important;
}
table.colorTable {
border-width: 1px;
}
/* Named color tables for larger screens */
table.colorTable td, table.colorTable th {
padding: 2px;
}
table.colorTable tr:not(:last-child) {
border-bottom-width: 1px;
}
.colorTable .color-swatch {
display: block;
border: 1px solid black;
padding: 0px;
box-sizing: border-box;
width: 80px;
min-width: 80px;
}
/* Use compact mode for color tables on smaller screens*/
@media screen and (width <= 700px) {
table.colorTable {
border-spacing: collapse;
}
table.colorTable td, table.colorTable th {
padding: 0px;
}
.colorTable .color-swatch {
width: 40px;
min-width: 40px;
}
}
/* Custom code syntax highlighting */
body:not([data-theme="light"]) .highlight .c1 {
color: #48A148;
}
.highlight .c1 {
color: #007507;
}
/* Change font for headers and title*/
@font-face {
font-family: 'Josefin Sans';
font-style: normal;
font-weight: 100 700;
font-display: swap;
src: url(https://fonts.gstatic.com/s/josefinsans/v32/Qw3aZQNVED7rKGKxtqIqX5EUDXx4.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.rst-content .toctree-wrapper>p.caption,
h1,
h2,
h3,
h4,
h5,
h6,
legend {
font-family:"Josefin Sans", Arial, Helvetica, sans-serif;
letter-spacing: -0.5px;
}
.rst-content h1 {
font-weight: 600;
}
.rst-content h2,
h3,
h4,
h5,
h6 {
font-weight: 500;
}
.icon-home, .wy-nav-top a {
font-weight: 500;
font-family:"Josefin Sans", Arial, Helvetica, sans-serif;
font-size: larger;
letter-spacing: -0.5px;
}
/*
* Override grid for field list. We want things stacked vertically.
*/
html.writer-html5 .rst-content dl.field-list {
display: block;
}
/*
* Make all tip/hint/warning boxes rounder
*/
.rst-content .admonition {
border-radius: 4px;
}
.rst-content .admonition-title {
border-top-left-radius: 4px;
border-top-right-radius: 4px;
padding-top: 8px;
}