"examples/trials/vscode:/vscode.git/clone" did not exist on "c7cc8db32da8d2ec77a382a55089f4e17247ce41"
material_custom.css 9.58 KB
Newer Older
Yuge Zhang's avatar
Yuge Zhang committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Global font */
body, input {
    font-family: "Roboto", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

code, kbd, pre {
    font-family: "Roboto Mono", "Consolas", "Courier New", Courier, monospace;
}

h1, h2, h3, h4, .md-header, .md-tabs, .md-hero {
    font-family: "Google Sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Title font */
@media only screen and (min-width: 45em) {
    .md-header-nav__title {
        font-weight: 500;
    }
}

.md-typeset h4, .md-typeset h5, .md-typeset h6 {
    font-weight: 600;
}

Yuge Zhang's avatar
Yuge Zhang committed
25
26
27
28
29
30
31
32
33
34
/* viewcode link should have left padding */
span.viewcode-link {
    padding-left: 0.6rem;
}

/* adding an eyebrow for API references */
dt.sig-object {
    position: relative;
    background: #f4f5f7;
    padding: 0.5rem;
35
    border-left: 0.2rem solid var(--custom-color-accent);
Yuge Zhang's avatar
Yuge Zhang committed
36
37
38
    word-wrap: break-word;
}

39
40
.class > dt.sig-object {
    border-left: none;                    /* remove left border */
41
    border-top: 0.18rem solid var(--custom-color-accent);
42
43
44
45
}

.function > dt.sig-object {
    border-left: none;                    /* remove left border */
46
    border-top: 0.18rem solid var(--custom-color-accent);
47
48
49
50
}

.exception > dt.sig-object {
    border-left: none;                    /* remove left border */
51
    border-top: 0.18rem solid var(--custom-color-accent);
52
53
54
55
56
57
58
59
60
61
62
63
}

/* Padding on parameter list is not needed */
dl.field-list > dt {
    padding-left: 0 !important;
}

dl.field-list > dd {
    margin-left: 1.5em;
}

/* show headerlink when hover/focus */
64
dt.sig-object:focus .headerlink, dt.sig-object:hover .headerlink {
65
66
67
68
69
    -webkit-transform: translate(0);
    transform: translate(0);
    opacity: 1;
}

Yuge Zhang's avatar
Yuge Zhang committed
70
71
72
73
74
/* logo is too large */
a.md-logo img {
    padding: 3px;
}

75
/* Split for navigation */
Yuge Zhang's avatar
Yuge Zhang committed
76
77
78
79
nav.md-tabs .md-tabs__item:not(:last-child) {
    padding-right: 0;
}

80
81
82
83
nav.md-tabs .md-tabs__arrow {
    padding-left: .3rem;
    font-size: inherit;
    vertical-align: -10%;
Yuge Zhang's avatar
Yuge Zhang committed
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
}

/* hide the floating button generated by readthedocs */
.rst-versions.rst-badge {
    display: none !important;
}

/* Add some margin between main content and footer */
.md-footer {
    margin-top: 1rem;
}

/* make footer appearing inline */
.md-footer-copyright__highlight {
    display: inline;
}
100
101

/* toc style */
Yuge Zhang's avatar
Yuge Zhang committed
102
li.md-nav__item:not(:first-child) span.caption {
103
104
    margin-top: 1.25em;
}
Yuge Zhang's avatar
Yuge Zhang committed
105

Yuge Zhang's avatar
Yuge Zhang committed
106
107
108
109
110
111
112
113
114
115
116
117
118
119
@media only screen and (min-width: 76.2em) {
    .md-nav--primary .md-nav__title--site {
        display: none;
    }
}

.md-nav__overview {
    font-weight: 500;
}

@media only screen and (max-width: 76.1875em) {
    .md-nav__overview {
        display: none;
    }
Yuge Zhang's avatar
Yuge Zhang committed
120
121
122
123
124
125
126
}

/* hide nav bar in some cases */
.md-tabs.hidden {
    display: none;
}

Yuge Zhang's avatar
Yuge Zhang committed
127
128
129
130
/* citation style */
.citation dt {
    padding-right: 1em;
}
Yuge Zhang's avatar
Yuge Zhang committed
131

Yuge Zhang's avatar
Yuge Zhang committed
132
133
134
135
136
137
/* inline code style */
.md-typeset code {
    padding-left: 0.07em;
    padding-right: 0.07em;
}

138
139
140
141
142
143
/* for release icon, on home page */
.release-icon {
    margin-left: 8px;
    width: 40px;
}

144
145
146
147
148
149
150
151
152
153
/* Similar to cardlink, but used in codesnippet in index page. see sphinx_gallery.css */
.codesnippet-card-container {
    display: flex;
    flex-flow: wrap row;
}

.codesnippet-card.admonition {
    border-left: 0;
    padding: 0;
    margin: .5rem 1rem 1rem 0rem;
154
155
156
157
158
    width: 100%;
}

/* Controlling the cards in containers only */
.codesnippet-card-container .codesnippet-card.admonition {
159
160
161
162
    width: 47%;
}

@media only screen and (max-width:59.9375em) {
163
    .codesnippet-card-container .codesnippet-card.admonition {
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
        width: 100%;
    }
}

.codesnippet-card .codesnippet-card-body {
    min-height: 4rem;
    position: relative;
    padding: 0.9rem 0.9rem 3rem 0.9rem;
}

.codesnippet-card .codesnippet-card-footer {
    padding: 0.8rem 0.9rem;
    border-top: 1px solid #ddd;
    margin: 0 !important;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.codesnippet-card a:not(:hover) {
    color: rgba(0, 0, 0, .68);
}

.codesnippet-card-title-container {
    margin-top: 0.3rem;
    position: relative;
}

192
193
194
195
.codesnippet-card-title-container h4 {
    padding-left: 2.3rem;
    line-height: 1.6rem;
    height: 1.6rem;
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
    margin-top: 0;
}

.codesnippet-card-icon {
    position: absolute;
    top: 0;
    left: 0;
}

.codesnippet-card-icon img {
    max-width: 100%;
    max-height: 100%;
    /* horizontal and vertical center */
    /* https://stackoverflow.com/questions/7273338/how-to-vertically-align-an-image-inside-a-div */
    text-align: center;
    vertical-align: middle;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.codesnippet-card-icon {
221
222
    width: 1.6rem;
    height: 1.6rem;
223
224
225
226
227
228
229
230
231
232
233
234
    padding: 0;
}

.codesnippet-card-link {
    position: relative;
}

.codesnippet-card-link .material-icons {
    position: absolute;
    right: 0;
}

Yuge Zhang's avatar
Yuge Zhang committed
235
236
237
238
239
240
/* fixes reference overlapping issue */
/* This is originally defined to be negative in application_fixes.css */
/* They did that to ensure the header doesn't disappear in jump links */
/* We did this by using scroll-margin-top instead */
dt:target {
    margin-top: 0.15rem !important;
241
    padding-top: 0.5rem !important;
Yuge Zhang's avatar
Yuge Zhang committed
242
243
244
245
}

:target {
    /* header height */
Yuge Zhang's avatar
Yuge Zhang committed
246
247
    scroll-margin-top: 3.5rem;
}
248

Yuge Zhang's avatar
Yuge Zhang committed
249
250
251
252
253
254
255
256
257
258
259
260
/* fix code block style on mobile */
@media only screen and (max-width: 44.9375em) {
    .md-typeset pre {
        margin: 1em -0.3em;
    }
}

/* Responsive nav bar */
.md-source__fact {
    padding: 0 !important;
}

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
/* collapsible toctree */
.md-nav--primary ul li {
    padding-left: .8rem;
}

.md-nav__item {
    position: relative;
}

.md-nav__expand > a > .md-nav__tocarrow {
    transform: rotate(-90deg);
    font-size: inherit;
    transition: all 0.1s ease;
    position: absolute;
    left: .1rem;
    top: .05rem;
}

.md-nav__expand .md-nav__list {
    display: none;
}

.md-nav__expand--active > .md-nav__list {
    display: block;
}

.md-nav__expand--active > a > .md-nav__tocarrow {
    transform: rotate(0);
Yuge Zhang's avatar
Yuge Zhang committed
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
@media only screen and (max-width:76.1875em) {
    .md-nav--primary .md-nav__link {
        padding: .15rem .2rem .15rem .6rem;
    }
    .md-nav__expand > a > .md-nav__tocarrow {
        left: 0;
        top: .25rem;
    }
    .md-nav--primary span.md-nav__link.caption {
        margin-top: 0.75em;
    }
    .md-nav--primary .md-nav__item .md-nav__list .md-nav__item {
        padding-left: .3rem;
    }
    html .md-nav--primary .md-nav__title--site .md-nav__button {
        height: auto;
        font-size: inherit;
        left: 0;
    }
    html .md-nav--primary .md-nav__title {
        padding-top: 2rem;
        padding-left: .6rem;
        height: 4.6rem;
    }
    .md-nav--primary .md-nav__item, .md-nav--primary .md-nav__title {
        font-size: .7rem;
        line-height: 1.3;
    }
}

Yuge Zhang's avatar
Yuge Zhang committed
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
/* Increase TOC padding */
.md-nav--primary ul li ul li {
    padding-left: 0.8rem;
}

/* Nav bar and heroes */
@media only screen and (min-width:60em) {
    .md-search__form, .md-search__input {
        border-radius: .3rem;   /* even rounder */
    }
}

.md-header-nav__source, .md-source {
    padding-right: 0 !important;
}

.md-hero {
    position: relative;
}

.md-hero__background {
    max-width: 73rem;
    position: absolute;
    bottom: -46px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    z-index: 0;
}

.md-hero__background img {
    width: 100%;
}

@media only screen and (max-width:59.9375em) {
    .md-hero__background {
        display: none;
    }
}

@media only screen and (max-width:76.1875em) {
    .md-hero__background {
        bottom: -5%;
        top: auto;
    }
}

.md-hero__inner {
    z-index: 1;
    position: relative;
    padding-right: 35%;
}

@media only screen and (min-width:76.2em) {
    .md-hero__inner {
        padding-top: 2.4rem;
        padding-bottom: 1.2rem;
    }
}

/* make title look larger */
.md-typeset h1 {
    margin: 0 0 1.5rem;
    color: rgba(0,0,0,.85);
    font-size: 1.5625rem;
    line-height: 1.3;
}

.md-typeset h1, .md-typeset h2, .md-typeset h3 {
    font-weight: 400;
    letter-spacing: 0;
}

/* Enlarge table */
.md-typeset table:not([class]) {
    font-size: 0.7rem;
    box-shadow: 0 2px 2px 0 rgb(0 0 0 / 8%), 0 1px 5px 0 rgb(0 0 0 / 7%), 0 3px 1px -2px rgb(0 0 0 / 14%);
}

.md-typeset table:not([class]) th {
    padding: .5rem .7rem;
    background-color: #e6e7e8;
    color: inherit;
    font-weight: 500;
}

.md-typeset table:not([class]) td {
    padding: .4rem .7rem;
}

/* On this page TOC */
.md-sidebar--secondary .md-nav--secondary {
    border-inline-start: 4px solid var(--custom-color-primary);
}

.md-nav__link {
    margin-top: 0.45em;
}

422
423
/* Override style for copy button */
button.copybtn {
Yuge Zhang's avatar
Yuge Zhang committed
424
    opacity: 1;
425
426
427
}

.o-tooltip--left:after {
Yuge Zhang's avatar
Yuge Zhang committed
428
    transform: translateX(-5%) translateY(-125%);
429
430
431
432
433
434
435
    padding: .4em;
    font-size: .5rem;
    font-weight: 600;
    background: #5f6368;
}

.o-tooltip--left:hover:after {
Yuge Zhang's avatar
Yuge Zhang committed
436
    transform: translateX(-5%) translateY(-120%);
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
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
}

/* Sphinx tabs */
/* Copied from https://github.com/executablebooks/sphinx-tabs/blob/master/sphinx_tabs/static/tabs.css with modifications */
.sphinx-tabs.container {
    margin-bottom: 1rem;
    border: 1px solid rgb(232, 234, 237);
    border-radius: 8px;
}

[role="tablist"] {
    padding: .3rem 0 0 0;
    border-bottom: 1px solid #a0b3bf;
}

.sphinx-tabs-tab {
    position: relative;
    line-height: 2rem;
    font-weight: 600;
    padding: 0 1rem;
    color: #80868b;
}

.sphinx-tabs-tab[aria-selected="true"] {
    color: #3f51b5;                     /* primary color */
    border-bottom: 2px solid #3f51b5;
}

.sphinx-tabs-tab:focus {
    z-index: 1;
    outline-offset: 1px;
}

.sphinx-tabs-panel {
    position: relative;
    padding: 1rem;
}

.sphinx-tabs-panel.code-tab {
    padding: 0;
}

.sphinx-tabs-panel.code-tab .highlight {
    margin: 0;
    padding: .5rem;
}

.sphinx-tab img {
    margin-bottom: 2rem;
}