UNPKG

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