UNPKG

13.5 kBCSSView Raw
1* {
2 box-sizing: border-box
3}
4
5html, body {
6 height: 100%;
7 width: 100%;
8}
9
10body {
11 color: #4d4e53;
12 background-color: white;
13 margin: 0 auto;
14 padding: 0 20px;
15 font-family: 'Helvetica Neue', Helvetica, sans-serif;
16 font-size: 16px;
17}
18
19img {
20 max-width: 100%;
21}
22
23a,
24a:active {
25 color: #606;
26 text-decoration: none;
27}
28
29a:hover {
30 text-decoration: none;
31}
32
33article a {
34 border-bottom: 1px solid #ddd;
35}
36
37article a:hover, article a:active {
38 border-bottom-color: #222;
39}
40
41article .description a {
42 word-break: break-word;
43}
44
45p, ul, ol, blockquote {
46 margin-bottom: 1em;
47 line-height: 160%;
48}
49
50h1, h2, h3, h4, h5, h6 {
51 font-family: 'Montserrat', sans-serif;
52}
53
54h1, h2, h3, h4, h5, h6 {
55 color: #000;
56 font-weight: 400;
57 margin: 0;
58}
59
60h1 {
61 font-weight: 300;
62 font-size: 48px;
63 margin: 1em 0 .5em;
64}
65
66h1.page-title {
67 font-size: 48px;
68 margin: 1em 30px;
69 line-height: 100%;
70 word-wrap: break-word;
71}
72
73h2 {
74 font-size: 24px;
75 margin: 1.5em 0 .3em;
76}
77
78h3 {
79 font-size: 24px;
80 margin: 1.2em 0 .3em;
81}
82
83h4 {
84 font-size: 18px;
85 margin: 1em 0 .2em;
86 color: #4d4e53;
87}
88
89h4.name {
90 color: #fff;
91 background: #6d426d;
92 box-shadow: 0 .25em .5em #d3d3d3;
93 border-top: 1px solid #d3d3d3;
94 border-bottom: 1px solid #d3d3d3;
95 margin: 1.5em 0 0.5em;
96 padding: .75em 0 .75em 10px;
97}
98
99h4.name a {
100 color: #fc83ff;
101}
102
103h4.name a:hover {
104 border-bottom-color: #fc83ff;
105}
106
107h5, .container-overview .subsection-title {
108 font-size: 120%;
109 letter-spacing: -0.01em;
110 margin: 8px 0 3px 0;
111}
112
113h6 {
114 font-size: 100%;
115 letter-spacing: -0.01em;
116 margin: 6px 0 3px 0;
117 font-style: italic;
118}
119
120.usertext h1 {
121 font-family: "Source Sans Pro";
122 font-size: 24px;
123 margin: 2.5em 0 1em;
124 font-weight: 400;
125}
126
127.usertext h2 {
128 font-family: "Source Sans Pro";
129 font-size: 18px;
130 margin: 2em 0 0.5em;
131 font-weight: 400;
132
133}
134
135.usertext h3 {
136 font-family: "Source Sans Pro";
137 font-size: 15px;
138 margin: 1.5em 0 0;
139 font-weight: 400;
140}
141
142.usertext h4 {
143 font-family: "Source Sans Pro";
144 font-size: 14px;
145 margin: 0 0 0;
146 font-weight: 400;
147}
148
149.usertext h5 {
150 font-size: 12px;
151 margin: 1em 0 0;
152 font-weight: normal;
153 color: #666;
154}
155
156.usertext h6 {
157 font-size: 11px;
158 margin: 1em 0 0;
159 font-weight: normal;
160 font-style: normal;
161 color: #666;
162}
163
164
165tt, code, kbd, samp, pre {
166 font-family: Consolas, Monaco, 'Andale Mono', monospace;
167 background: #f4f4f4;
168}
169
170tt, code, kbd, samp{
171 padding: 1px 5px;
172}
173
174pre {
175 padding-bottom: 1em;
176}
177
178.class-description {
179 font-size: 130%;
180 line-height: 140%;
181 margin-bottom: 1em;
182 margin-top: 1em;
183}
184
185.class-description:empty {
186 margin: 0
187}
188
189#main {
190 float: right;
191 width: calc(100% - 240px);
192}
193
194header {
195 display: block
196}
197
198section {
199 display: block;
200 background-color: #fff;
201 padding: 0 0 0 30px;
202}
203
204.variation {
205 display: none
206}
207
208.signature-attributes {
209 font-size: 60%;
210 color: #eee;
211 font-style: italic;
212 font-weight: lighter;
213}
214
215nav {
216 float: left;
217 display: block;
218 width: 250px;
219 background: #fff;
220 overflow: auto;
221 position: fixed;
222 height: 100%;
223}
224
225nav #nav-search{
226 width: 210px;
227 height: 30px;
228 padding: 5px 10px;
229 font-size: 12px;
230 line-height: 1.5;
231 border-radius: 3px;
232 margin-right: 20px;
233 margin-top: 20px;
234}
235
236nav.wrap a{
237 word-wrap: break-word;
238}
239
240nav h3 {
241 margin-top: 12px;
242 font-size: 13px;
243 text-transform: uppercase;
244 letter-spacing: 1px;
245 font-weight: 700;
246 line-height: 24px;
247 margin: 15px 0 10px;
248 padding: 0;
249 color: #000;
250}
251
252nav h3.collapsed_header {
253 cursor: pointer;
254}
255
256nav ul {
257 font-family: 'Lucida Grande', 'Lucida Sans Unicode', arial, sans-serif;
258 font-size: 100%;
259 line-height: 17px;
260 padding: 0;
261 margin: 0;
262 list-style-type: none;
263}
264
265nav ul a,
266nav ul a:active {
267 font-family: 'Montserrat', sans-serif;
268 line-height: 18px;
269 padding: 0;
270 display: block;
271 font-size: 12px;
272}
273
274nav a:hover,
275nav a:active {
276 color: #606;
277}
278
279nav > ul {
280 padding: 0 10px;
281}
282
283nav > ul > li > a {
284 color: #606;
285 margin-top: 10px;
286}
287
288nav ul ul a {
289 color: hsl(207, 1%, 60%);
290 border-left: 1px solid hsl(207, 10%, 86%);
291}
292
293nav ul ul a,
294nav ul ul a:active {
295 padding-left: 20px
296}
297
298nav h2 {
299 font-size: 13px;
300 margin: 10px 0 0 0;
301 padding: 0;
302}
303
304nav > h2 > a {
305 margin: 10px 0 -10px;
306 color: #606 !important;
307}
308
309footer {
310 color: hsl(0, 0%, 28%);
311 margin-left: 250px;
312 display: block;
313 padding: 15px;
314 font-style: italic;
315 font-size: 90%;
316}
317
318.ancestors {
319 color: #999
320}
321
322.ancestors a {
323 color: #999 !important;
324}
325
326.clear {
327 clear: both
328}
329
330.important {
331 font-weight: bold;
332 color: #950B02;
333}
334
335.yes-def {
336 text-indent: -1000px
337}
338
339.type-signature {
340 color: #CA79CA
341}
342
343.type-signature:last-child {
344 color: #eee;
345}
346
347.name, .signature {
348 font-family: Consolas, Monaco, 'Andale Mono', monospace
349}
350
351.signature {
352 color: #fc83ff;
353}
354
355.details {
356 margin-top: 6px;
357 border-left: 2px solid #DDD;
358 line-height: 20px;
359 font-size: 14px;
360}
361
362.details dt {
363 width: auto;
364 float: left;
365 padding-left: 10px;
366}
367
368.details dd {
369 margin-left: 70px;
370 margin-top: 6px;
371 margin-bottom: 6px;
372}
373
374.details ul {
375 margin: 0
376}
377
378.details ul {
379 list-style-type: none
380}
381
382.details pre.prettyprint {
383 margin: 0
384}
385
386.details .object-value {
387 padding-top: 0
388}
389
390.description {
391 margin-bottom: 1em;
392 margin-top: 1em;
393}
394
395.code-caption {
396 font-style: italic;
397 font-size: 107%;
398 margin: 0;
399}
400
401.prettyprint {
402 font-size: 14px;
403 overflow: auto;
404}
405
406.prettyprint.source {
407 width: inherit;
408 line-height: 18px;
409 display: block;
410 background-color: #0d152a;
411 color: #aeaeae;
412}
413
414.prettyprint code {
415 line-height: 18px;
416 display: block;
417 background-color: #0d152a;
418 color: #4D4E53;
419}
420
421.prettyprint > code {
422 padding: 15px;
423}
424
425.prettyprint .linenums code {
426 padding: 0 15px
427}
428
429.prettyprint .linenums li:first-of-type code {
430 padding-top: 15px
431}
432
433.prettyprint code span.line {
434 display: inline-block
435}
436
437.prettyprint.linenums {
438 padding-left: 70px;
439 -webkit-user-select: none;
440 -moz-user-select: none;
441 -ms-user-select: none;
442 user-select: none;
443}
444
445.prettyprint.linenums ol {
446 padding-left: 0
447}
448
449.prettyprint.linenums li {
450 border-left: 3px #34446B solid;
451}
452
453.prettyprint.linenums li.selected, .prettyprint.linenums li.selected * {
454 background-color: #34446B;
455}
456
457.prettyprint.linenums li * {
458 -webkit-user-select: text;
459 -moz-user-select: text;
460 -ms-user-select: text;
461 user-select: text;
462}
463
464.prettyprint.linenums li code:empty:after {
465 content:"";
466 display:inline-block;
467 width:0px;
468}
469
470table {
471 border-spacing: 0;
472 border: 1px solid #ddd;
473 border-collapse: collapse;
474 border-radius: 3px;
475 box-shadow: 0 1px 3px rgba(0,0,0,0.1);
476 width: 100%;
477 font-size: 14px;
478 margin: 1em 0;
479}
480
481td, th {
482 margin: 0px;
483 text-align: left;
484 vertical-align: top;
485 padding: 10px;
486 display: table-cell;
487}
488
489thead tr, thead tr {
490 background-color: #fff;
491 font-weight: bold;
492 border-bottom: 1px solid #ddd;
493}
494
495.params .type {
496 white-space: nowrap;
497}
498
499.params code {
500 white-space: pre;
501}
502
503.params td, .params .name, .props .name, .name code {
504 color: #4D4E53;
505 font-family: Consolas, Monaco, 'Andale Mono', monospace;
506 font-size: 100%;
507}
508
509.params td {
510 border-top: 1px solid #eee
511}
512
513.params td.description > p:first-child, .props td.description > p:first-child {
514 margin-top: 0;
515 padding-top: 0;
516}
517
518.params td.description > p:last-child, .props td.description > p:last-child {
519 margin-bottom: 0;
520 padding-bottom: 0;
521}
522
523span.param-type, .params td .param-type, .param-type dd {
524 color: #606;
525 font-family: Consolas, Monaco, 'Andale Mono', monospace
526}
527
528.param-type dt, .param-type dd {
529 display: inline-block
530}
531
532.param-type {
533 margin: 14px 0;
534}
535
536.disabled {
537 color: #454545
538}
539
540/* navicon button */
541.navicon-button {
542 display: none;
543 position: relative;
544 padding: 2.0625rem 1.5rem;
545 transition: 0.25s;
546 cursor: pointer;
547 -webkit-user-select: none;
548 -moz-user-select: none;
549 -ms-user-select: none;
550 user-select: none;
551 opacity: .8;
552}
553.navicon-button .navicon:before, .navicon-button .navicon:after {
554 transition: 0.25s;
555}
556.navicon-button:hover {
557 transition: 0.5s;
558 opacity: 1;
559}
560.navicon-button:hover .navicon:before, .navicon-button:hover .navicon:after {
561 transition: 0.25s;
562}
563.navicon-button:hover .navicon:before {
564 top: .825rem;
565}
566.navicon-button:hover .navicon:after {
567 top: -.825rem;
568}
569
570/* navicon */
571.navicon {
572 position: relative;
573 width: 2.5em;
574 height: .3125rem;
575 background: #000;
576 transition: 0.3s;
577 border-radius: 2.5rem;
578}
579.navicon:before, .navicon:after {
580 display: block;
581 content: "";
582 height: .3125rem;
583 width: 2.5rem;
584 background: #000;
585 position: absolute;
586 z-index: -1;
587 transition: 0.3s 0.25s;
588 border-radius: 1rem;
589}
590.navicon:before {
591 top: .625rem;
592}
593.navicon:after {
594 top: -.625rem;
595}
596
597/* open */
598.nav-trigger:checked + label:not(.steps) .navicon:before,
599.nav-trigger:checked + label:not(.steps) .navicon:after {
600 top: 0 !important;
601}
602
603.nav-trigger:checked + label .navicon:before,
604.nav-trigger:checked + label .navicon:after {
605 transition: 0.5s;
606}
607
608/* Minus */
609.nav-trigger:checked + label {
610 -webkit-transform: scale(0.75);
611 transform: scale(0.75);
612}
613
614/* × and + */
615.nav-trigger:checked + label.plus .navicon,
616.nav-trigger:checked + label.x .navicon {
617 background: transparent;
618}
619
620.nav-trigger:checked + label.plus .navicon:before,
621.nav-trigger:checked + label.x .navicon:before {
622 -webkit-transform: rotate(-45deg);
623 transform: rotate(-45deg);
624 background: #FFF;
625}
626
627.nav-trigger:checked + label.plus .navicon:after,
628.nav-trigger:checked + label.x .navicon:after {
629 -webkit-transform: rotate(45deg);
630 transform: rotate(45deg);
631 background: #FFF;
632}
633
634.nav-trigger:checked + label.plus {
635 -webkit-transform: scale(0.75) rotate(45deg);
636 transform: scale(0.75) rotate(45deg);
637}
638
639.nav-trigger:checked ~ nav {
640 left: 0 !important;
641}
642
643.nav-trigger:checked ~ .overlay {
644 display: block;
645}
646
647.nav-trigger {
648 position: fixed;
649 top: 0;
650 clip: rect(0, 0, 0, 0);
651}
652
653.overlay {
654 display: none;
655 position: fixed;
656 top: 0;
657 bottom: 0;
658 left: 0;
659 right: 0;
660 width: 100%;
661 height: 100%;
662 background: hsla(0, 0%, 0%, 0.5);
663 z-index: 1;
664}
665
666/* nav level */
667.level-hide {
668 display: none;
669}
670html[data-search-mode] .level-hide {
671 display: block;
672}
673
674
675@media only screen and (max-width: 680px) {
676 body {
677 overflow-x: hidden;
678 }
679
680 nav {
681 background: #FFF;
682 width: 250px;
683 height: 100%;
684 position: fixed;
685 top: 0;
686 right: 0;
687 bottom: 0;
688 left: -250px;
689 z-index: 3;
690 padding: 0 10px;
691 transition: left 0.2s;
692 }
693
694 .navicon-button {
695 display: inline-block;
696 position: fixed;
697 top: 1.5em;
698 right: 0;
699 z-index: 2;
700 }
701
702 #main {
703 width: 100%;
704 }
705
706 #main h1.page-title {
707 margin: 1em 0;
708 }
709
710 #main section {
711 padding: 0;
712 }
713
714 footer {
715 margin-left: 0;
716 }
717}
718
719/** Add a '#' to static members */
720[data-type="member"] a::before {
721 content: '#';
722 display: inline-block;
723 margin-left: -14px;
724 margin-right: 5px;
725}
726
727#disqus_thread{
728 margin-left: 30px;
729}
730
731@font-face {
732 font-family: 'Montserrat';
733 font-style: normal;
734 font-weight: 400;
735 src: url('../fonts/Montserrat/Montserrat-Regular.eot'); /* IE9 Compat Modes */
736 src: url('../fonts/Montserrat/Montserrat-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
737 url('../fonts/Montserrat/Montserrat-Regular.woff2') format('woff2'), /* Super Modern Browsers */
738 url('../fonts/Montserrat/Montserrat-Regular.woff') format('woff'), /* Pretty Modern Browsers */
739 url('../fonts/Montserrat/Montserrat-Regular.ttf') format('truetype'); /* Safari, Android, iOS */
740}
741
742@font-face {
743 font-family: 'Montserrat';
744 font-style: normal;
745 font-weight: 700;
746 src: url('../fonts/Montserrat/Montserrat-Bold.eot'); /* IE9 Compat Modes */
747 src: url('../fonts/Montserrat/Montserrat-Bold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
748 url('../fonts/Montserrat/Montserrat-Bold.woff2') format('woff2'), /* Super Modern Browsers */
749 url('../fonts/Montserrat/Montserrat-Bold.woff') format('woff'), /* Pretty Modern Browsers */
750 url('../fonts/Montserrat/Montserrat-Bold.ttf') format('truetype'); /* Safari, Android, iOS */
751}
752
753@font-face {
754 font-family: 'Source Sans Pro';
755 src: url('../fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot');
756 src: url('../fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot?#iefix') format('embedded-opentype'),
757 url('../fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2') format('woff2'),
758 url('../fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff') format('woff'),
759 url('../fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf') format('truetype'),
760 url('../fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg#source_sans_proregular') format('svg');
761 font-weight: 400;
762 font-style: normal;
763}
764
765@font-face {
766 font-family: 'Source Sans Pro';
767 src: url('../fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot');
768 src: url('../fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot?#iefix') format('embedded-opentype'),
769 url('../fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2') format('woff2'),
770 url('../fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff') format('woff'),
771 url('../fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf') format('truetype'),
772 url('../fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg#source_sans_prolight') format('svg');
773 font-weight: 300;
774 font-style: normal;
775
776}