UNPKG

16 kBCSSView Raw
1@import url("https://fonts.googleapis.com/css?family=Roboto+Mono|Source+Sans+Pro:300,400,600");
2* {
3 -webkit-font-smoothing: antialiased;
4 -webkit-overflow-scrolling: touch;
5 -webkit-tap-highlight-color: rgba(0,0,0,0);
6 -webkit-text-size-adjust: none;
7 -webkit-touch-callout: none;
8 box-sizing: border-box;
9}
10body:not(.ready) {
11 overflow: hidden;
12}
13body:not(.ready) [data-cloak],
14body:not(.ready) .app-nav,
15body:not(.ready) > nav {
16 display: none;
17}
18div#app {
19 font-size: 30px;
20 font-weight: lighter;
21 margin: 40vh auto;
22 text-align: center;
23}
24div#app:empty::before {
25 content: 'Loading...';
26}
27img.emoji {
28 height: 1.2em;
29 vertical-align: middle;
30}
31span.emoji {
32 font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
33 font-size: 1.2em;
34 vertical-align: middle;
35}
36.progress {
37 background-color: #ea6f5a;
38 background-color: var(--theme-color, #ea6f5a);
39 height: 2px;
40 left: 0px;
41 position: fixed;
42 right: 0px;
43 top: 0px;
44 transition: width 0.2s, opacity 0.4s;
45 width: 0%;
46 z-index: 999999;
47}
48.search a:hover {
49 color: #ea6f5a;
50 color: var(--theme-color, #ea6f5a);
51}
52.search .search-keyword {
53 color: #ea6f5a;
54 color: var(--theme-color, #ea6f5a);
55 font-style: normal;
56 font-weight: bold;
57}
58html,
59body {
60 height: 100%;
61}
62body {
63 -moz-osx-font-smoothing: grayscale;
64 -webkit-font-smoothing: antialiased;
65 color: #c8c8c8;
66 font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
67 font-size: 15px;
68 letter-spacing: 0;
69 margin: 0;
70 overflow-x: hidden;
71}
72img {
73 max-width: 100%;
74}
75a[disabled] {
76 cursor: not-allowed;
77 opacity: 0.6;
78}
79kbd {
80 border: solid 1px #ccc;
81 border-radius: 3px;
82 display: inline-block;
83 font-size: 12px !important;
84 line-height: 12px;
85 margin-bottom: 3px;
86 padding: 3px 5px;
87 vertical-align: middle;
88}
89li input[type='checkbox'] {
90 margin: 0 0.2em 0.25em 0;
91 vertical-align: middle;
92}
93.app-nav {
94 margin: 25px 60px 0 0;
95 position: absolute;
96 right: 0;
97 text-align: right;
98 z-index: 10;
99/* navbar dropdown */
100}
101.app-nav.no-badge {
102 margin-right: 25px;
103}
104.app-nav p {
105 margin: 0;
106}
107.app-nav > a {
108 margin: 0 1rem;
109 padding: 5px 0;
110}
111.app-nav ul,
112.app-nav li {
113 display: inline-block;
114 list-style: none;
115 margin: 0;
116}
117.app-nav a {
118 color: inherit;
119 font-size: 16px;
120 text-decoration: none;
121 transition: color 0.3s;
122}
123.app-nav a:hover {
124 color: #ea6f5a;
125 color: var(--theme-color, #ea6f5a);
126}
127.app-nav a.active {
128 border-bottom: 2px solid #ea6f5a;
129 border-bottom: 2px solid var(--theme-color, #ea6f5a);
130 color: #ea6f5a;
131 color: var(--theme-color, #ea6f5a);
132}
133.app-nav li {
134 display: inline-block;
135 margin: 0 1rem;
136 padding: 5px 0;
137 position: relative;
138 cursor: pointer;
139}
140.app-nav li ul {
141 background-color: #fff;
142 border: 1px solid #ddd;
143 border-bottom-color: #ccc;
144 border-radius: 4px;
145 box-sizing: border-box;
146 display: none;
147 max-height: calc(100vh - 61px);
148 overflow-y: auto;
149 padding: 10px 0;
150 position: absolute;
151 right: -15px;
152 text-align: left;
153 top: 100%;
154 white-space: nowrap;
155}
156.app-nav li ul li {
157 display: block;
158 font-size: 14px;
159 line-height: 1rem;
160 margin: 0;
161 margin: 8px 14px;
162 white-space: nowrap;
163}
164.app-nav li ul a {
165 display: block;
166 font-size: inherit;
167 margin: 0;
168 padding: 0;
169}
170.app-nav li ul a.active {
171 border-bottom: 0;
172}
173.app-nav li:hover ul {
174 display: block;
175}
176.github-corner {
177 border-bottom: 0;
178 position: fixed;
179 right: 0;
180 text-decoration: none;
181 top: 0;
182 z-index: 1;
183}
184.github-corner:hover .octo-arm {
185 animation: octocat-wave 560ms ease-in-out;
186}
187.github-corner svg {
188 color: #3f3f3f;
189 fill: #ea6f5a;
190 fill: var(--theme-color, #ea6f5a);
191 height: 80px;
192 width: 80px;
193}
194main {
195 display: block;
196 position: relative;
197 width: 100vw;
198 height: 100%;
199 z-index: 0;
200}
201main.hidden {
202 display: none;
203}
204.anchor {
205 display: inline-block;
206 text-decoration: none;
207 transition: all 0.3s;
208}
209.anchor span {
210 color: #c8c8c8;
211}
212.anchor:hover {
213 text-decoration: underline;
214}
215.sidebar {
216 border-right: 1px solid rgba(0,0,0,0.07);
217 overflow-y: auto;
218 padding: 40px 0 0;
219 position: absolute;
220 top: 0;
221 bottom: 0;
222 left: 0;
223 transition: transform 250ms ease-out;
224 width: 300px;
225 z-index: 20;
226}
227.sidebar > h1 {
228 margin: 0 auto 1rem;
229 font-size: 1.5rem;
230 font-weight: 300;
231 text-align: center;
232}
233.sidebar > h1 a {
234 color: inherit;
235 text-decoration: none;
236}
237.sidebar > h1 .app-nav {
238 display: block;
239 position: static;
240}
241.sidebar .sidebar-nav {
242 line-height: 2em;
243 padding-bottom: 40px;
244}
245.sidebar li.collapse .app-sub-sidebar {
246 display: none;
247}
248.sidebar ul {
249 margin: 0 0 0 15px;
250 padding: 0;
251}
252.sidebar li > p {
253 font-weight: 700;
254 margin: 0;
255}
256.sidebar ul,
257.sidebar ul li {
258 list-style: none;
259}
260.sidebar ul li a {
261 border-bottom: none;
262 display: block;
263}
264.sidebar ul li ul {
265 padding-left: 20px;
266}
267.sidebar::-webkit-scrollbar {
268 width: 4px;
269}
270.sidebar::-webkit-scrollbar-thumb {
271 background: transparent;
272 border-radius: 4px;
273}
274.sidebar:hover::-webkit-scrollbar-thumb {
275 background: rgba(136,136,136,0.4);
276}
277.sidebar:hover::-webkit-scrollbar-track {
278 background: rgba(136,136,136,0.1);
279}
280.sidebar-toggle {
281 background-color: transparent;
282 background-color: rgba(63,63,63,0.8);
283 border: 0;
284 outline: none;
285 padding: 10px;
286 position: absolute;
287 bottom: 0;
288 left: 0;
289 text-align: center;
290 transition: opacity 0.3s;
291 width: 284px;
292 z-index: 30;
293 cursor: pointer;
294}
295.sidebar-toggle:hover .sidebar-toggle-button {
296 opacity: 0.4;
297}
298.sidebar-toggle span {
299 background-color: #ea6f5a;
300 background-color: var(--theme-color, #ea6f5a);
301 display: block;
302 margin-bottom: 4px;
303 width: 16px;
304 height: 2px;
305}
306body.sticky .sidebar,
307body.sticky .sidebar-toggle {
308 position: fixed;
309}
310.content {
311 padding-top: 60px;
312 position: absolute;
313 top: 0;
314 right: 0;
315 bottom: 0;
316 left: 300px;
317 transition: left 250ms ease;
318}
319.markdown-section {
320 margin: 0 auto;
321 max-width: 80%;
322 padding: 30px 15px 40px 15px;
323 position: relative;
324}
325.markdown-section > * {
326 box-sizing: border-box;
327 font-size: inherit;
328}
329.markdown-section > :first-child {
330 margin-top: 0 !important;
331}
332.markdown-section hr {
333 border: none;
334 border-bottom: 1px solid #eee;
335 margin: 2em 0;
336}
337.markdown-section iframe {
338 border: 1px solid #eee;
339/* fix horizontal overflow on iOS Safari */
340 width: 1px;
341 min-width: 100%;
342}
343.markdown-section table {
344 border-collapse: collapse;
345 border-spacing: 0;
346 display: block;
347 margin-bottom: 1rem;
348 overflow: auto;
349 width: 100%;
350}
351.markdown-section th {
352 border: 1px solid #ddd;
353 font-weight: bold;
354 padding: 6px 13px;
355}
356.markdown-section td {
357 border: 1px solid #ddd;
358 padding: 6px 13px;
359}
360.markdown-section tr {
361 border-top: 1px solid #ccc;
362}
363.markdown-section tr:nth-child(2n) {
364 background-color: #f8f8f8;
365}
366.markdown-section p.tip {
367 background-color: #f8f8f8;
368 border-bottom-right-radius: 2px;
369 border-left: 4px solid #f66;
370 border-top-right-radius: 2px;
371 margin: 2em 0;
372 padding: 12px 24px 12px 30px;
373 position: relative;
374}
375.markdown-section p.tip:before {
376 background-color: #f66;
377 border-radius: 100%;
378 color: #3f3f3f;
379 content: '!';
380 font-family: 'Dosis', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
381 font-size: 14px;
382 font-weight: bold;
383 left: -12px;
384 line-height: 20px;
385 position: absolute;
386 height: 20px;
387 width: 20px;
388 text-align: center;
389 top: 14px;
390}
391.markdown-section p.tip code {
392 background-color: #efefef;
393}
394.markdown-section p.tip em {
395 color: #c8c8c8;
396}
397.markdown-section p.warn {
398 background: rgba(234,111,90,0.1);
399 border-radius: 2px;
400 padding: 1rem;
401}
402.markdown-section ul.task-list > li {
403 list-style-type: none;
404}
405body.close .sidebar {
406 transform: translateX(-300px);
407}
408body.close .sidebar-toggle {
409 width: auto;
410}
411body.close .content {
412 left: 0;
413}
414@media print {
415 .github-corner,
416 .sidebar-toggle,
417 .sidebar,
418 .app-nav {
419 display: none;
420 }
421}
422@media screen and (max-width: 768px) {
423 .github-corner,
424 .sidebar-toggle,
425 .sidebar {
426 position: fixed;
427 }
428 .app-nav {
429 margin-top: 16px;
430 }
431 .app-nav li ul {
432 top: 30px;
433 }
434 main {
435 height: auto;
436 min-height: 100vh;
437 overflow-x: hidden;
438 }
439 .sidebar {
440 left: -300px;
441 transition: transform 250ms ease-out;
442 }
443 .content {
444 left: 0;
445 max-width: 100vw;
446 position: static;
447 padding-top: 20px;
448 transition: transform 250ms ease;
449 }
450 .app-nav,
451 .github-corner {
452 transition: transform 250ms ease-out;
453 }
454 .sidebar-toggle {
455 background-color: transparent;
456 width: auto;
457 padding: 30px 30px 10px 10px;
458 }
459 body.close .sidebar {
460 transform: translateX(300px);
461 }
462 body.close .sidebar-toggle {
463 background-color: rgba(63,63,63,0.8);
464 transition: 1s background-color;
465 width: 284px;
466 padding: 10px;
467 }
468 body.close .content {
469 transform: translateX(300px);
470 }
471 body.close .app-nav,
472 body.close .github-corner {
473 display: none;
474 }
475 .github-corner:hover .octo-arm {
476 animation: none;
477 }
478 .github-corner .octo-arm {
479 animation: octocat-wave 560ms ease-in-out;
480 }
481}
482@keyframes octocat-wave {
483 0%, 100% {
484 transform: rotate(0);
485 }
486 20%, 60% {
487 transform: rotate(-25deg);
488 }
489 40%, 80% {
490 transform: rotate(10deg);
491 }
492}
493section.cover {
494 position: relative;
495 align-items: center;
496 background-position: center center;
497 background-repeat: no-repeat;
498 background-size: cover;
499 min-height: 100vh;
500 width: 100%;
501 display: none;
502}
503section.cover.show {
504 display: flex;
505}
506section.cover.has-mask .mask {
507 background-color: #3f3f3f;
508 opacity: 0.8;
509 position: absolute;
510 top: 0;
511 bottom: 0;
512 width: 100%;
513}
514section.cover .cover-main {
515 flex: 1;
516 margin: 0 16px;
517 text-align: center;
518 position: relative;
519}
520section.cover a {
521 color: inherit;
522 text-decoration: none;
523}
524section.cover a:hover {
525 text-decoration: none;
526}
527section.cover p {
528 line-height: 1.5rem;
529 margin: 1em 0;
530}
531section.cover h1 {
532 color: inherit;
533 font-size: 2.5rem;
534 font-weight: 300;
535 margin: 0.625rem 0 2.5rem;
536 position: relative;
537 text-align: center;
538}
539section.cover h1 a {
540 display: block;
541}
542section.cover h1 small {
543 bottom: -0.4375rem;
544 font-size: 1rem;
545 position: absolute;
546}
547section.cover blockquote {
548 font-size: 1.5rem;
549 text-align: center;
550}
551section.cover ul {
552 line-height: 1.8;
553 list-style-type: none;
554 margin: 1em auto;
555 max-width: 500px;
556 padding: 0;
557}
558section.cover .cover-main > p:last-child a {
559 border-color: #ea6f5a;
560 border-color: var(--theme-color, #ea6f5a);
561 border-radius: 2rem;
562 border-style: solid;
563 border-width: 1px;
564 box-sizing: border-box;
565 color: #ea6f5a;
566 color: var(--theme-color, #ea6f5a);
567 display: inline-block;
568 font-size: 1.05rem;
569 letter-spacing: 0.1rem;
570 margin: 0.5rem 1rem;
571 padding: 0.75em 2rem;
572 text-decoration: none;
573 transition: all 0.15s ease;
574}
575section.cover .cover-main > p:last-child a:last-child {
576 background-color: #ea6f5a;
577 background-color: var(--theme-color, #ea6f5a);
578 color: #fff;
579}
580section.cover .cover-main > p:last-child a:last-child:hover {
581 color: inherit;
582 opacity: 0.8;
583}
584section.cover .cover-main > p:last-child a:hover {
585 color: inherit;
586}
587section.cover blockquote > p > a {
588 border-bottom: 2px solid #ea6f5a;
589 border-bottom: 2px solid var(--theme-color, #ea6f5a);
590 transition: color 0.3s;
591}
592section.cover blockquote > p > a:hover {
593 color: #ea6f5a;
594 color: var(--theme-color, #ea6f5a);
595}
596body {
597 background-color: #3f3f3f;
598}
599/* sidebar */
600.sidebar {
601 background-color: #3f3f3f;
602 color: #c8c8c8;
603}
604.sidebar li {
605 margin: 6px 15px 6px 0;
606}
607.sidebar ul li a {
608 color: #c8c8c8;
609 font-size: 14px;
610 overflow: hidden;
611 text-decoration: none;
612 text-overflow: ellipsis;
613 white-space: nowrap;
614}
615.sidebar ul li a:hover {
616 text-decoration: underline;
617}
618.sidebar ul li ul {
619 padding: 0;
620}
621.sidebar ul li.active > a {
622 color: #ea6f5a;
623 color: var(--theme-color, #ea6f5a);
624 font-weight: 600;
625}
626/* markdown content found on pages */
627.markdown-section h1,
628.markdown-section h2,
629.markdown-section h3,
630.markdown-section h4,
631.markdown-section strong {
632 color: #657b83;
633 font-weight: 600;
634}
635.markdown-section a {
636 color: #ea6f5a;
637 color: var(--theme-color, #ea6f5a);
638 font-weight: 600;
639}
640.markdown-section h1 {
641 font-size: 2rem;
642 margin: 0 0 1rem;
643}
644.markdown-section h2 {
645 font-size: 1.75rem;
646 margin: 45px 0 0.8rem;
647}
648.markdown-section h3 {
649 font-size: 1.5rem;
650 margin: 40px 0 0.6rem;
651}
652.markdown-section h4 {
653 font-size: 1.25rem;
654}
655.markdown-section h5 {
656 font-size: 1rem;
657}
658.markdown-section h6 {
659 color: #777;
660 font-size: 1rem;
661}
662.markdown-section figure,
663.markdown-section p,
664.markdown-section ul,
665.markdown-section ol {
666 margin: 1.2em 0;
667}
668.markdown-section p,
669.markdown-section ul,
670.markdown-section ol {
671 line-height: 1.6rem;
672 word-spacing: 0.05rem;
673}
674.markdown-section ul,
675.markdown-section ol {
676 padding-left: 1.5rem;
677}
678.markdown-section blockquote {
679 border-left: 4px solid #ea6f5a;
680 border-left: 4px solid var(--theme-color, #ea6f5a);
681 color: #858585;
682 margin: 2em 0;
683 padding-left: 20px;
684}
685.markdown-section blockquote p {
686 font-weight: 600;
687 margin-left: 0;
688}
689.markdown-section iframe {
690 margin: 1em 0;
691}
692.markdown-section em {
693 color: #7f8c8d;
694}
695.markdown-section code {
696 background-color: #282828;
697 border-radius: 2px;
698 color: #657b83;
699 font-family: 'Roboto Mono', Monaco, courier, monospace;
700 margin: 0 2px;
701 padding: 3px 5px;
702 white-space: pre-wrap;
703}
704.markdown-section > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) code {
705 font-size: 0.8rem;
706}
707.markdown-section pre {
708 -moz-osx-font-smoothing: initial;
709 -webkit-font-smoothing: initial;
710 background-color: #282828;
711 font-family: 'Roboto Mono', Monaco, courier, monospace;
712 line-height: 1.5rem;
713 margin: 1.2em 0;
714 overflow: auto;
715 padding: 0 1.4rem;
716 position: relative;
717 word-wrap: normal;
718}
719/* code highlight */
720.token.comment,
721.token.prolog,
722.token.doctype,
723.token.cdata {
724 color: #8e908c;
725}
726.token.namespace {
727 opacity: 0.7;
728}
729.token.boolean,
730.token.number {
731 color: #c76b29;
732}
733.token.punctuation {
734 color: #525252;
735}
736.token.property {
737 color: #c08b30;
738}
739.token.tag {
740 color: #2973b7;
741}
742.token.string {
743 color: #ea6f5a;
744 color: var(--theme-color, #ea6f5a);
745}
746.token.selector {
747 color: #6679cc;
748}
749.token.attr-name {
750 color: #2973b7;
751}
752.token.entity,
753.token.url,
754.language-css .token.string,
755.style .token.string {
756 color: #22a2c9;
757}
758.token.attr-value,
759.token.control,
760.token.directive,
761.token.unit {
762 color: #ea6f5a;
763 color: var(--theme-color, #ea6f5a);
764}
765.token.keyword {
766 color: #e96900;
767}
768.token.statement,
769.token.regex,
770.token.atrule {
771 color: #22a2c9;
772}
773.token.placeholder,
774.token.variable {
775 color: #3d8fd1;
776}
777.token.deleted {
778 text-decoration: line-through;
779}
780.token.inserted {
781 border-bottom: 1px dotted #202746;
782 text-decoration: none;
783}
784.token.italic {
785 font-style: italic;
786}
787.token.important,
788.token.bold {
789 font-weight: bold;
790}
791.token.important {
792 color: #c94922;
793}
794.token.entity {
795 cursor: help;
796}
797.markdown-section pre > code {
798 -moz-osx-font-smoothing: initial;
799 -webkit-font-smoothing: initial;
800 background-color: #282828;
801 border-radius: 2px;
802 color: #657b83;
803 display: block;
804 font-family: 'Roboto Mono', Monaco, courier, monospace;
805 font-size: 0.8rem;
806 line-height: inherit;
807 margin: 0 2px;
808 max-width: inherit;
809 overflow: inherit;
810 padding: 2.2em 5px;
811 white-space: inherit;
812}
813.markdown-section code::after,
814.markdown-section code::before {
815 letter-spacing: 0.05rem;
816}
817code .token {
818 -moz-osx-font-smoothing: initial;
819 -webkit-font-smoothing: initial;
820 min-height: 1.5rem;
821 position: relative;
822 left: auto;
823}
824pre::after {
825 color: #ccc;
826 content: attr(data-lang);
827 font-size: 0.6rem;
828 font-weight: 600;
829 height: 15px;
830 line-height: 15px;
831 padding: 5px 10px 0;
832 position: absolute;
833 right: 0;
834 text-align: right;
835 top: 0;
836}
837.markdown-section p.tip {
838 background-color: #282828;
839 color: #657b83;
840}
841input[type='search'] {
842 background: #4f4f4f;
843 border-color: #4f4f4f;
844 color: #c8c8c8;
845}