UNPKG

15.8 kBCSSView Raw
1@import url("https://fonts.googleapis.com/css?family=Thasadith:400,400i,700");
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: #0ff;
38 background-color: var(--theme-color, #0ff);
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: #0ff;
50 color: var(--theme-color, #0ff);
51}
52.search .search-keyword {
53 color: #0ff;
54 color: var(--theme-color, #0ff);
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: #34495e;
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: #0ff;
125 color: var(--theme-color, #0ff);
126}
127.app-nav a.active {
128 border-bottom: 2px solid #0ff;
129 border-bottom: 2px solid var(--theme-color, #0ff);
130 color: #0ff;
131 color: var(--theme-color, #0ff);
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: #f0ffff;
189 fill: #0ff;
190 fill: var(--theme-color, #0ff);
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: #34495e;
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(240,255,255,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: #0ff;
300 background-color: var(--theme-color, #0ff);
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: #f0ffff;
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: #34495e;
396}
397.markdown-section p.warn {
398 background: rgba(0,255,255,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(240,255,255,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: #f0ffff;
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: #0ff;
560 border-color: var(--theme-color, #0ff);
561 border-radius: 2rem;
562 border-style: solid;
563 border-width: 1px;
564 box-sizing: border-box;
565 color: #0ff;
566 color: var(--theme-color, #0ff);
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: #0ff;
577 background-color: var(--theme-color, #0ff);
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 #0ff;
589 border-bottom: 2px solid var(--theme-color, #0ff);
590 transition: color 0.3s;
591}
592section.cover blockquote > p > a:hover {
593 color: #0ff;
594 color: var(--theme-color, #0ff);
595}
596body {
597 background-color: #f0ffff;
598}
599/* sidebar */
600.sidebar {
601 background-color: #f0ffff;
602 color: #364149;
603}
604.sidebar li {
605 margin: 6px 0 6px 0;
606}
607.sidebar ul li a {
608 color: #505d6b;
609 font-size: 14px;
610 font-weight: normal;
611 overflow: hidden;
612 text-decoration: none;
613 text-overflow: ellipsis;
614 white-space: nowrap;
615}
616.sidebar ul li a:hover {
617 text-decoration: underline;
618}
619.sidebar ul li ul {
620 padding: 0;
621}
622.sidebar ul li.active > a {
623 border-right: 2px solid;
624 color: #0ff;
625 color: var(--theme-color, #0ff);
626 font-weight: 600;
627}
628.app-sub-sidebar li::before {
629 content: '-';
630 padding-right: 4px;
631 float: left;
632}
633/* markdown content found on pages */
634.markdown-section h1,
635.markdown-section h2,
636.markdown-section h3,
637.markdown-section h4,
638.markdown-section strong {
639 color: #2c3e50;
640 font-weight: 600;
641}
642.markdown-section a {
643 color: #0ff;
644 color: var(--theme-color, #0ff);
645 font-weight: 600;
646}
647.markdown-section a:hover {
648 text-decoration: underline;
649}
650.markdown-section h1 {
651 font-size: 2rem;
652 margin: 0 0 1rem;
653}
654.markdown-section h2 {
655 font-size: 1.75rem;
656 margin: 45px 0 0.8rem;
657}
658.markdown-section h3 {
659 font-size: 1.5rem;
660 margin: 40px 0 0.6rem;
661}
662.markdown-section h4 {
663 font-size: 1.25rem;
664}
665.markdown-section h5 {
666 font-size: 1rem;
667}
668.markdown-section h6 {
669 color: #777;
670 font-size: 1rem;
671}
672.markdown-section figure,
673.markdown-section p {
674 margin: 1.2em 0;
675}
676.markdown-section p,
677.markdown-section ul,
678.markdown-section ol {
679 line-height: 1.6rem;
680 word-spacing: 0.05rem;
681}
682.markdown-section ul,
683.markdown-section ol {
684 padding-left: 1.5rem;
685}
686.markdown-section blockquote {
687 border-left: 4px solid #0ff;
688 border-left: 4px solid var(--theme-color, #0ff);
689 color: #858585;
690 margin: 2em 0;
691 padding-left: 20px;
692}
693.markdown-section blockquote p {
694 font-weight: 600;
695 margin-left: 0;
696}
697.markdown-section iframe {
698 margin: 1em 0;
699}
700.markdown-section em {
701 color: #7f8c8d;
702}
703.markdown-section code {
704 background-color: #f8f8f8;
705 border-radius: 2px;
706 color: #e96900;
707 font-family: 'Roboto Mono', Monaco, courier, monospace;
708 margin: 0 2px;
709 padding: 3px 5px;
710 white-space: pre-wrap;
711}
712.markdown-section > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) code {
713 font-size: 0.8rem;
714}
715.markdown-section pre {
716 -moz-osx-font-smoothing: initial;
717 -webkit-font-smoothing: initial;
718 background-color: #f8f8f8;
719 font-family: 'Roboto Mono', Monaco, courier, monospace;
720 line-height: 1.5rem;
721 margin: 1.2em 0;
722 overflow: auto;
723 padding: 0 1.4rem;
724 position: relative;
725 word-wrap: normal;
726}
727/* code highlight */
728.token.comment,
729.token.prolog,
730.token.doctype,
731.token.cdata {
732 color: #8e908c;
733}
734.token.namespace {
735 opacity: 0.7;
736}
737.token.boolean,
738.token.number {
739 color: #c76b29;
740}
741.token.punctuation {
742 color: #525252;
743}
744.token.property {
745 color: #c08b30;
746}
747.token.tag {
748 color: #2973b7;
749}
750.token.string {
751 color: #0ff;
752 color: var(--theme-color, #0ff);
753}
754.token.selector {
755 color: #6679cc;
756}
757.token.attr-name {
758 color: #2973b7;
759}
760.token.entity,
761.token.url,
762.language-css .token.string,
763.style .token.string {
764 color: #22a2c9;
765}
766.token.attr-value,
767.token.control,
768.token.directive,
769.token.unit {
770 color: #0ff;
771 color: var(--theme-color, #0ff);
772}
773.token.keyword,
774.token.function {
775 color: #e96900;
776}
777.token.statement,
778.token.regex,
779.token.atrule {
780 color: #22a2c9;
781}
782.token.placeholder,
783.token.variable {
784 color: #3d8fd1;
785}
786.token.deleted {
787 text-decoration: line-through;
788}
789.token.inserted {
790 border-bottom: 1px dotted #202746;
791 text-decoration: none;
792}
793.token.italic {
794 font-style: italic;
795}
796.token.important,
797.token.bold {
798 font-weight: bold;
799}
800.token.important {
801 color: #c94922;
802}
803.token.entity {
804 cursor: help;
805}
806.markdown-section pre > code {
807 -moz-osx-font-smoothing: initial;
808 -webkit-font-smoothing: initial;
809 background-color: #f8f8f8;
810 border-radius: 2px;
811 color: #525252;
812 display: block;
813 font-family: 'Roboto Mono', Monaco, courier, monospace;
814 font-size: 0.8rem;
815 line-height: inherit;
816 margin: 0 2px;
817 max-width: inherit;
818 overflow: inherit;
819 padding: 2.2em 5px;
820 white-space: inherit;
821}
822.markdown-section code::after,
823.markdown-section code::before {
824 letter-spacing: 0.05rem;
825}
826code .token {
827 -moz-osx-font-smoothing: initial;
828 -webkit-font-smoothing: initial;
829 min-height: 1.5rem;
830 position: relative;
831 left: auto;
832}
833pre::after {
834 color: #ccc;
835 content: attr(data-lang);
836 font-size: 0.6rem;
837 font-weight: 600;
838 height: 15px;
839 line-height: 15px;
840 padding: 5px 10px 0;
841 position: absolute;
842 right: 0;
843 text-align: right;
844 top: 0;
845}