clean-jsdoc-theme 4.0.0 → 4.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/{codeql-analysis.yml → codeql.yml} +23 -18
- package/.github/workflows/greetings.yml +16 -0
- package/README.md +6 -4
- package/minify.js +4 -0
- package/package.json +1 -1
- package/static/scripts/core.js +7 -7
- package/static/scripts/core.min.js +3 -3
- package/static/scripts/search.js +6 -4
- package/static/scripts/search.min.js +11 -11
- package/static/scripts/third-party/hljs-original.js +5162 -0
- package/static/scripts/third-party/hljs.js +1 -1173
- package/static/styles/clean-jsdoc-theme-base.css +32 -14
- package/static/styles/clean-jsdoc-theme-dark.css +11 -15
- package/static/styles/clean-jsdoc-theme-light.css +13 -17
- package/static/styles/clean-jsdoc-theme.min.css +1 -1
- package/tmpl/container.tmpl +10 -10
- package/tmpl/details.tmpl +1 -1
- package/tmpl/examples.tmpl +1 -1
- package/tmpl/layout.tmpl +7 -7
- package/tmpl/members.tmpl +4 -4
- package/tmpl/method.tmpl +2 -2
- package/tmpl/mobile-sidebar.tmpl +2 -2
- package/tmpl/navbar-actions.tmpl +5 -5
- package/tmpl/navbar-menu.tmpl +4 -0
- package/tmpl/search.tmpl +1 -1
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: 'heading';
|
|
3
3
|
src: url('../fonts/WorkSans-Bold.ttf') format('truetype');
|
|
4
|
+
font-display: swap;
|
|
4
5
|
}
|
|
5
6
|
|
|
6
7
|
@font-face {
|
|
7
8
|
font-family: 'body';
|
|
8
9
|
src: url('../fonts/OpenSans-Regular.ttf') format('truetype');
|
|
10
|
+
font-display: swap;
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
@font-face {
|
|
12
14
|
font-family: 'code';
|
|
13
15
|
src: url('../fonts/Inconsolata-Regular.ttf') format('truetype');
|
|
16
|
+
font-display: swap;
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
* {
|
|
@@ -32,6 +35,10 @@ body {
|
|
|
32
35
|
position: relative;
|
|
33
36
|
}
|
|
34
37
|
|
|
38
|
+
b {
|
|
39
|
+
font-family: heading;
|
|
40
|
+
}
|
|
41
|
+
|
|
35
42
|
h1,
|
|
36
43
|
h2,
|
|
37
44
|
h3,
|
|
@@ -40,6 +47,7 @@ h5,
|
|
|
40
47
|
h6 {
|
|
41
48
|
font-family: 'heading';
|
|
42
49
|
font-weight: normal;
|
|
50
|
+
line-height: 1.75;
|
|
43
51
|
}
|
|
44
52
|
|
|
45
53
|
h1 {
|
|
@@ -53,17 +61,15 @@ h2 {
|
|
|
53
61
|
}
|
|
54
62
|
|
|
55
63
|
h3 {
|
|
56
|
-
font-size:
|
|
57
|
-
margin: 2rem 0 0;
|
|
64
|
+
font-size: 1.5rem;
|
|
58
65
|
}
|
|
59
66
|
|
|
60
67
|
h4 {
|
|
61
|
-
font-size: 1.
|
|
62
|
-
margin: 1.5rem 0 0;
|
|
68
|
+
font-size: 1.25rem;
|
|
63
69
|
}
|
|
64
70
|
|
|
65
71
|
h5 {
|
|
66
|
-
font-size:
|
|
72
|
+
font-size: 1rem;
|
|
67
73
|
}
|
|
68
74
|
|
|
69
75
|
h6 {
|
|
@@ -93,12 +99,6 @@ p {
|
|
|
93
99
|
|
|
94
100
|
article ul {
|
|
95
101
|
list-style: none;
|
|
96
|
-
padding-left: 1rem;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
article ul li::before {
|
|
100
|
-
content: '\2014\a0';
|
|
101
|
-
margin-right: 0.5rem;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
article ul li,
|
|
@@ -106,8 +106,14 @@ article ol li {
|
|
|
106
106
|
padding: 0.5rem 0;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
article ol
|
|
110
|
-
|
|
109
|
+
article ol,
|
|
110
|
+
article ul {
|
|
111
|
+
padding-left: 3rem;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
article ol p,
|
|
115
|
+
article ul p {
|
|
116
|
+
margin: 0;
|
|
111
117
|
}
|
|
112
118
|
|
|
113
119
|
/* stylelint-disable-next-line */
|
|
@@ -546,6 +552,7 @@ code {
|
|
|
546
552
|
|
|
547
553
|
.icon-button {
|
|
548
554
|
background: transparent;
|
|
555
|
+
position: relative;
|
|
549
556
|
display: inline-flex;
|
|
550
557
|
border: 0;
|
|
551
558
|
padding: 0.5rem;
|
|
@@ -691,7 +698,7 @@ pre {
|
|
|
691
698
|
padding: 0.1875rem 0.5rem;
|
|
692
699
|
position: absolute;
|
|
693
700
|
right: 2rem;
|
|
694
|
-
top:
|
|
701
|
+
top: 0.3125rem;
|
|
695
702
|
transform: scale(0);
|
|
696
703
|
transition: 0.3s;
|
|
697
704
|
}
|
|
@@ -939,3 +946,14 @@ pre {
|
|
|
939
946
|
width: 100%;
|
|
940
947
|
overflow: auto;
|
|
941
948
|
}
|
|
949
|
+
|
|
950
|
+
/* scroll bar */
|
|
951
|
+
::-webkit-scrollbar {
|
|
952
|
+
width: 0.3125rem;
|
|
953
|
+
height: 0.3125rem;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
::-webkit-scrollbar-thumb,
|
|
957
|
+
::-webkit-scrollbar-track {
|
|
958
|
+
border-radius: 1rem;
|
|
959
|
+
}
|
|
@@ -121,7 +121,7 @@ tt,
|
|
|
121
121
|
code,
|
|
122
122
|
kbd,
|
|
123
123
|
samp {
|
|
124
|
-
background: #
|
|
124
|
+
background: #333;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
.signature-attributes {
|
|
@@ -226,14 +226,6 @@ table .params thead tr,
|
|
|
226
226
|
color: #aaaaaa;
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
.code-copy-icon-container {
|
|
230
|
-
fill: #fff;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.code-copy-icon-container:hover {
|
|
234
|
-
background-color: #444;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
229
|
.code-lang-name {
|
|
238
230
|
color: #ff8a00;
|
|
239
231
|
}
|
|
@@ -243,12 +235,6 @@ table .params thead tr,
|
|
|
243
235
|
color: #222;
|
|
244
236
|
}
|
|
245
237
|
|
|
246
|
-
.tooltip .pun,
|
|
247
|
-
.tooltip .typ {
|
|
248
|
-
background: #ffce76;
|
|
249
|
-
color: #222;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
238
|
/* code */
|
|
253
239
|
.hljs-comment {
|
|
254
240
|
color: #8b949e;
|
|
@@ -409,3 +395,13 @@ blockquote {
|
|
|
409
395
|
.mobile-sidebar-wrapper {
|
|
410
396
|
background: #222;
|
|
411
397
|
}
|
|
398
|
+
|
|
399
|
+
/* scroll bar */
|
|
400
|
+
::-webkit-scrollbar-track {
|
|
401
|
+
background: #333;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
::-webkit-scrollbar-thumb {
|
|
405
|
+
background: #555;
|
|
406
|
+
outline: 0.06125rem solid #555;
|
|
407
|
+
}
|
|
@@ -83,11 +83,11 @@ body.light {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
.light .icon-button:hover {
|
|
86
|
-
background: #
|
|
86
|
+
background: #ddd;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
.light .icon-button:active {
|
|
90
|
-
background: #
|
|
90
|
+
background: #ccc;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
.light .navbar-item a:active {
|
|
@@ -228,14 +228,6 @@ body.light {
|
|
|
228
228
|
color: #454545;
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
.light .code-copy-icon-container {
|
|
232
|
-
fill: #111;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
.light .code-copy-icon-container:hover {
|
|
236
|
-
background-color: #ddd;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
231
|
.light .code-lang-name {
|
|
240
232
|
color: #ff0000;
|
|
241
233
|
}
|
|
@@ -245,12 +237,6 @@ body.light {
|
|
|
245
237
|
color: #000;
|
|
246
238
|
}
|
|
247
239
|
|
|
248
|
-
.light .tooltip .pun,
|
|
249
|
-
.light .tooltip .typ {
|
|
250
|
-
background: #ffce76;
|
|
251
|
-
color: #000;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
240
|
/* Code */
|
|
255
241
|
|
|
256
242
|
.light .hljs-comment,
|
|
@@ -330,7 +316,7 @@ body.light {
|
|
|
330
316
|
}
|
|
331
317
|
|
|
332
318
|
.light code {
|
|
333
|
-
background: #
|
|
319
|
+
background: #ddd;
|
|
334
320
|
color: #000;
|
|
335
321
|
}
|
|
336
322
|
|
|
@@ -390,3 +376,13 @@ body.light {
|
|
|
390
376
|
.light .mobile-sidebar-wrapper {
|
|
391
377
|
background: #f7f7f7;
|
|
392
378
|
}
|
|
379
|
+
|
|
380
|
+
/* scroll bar */
|
|
381
|
+
.light ::-webkit-scrollbar-track {
|
|
382
|
+
background: #ddd;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.light ::-webkit-scrollbar-thumb {
|
|
386
|
+
background: #aaa;
|
|
387
|
+
outline: 0.06125rem solid #aaa;
|
|
388
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@font-face{font-family:"heading";src:url(../fonts/WorkSans-Bold.ttf)format("truetype")}@font-face{font-family:"body";src:url(../fonts/OpenSans-Regular.ttf)format("truetype")}@font-face{font-family:"code";src:url(../fonts/Inconsolata-Regular.ttf)format("truetype")}*{box-sizing:border-box;margin:0;padding:0}html,body{min-height:100%;width:100%;line-height:1.75}body{font-family:"body";overflow-x:hidden;position:relative}h1,h2,h3,h4,h5,h6{font-family:"heading";font-weight:400}h1{font-size:3.5rem;margin:0}h2{font-size:2.25rem;margin:2rem 0 0}h3{font-size:2rem;margin:2rem 0 0}h4{font-size:1.5rem;margin:1.5rem 0 0}h5{font-size:1.25rem}h6{font-size:1rem}img{max-width:100%}a{text-decoration:none}a:hover{text-decoration:underline}a img{margin-right:.5rem}p{margin:1rem 0}article ul{list-style:none;padding-left:1rem}article ul li::before{content:"— ";margin-right:.5rem}article ul li,article ol li{padding:.5rem 0}article ol{padding-left:1rem}.variation{display:none}.signature-attributes{font-style:italic;font-weight:lighter}.ancestors a{text-decoration:none}.important{font-weight:700}.yes-def{text-indent:-1000px}.signature{font-family:"code"}.name{font-family:"code";font-weight:700}blockquote{font-size:.875rem;padding:.0625rem 1.25rem;border-radius:1rem}.details{border-radius:1rem;margin:1rem 0}.details .details-item-container{display:flex;padding:1rem 2rem}dt{font-family:heading}.details dt{float:left;min-width:180px;padding:0 10px}.details ul{margin:0}.details ul{list-style-type:none}.details ul li{display:inline-block;margin-right:10px;padding:0;word-break:break-word}.details ul li::before{content:"";margin:0}.details ul li p{margin:0}.details pre.prettyprint{margin:0}.details .object-value{padding-top:0}.description{margin-bottom:32px}.method-member-container table{margin-top:15px}.pre-div .hljs-ln{margin:0}.code-caption{font-size:.875rem}.prettyprint{font-size:.875rem;overflow:auto}pre.prettyprint{margin-top:3rem}.prettyprint.source{width:inherit}.prettyprint code{display:block;font-size:1rem;line-height:1.75;padding:0 0 1rem}h4.name{margin-top:.5rem}.params,.props,table{border-collapse:separate;border-spacing:0 .5rem;border-radius:.5rem;font-size:.875rem;margin:0;width:100%}table td:first-child,.params td:first-child,table thead th:first-child,.params thead th:first-child,.props thead th:first-child{border-top-left-radius:1rem;border-bottom-left-radius:1rem}table td:last-child,.params td:last-child,table thead th:last-child,.params thead th:last-child,.props thead th:last-child{border-top-right-radius:1rem;border-bottom-right-radius:1rem}table th,.params th{position:sticky;top:0}.params .name,.props .name,.name code{font-family:"code";font-size:1rem}.params td,.params th,.props td,.props th,th,td{display:table-cell;margin:0;padding:1rem 2rem;text-align:left;vertical-align:top}.params thead tr,.props thead tr{font-weight:700}.params .params thead tr,.props .props thead tr{font-weight:700}.params td.description>p:first-child,.props td.description>p:first-child{margin-top:0;padding-top:0}.params td.description>p:last-child,.props td.description>p:last-child{margin-bottom:0;padding-bottom:0}dl.param-type{margin-bottom:1rem;padding-bottom:1rem}.param-type dt,.param-type dd{display:inline-block}.param-type dd{font-family:"code";font-size:1rem}code{border-radius:.3rem;font-family:"code";font-size:1rem;padding:.1rem .4rem}.mt-20{margin-top:1.5rem}.codepen-form{bottom:0;position:absolute;right:.6125rem}.body-wrapper{display:flex;flex-direction:column;height:100vh;position:relative}.sidebar-container{position:fixed;display:flex;padding:1rem;top:0;bottom:0;left:0;width:25rem;z-index:10}.sidebar{border-radius:1rem;flex:1;padding:1.5rem 0;overflow:hidden;display:flex;flex-direction:column}.sidebar-title{margin:0;padding:0 2rem;text-decoration:none;font-size:1.5rem;font-family:heading}.sidebar-title:hover{text-decoration:none}.sidebar-items-container{margin-top:5rem;overflow:auto;flex:1;position:relative}.sidebar-section-title{padding:.5rem 2rem;font-family:heading;font-size:1.25rem;border-radius:1rem}.with-arrow{align-items:center;cursor:pointer;display:flex}.with-arrow div{flex:1}.with-arrow svg{height:1rem;width:1rem;transition:transform .3s}.with-arrow[data-isopen=true] svg{transform:rotate(180deg)}.sidebar-section-children-container{border-radius:.5rem;overflow:hidden}.sidebar-section-children a{display:block;width:100%;padding:.25rem 2rem}.sidebar-section-children a{text-decoration:none}.with-arrow[data-isopen=false]+.sidebar-section-children-container{height:0;overflow:hidden}.with-arrow[data-isopen=true]+.sidebar-section-children-container{height:auto}.toc-container{position:fixed;top:0;right:4rem;bottom:0;width:16rem;z-index:10}.toc-content{padding-top:10rem;display:flex;flex-direction:column;height:100%}#toc{margin:2rem 0;flex:1;overflow:auto}.toc-list{padding-left:1rem;list-style:none}.toc-link{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.toc-link.is-active-link{font-family:heading}.has-anchor{position:relative}.link-anchor{padding:0 .5rem}.has-anchor .link-anchor{position:absolute;left:0;transform:translateX(-100%);text-decoration:none;visibility:hidden}.has-anchor:hover .link-anchor{visibility:visible}.navbar-container{position:fixed;z-index:10;top:0;left:25rem;right:25rem;height:7rem;padding-top:1rem;display:flex;justify-content:center}.navbar{display:flex;padding:1rem 4rem 1rem 2rem;flex:1;max-width:60rem}.navbar-left-items{display:flex;flex:1}.navbar-right-items{display:flex}.icon-button svg{height:1rem;width:1rem}.icon-button{background:0 0;display:inline-flex;border:0;padding:.5rem;border-radius:50%;cursor:pointer;transition:background .3s}.navbar-right-item{display:flex;justify-content:center;align-items:center;margin:0 .25rem}.navbar-item{border-radius:.5rem;overflow:hidden}.navbar-item a{display:inline-block;padding:1rem 2rem;text-decoration:none;transition:.3s}.font-size-tooltip{display:flex;align-items:center;margin:0-.5rem}.font-size-tooltip .icon-button.disabled{pointer-events:none}.main-content{position:relative;flex:1;overflow:auto;display:flex;flex-direction:column;align-items:center;padding:7rem 25rem 0}.main-wrapper{width:100%;max-width:60rem;padding:0 4rem 1rem}.p-h-n{padding:.4rem 1rem}.footer{width:100%;margin:5rem 0 0 0;border-radius:1rem;font-size:.875rem;display:flex;justify-content:center}.source-page+.footer{margin-top:3rem}.footer .wrapper{flex:1;padding:1rem 2rem;max-width:70rem}pre{position:relative}.hljs table td{background:0 0;padding:0 .6125rem;line-height:1.5;border-radius:0}.hljs .hljs-ln-numbers{width:2rem;white-space:nowrap;user-select:none;padding-left:1.5rem}.pre-div{position:relative;border-radius:1rem;overflow:hidden;margin:2rem 0}.pre-top-bar-container{align-items:center;display:flex;justify-content:space-between;left:0;padding:.3125rem 1.5rem;position:absolute;right:0;top:0;z-index:1}.code-copy-icon-container{align-items:center;border-radius:50%;cursor:pointer;display:flex;height:1.875rem;justify-content:center;transition:.3s;width:1.875rem}.code-copy-icon-container>div{margin-top:.25rem;position:relative}.sm-icon{height:1rem;width:1rem}.code-lang-name{font-family:"body";font-size:.75rem}.tooltip{border-radius:.3125rem;opacity:0;padding:.1875rem .5rem;position:absolute;right:2rem;top:-.125rem;transform:scale(0);transition:.3s}.show-tooltip{opacity:1;transform:scale(1)}.allow-overflow{overflow:auto}.bold{font-family:heading}.search-container{position:fixed;top:0;bottom:0;right:0;left:0;justify-content:center;z-index:50;align-items:flex-start}.search-container .wrapper{width:100%;max-width:60rem;padding:4rem 2rem 2rem;border-radius:1rem;margin:3rem 25rem;position:relative}.search-close-button{position:absolute;top:1rem;right:1rem}.search-result-c{min-height:20rem;max-height:40rem;overflow:auto;padding:2rem 0}.search-box-c{width:100%;position:relative;display:flex;align-items:center}.search-box-c svg{height:1.5rem;width:1.5rem;position:absolute;left:1.5rem}.search-input{border:0;border-radius:1rem;width:100%;flex:1;padding:1rem 2rem 1rem 4rem;font-family:body;font-size:1.25rem}.search-result-item{display:block;text-decoration:none;padding:1rem;border-radius:1rem;margin:1rem 0}.search-result-item:hover{text-decoration:none}.search-result-item:active{text-decoration:none}.search-result-item-title{font-family:heading;font-size:1.5rem}.search-result-item-p{font-size:.875rem}.mobile-menu-icon-container{display:none;position:fixed;bottom:1.5rem;right:2rem;z-index:30}.mobile-menu-icon-container .icon-button svg{height:2rem;width:2rem}.mobile-sidebar-container{position:fixed;top:0;right:0;left:0;bottom:0;padding:1rem;z-index:25;display:none}.mobile-sidebar-container.show{display:block}.mobile-sidebar-wrapper{border-radius:1rem;height:100%;width:100%;display:flex;flex-direction:column;padding-top:2rem}.mobile-nav-links{display:flex;flex-wrap:wrap;padding-top:2rem}.mobile-sidebar-items-c{flex:1;overflow:auto}.mobile-navbar-actions{display:flex;padding:1rem}@media screen and (max-width:100em){.toc-container{display:none}.main-content{padding:7rem 0 0 25rem}.search-container .wrapper{margin-right:1rem}.navbar-container{right:1rem}}@media screen and (min-width:65em){.mobile-sidebar-container.show{display:none}}@media screen and (max-width:65em){h1{font-size:3rem}h2{font-size:2rem}h3{font-size:1.875}h4,h5,h6{font-size:1rem}.main-wrapper{padding:0 1rem 1rem}.search-result-c{max-height:25rem}.mobile-menu-icon-container{display:block}.sidebar-container{display:none}.search-container .wrapper{margin-left:1rem}.main-content{padding-left:0;padding-top:1rem}.navbar-container{display:none}.source-page+.footer,.footer{margin-top:2rem}.has-anchor:hover .link-anchor{visibility:hidden}}.rel{position:relative}.icon-button.codepen-button svg{height:1.5rem;width:1.5rem}.table-div{width:100%;overflow:auto}::selection{background:#ffce76;color:#222}body{background-color:#1a1a1a;color:#fff}a,a:active{color:#0bf}h1,h2,h3,h4,h5,h6{color:#fff}.sidebar{background-color:#222;color:#999}.sidebar-title{color:#999}.sidebar-section-title{color:#999}.sidebar-section-title:hover{background:#252525}.with-arrow{fill:#999}.sidebar-section-children-container{background:#292929}.sidebar-section-children a:hover{background:#2c2c2c}.sidebar-section-children a{color:#fff}.navbar-container{background:#1a1a1a}.icon-button svg,.navbar-item a{color:#999;fill:#999}.font-size-tooltip .icon-button svg{fill:#fff}.font-size-tooltip .icon-button.disabled{background:#999}.icon-button:hover{background:#333}.icon-button:active{background:#444}.navbar-item a:active{color:#aaa;background-color:#222}.navbar-item:hover{background:#202020}.footer{background:#222;color:#999}.footer a{color:#999}.toc-link{color:#777;transition:color .3s;font-size:.875rem}.toc-link.is-active-link{color:#fff}.has-anchor .link-anchor{color:#555}.has-anchor .link-anchor:hover{color:#888}tt,code,kbd,samp{background:#222}.signature-attributes{color:#aaa}.ancestors{color:#999}.ancestors a{color:#999!important}.important{color:#950b02}.type-signature{color:#00918e}.name,.name a{color:#f7f7f7}.details{background:#222;color:#fff}.details a{color:#fff}.prettyprint{background:#222}.member-item-container strong,.method-member-container strong{color:#fff}.pre-top-bar-container{background:#292929}.prettyprint.source,.prettyprint code{background-color:#222;color:#c9d1d9}.pre-div{background-color:#222}.hljs .hljs-ln-numbers{color:#777}.hljs .selected{background:#444}.hljs .selected .hljs-ln-numbers{color:#eee}table .name,.params .name,.props .name,.name code{color:#fff}table td,.params td{background-color:#292929}table thead th,.params thead th,.props thead th{background-color:#222;color:#fff}table .params thead tr,.params .params thead tr,.props .props thead tr{background-color:#222;color:#fff}.disabled{color:#aaa}.code-copy-icon-container{fill:#fff}.code-copy-icon-container:hover{background-color:#444}.code-lang-name{color:#ff8a00}.tooltip{background:#ffce76;color:#222}.tooltip .pun,.tooltip .typ{background:#ffce76;color:#222}.hljs-comment{color:#8b949e}.hljs-doctag,.hljs-keyword,.hljs-template-tag,.hljs-variable.language_{color:#ff7b72}.hljs-template-variable,.hljs-type{color:#30ac7c}.hljs-meta,.hljs-string,.hljs-regexp{color:#a5d6ff}.hljs-title.class_,.hljs-title{color:#ffa657}.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable{color:#79c0ff}.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-code,.hljs-comment,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}blockquote{background:#222;color:#fff}.search-container{background:rgba(255,255,255,.1)}.icon-button.search-close-button svg{fill:#a00}.search-container .wrapper{background:#222}.search-result-c{color:#666}.search-box-c{fill:#333}.search-input{background:#333;color:#fff}.search-box-c svg{fill:#fff}.search-result-item{background:#333}.search-result-item:hover{background:#444}.search-result-item:active{background:#555}.search-result-item-title{color:#fff}.search-result-item-p{color:#aaa}.mobile-menu-icon-container .icon-button{background:#333}.mobile-sidebar-container{background:#1a1a1a}.mobile-sidebar-wrapper{background:#222}.light ::selection{background:#ffce76;color:#1d1919}body.light{background-color:#fff;color:#111}.light a,.light a:active{color:#007bff}.light h1,.light h2,.light h3,.light h4,.light h5,.light h6{color:#111}.light .sidebar{background-color:#f7f7f7;color:#222}.light .sidebar-title{color:#222}.light .sidebar-section-title{color:#222}.light .sidebar-section-title:hover{background:#eee}.light .with-arrow{fill:#111}.light .sidebar-section-children-container{background:#eee}.light .sidebar-section-children a:hover{background:#e0e0e0}.light .sidebar-section-children a{color:#111}.light .navbar-container{background:#fff}.light .icon-button svg,.light .navbar-item a{color:#222;fill:#222}.light .tippy-box{background:#eee;color:#111}.light .tippy-arrow{color:#f1f1f1}.light .font-size-tooltip .icon-button svg{fill:#111}.light .font-size-tooltip .icon-button.disabled svg{fill:#999}.light .icon-button:hover{background:#f1f1f1}.light .icon-button:active{background:#e5e5e5}.light .navbar-item a:active{color:#333;background-color:#eee}.light .navbar-item:hover{background:#f7f7f7}.light .footer{background:#f7f7f7;color:#111}.light .footer a{color:#111}.light .toc-link{color:#999;transition:color .3s;font-size:.875rem}.light .toc-link.is-active-link{color:#111}.light .has-anchor .link-anchor{color:#ddd}.light .has-anchor .link-anchor:hover{color:#ccc}.light .signature-attributes{color:#aaa}.light .ancestors{color:#999}.light .ancestors a{color:#999!important}.light .important{color:#950b02}.light .type-signature{color:#00918e}.light .name,.light .name a{color:#293a80}.light .details{background:#f9f9f9;color:#101010}.light .details a{color:#111}.light .member-item-container strong,.light .method-member-container strong{color:#000}.light .prettyprint{background:#f7f7f7}.light .pre-div{background:#f7f7f7}.light .hljs .hljs-ln-numbers{color:#aaa}.light .hljs .selected{background:#ccc}.light table.hljs-ln td{background:0 0}.light .hljs .selected .hljs-ln-numbers{color:#444}.light .pre-top-bar-container{background-color:#eee}.light .prettyprint code{background-color:#f7f7f7}.light table .name,.light .params .name,.light .props .name,.light .name code{color:#4d4e53}.light table td,.light .params td{background:#f7f7f7}.light table thead th,.light .params thead th,.light .props thead th{background-color:#eee;color:#111}.light table .params thead tr,.light .params .params thead tr,.light .props .props thead tr{background-color:#eee;color:#111}.light .disabled{color:#454545}.light .code-copy-icon-container{fill:#111}.light .code-copy-icon-container:hover{background-color:#ddd}.light .code-lang-name{color:red}.light .tooltip{background:#ffce76;color:#000}.light .tooltip .pun,.light .tooltip .typ{background:#ffce76;color:#000}.light .hljs-comment,.light .hljs-quote{color:#a0a1a7}.light .hljs-doctag,.light .hljs-keyword,.light .hljs-formula{color:#a626a4}.light .hljs-section,.light .hljs-name,.light .hljs-selector-tag,.light .hljs-deletion,.light .hljs-subst{color:#e45649}.light .hljs-literal{color:#0184bb}.light .hljs-string,.light .hljs-regexp,.light .hljs-addition,.light .hljs-attribute,.light .hljs-meta .hljs-string{color:#50a14f}.light .hljs-attr,.light .hljs-variable,.light .hljs-template-variable,.light .hljs-type,.light .hljs-selector-class,.light .hljs-selector-attr,.light .hljs-selector-pseudo,.light .hljs-number{color:#986801}.light .hljs-symbol,.light .hljs-bullet,.light .hljs-link,.light .hljs-meta,.light .hljs-selector-id,.light .hljs-title{color:#4078f2}.light .hljs-built_in,.light .hljs-title.class_,.light .hljs-class .hljs-title{color:#c18401}.light .hljs-emphasis{font-style:italic}.light .hljs-strong{font-weight:700}.light .hljs-link{text-decoration:underline}.light blockquote{background:#eee;color:#111}.light code{background:#eee;color:#000}.light .search-container{background:rgba(0,0,0,.1)}.light .search-close-button svg{fill:red}.light .search-container .wrapper{background:#eee}.light .search-result-c{color:#aaa}.light .search-box-c svg{fill:#333}.light .search-input{background:#f7f7f7;color:#111}.light .search-result-item{background:#f7f7f7}.light .search-result-item:hover{background:#e9e9e9}.light .search-result-item:active{background:#f7f7f7}.light .search-result-item-title{color:#111}.light .search-result-item-p{color:#aaa}.light .mobile-menu-icon-container .icon-button{background:#e5e5e5}.light .mobile-sidebar-container{background:#fff}.light .mobile-sidebar-wrapper{background:#f7f7f7}
|
|
1
|
+
@font-face{font-family:"heading";src:url(../fonts/WorkSans-Bold.ttf)format("truetype");font-display:swap}@font-face{font-family:"body";src:url(../fonts/OpenSans-Regular.ttf)format("truetype");font-display:swap}@font-face{font-family:"code";src:url(../fonts/Inconsolata-Regular.ttf)format("truetype");font-display:swap}*{box-sizing:border-box;margin:0;padding:0}html,body{min-height:100%;width:100%;line-height:1.75}body{font-family:"body";overflow-x:hidden;position:relative}b{font-family:heading}h1,h2,h3,h4,h5,h6{font-family:"heading";font-weight:400;line-height:1.75}h1{font-size:3.5rem;margin:0}h2{font-size:2.25rem;margin:2rem 0 0}h3{font-size:1.5rem}h4{font-size:1.25rem}h5{font-size:1rem}h6{font-size:1rem}img{max-width:100%}a{text-decoration:none}a:hover{text-decoration:underline}a img{margin-right:.5rem}p{margin:1rem 0}article ul{list-style:none}article ul li,article ol li{padding:.5rem 0}article ol,article ul{padding-left:3rem}article ol p,article ul p{margin:0}.variation{display:none}.signature-attributes{font-style:italic;font-weight:lighter}.ancestors a{text-decoration:none}.important{font-weight:700}.yes-def{text-indent:-1000px}.signature{font-family:"code"}.name{font-family:"code";font-weight:700}blockquote{font-size:.875rem;padding:.0625rem 1.25rem;border-radius:1rem}.details{border-radius:1rem;margin:1rem 0}.details .details-item-container{display:flex;padding:1rem 2rem}dt{font-family:heading}.details dt{float:left;min-width:180px;padding:0 10px}.details ul{margin:0}.details ul{list-style-type:none}.details ul li{display:inline-block;margin-right:10px;padding:0;word-break:break-word}.details ul li::before{content:"";margin:0}.details ul li p{margin:0}.details pre.prettyprint{margin:0}.details .object-value{padding-top:0}.description{margin-bottom:32px}.method-member-container table{margin-top:15px}.pre-div .hljs-ln{margin:0}.code-caption{font-size:.875rem}.prettyprint{font-size:.875rem;overflow:auto}pre.prettyprint{margin-top:3rem}.prettyprint.source{width:inherit}.prettyprint code{display:block;font-size:1rem;line-height:1.75;padding:0 0 1rem}h4.name{margin-top:.5rem}.params,.props,table{border-collapse:separate;border-spacing:0 .5rem;border-radius:.5rem;font-size:.875rem;margin:0;width:100%}table td:first-child,.params td:first-child,table thead th:first-child,.params thead th:first-child,.props thead th:first-child{border-top-left-radius:1rem;border-bottom-left-radius:1rem}table td:last-child,.params td:last-child,table thead th:last-child,.params thead th:last-child,.props thead th:last-child{border-top-right-radius:1rem;border-bottom-right-radius:1rem}table th,.params th{position:sticky;top:0}.params .name,.props .name,.name code{font-family:"code";font-size:1rem}.params td,.params th,.props td,.props th,th,td{display:table-cell;margin:0;padding:1rem 2rem;text-align:left;vertical-align:top}.params thead tr,.props thead tr{font-weight:700}.params .params thead tr,.props .props thead tr{font-weight:700}.params td.description>p:first-child,.props td.description>p:first-child{margin-top:0;padding-top:0}.params td.description>p:last-child,.props td.description>p:last-child{margin-bottom:0;padding-bottom:0}dl.param-type{margin-bottom:1rem;padding-bottom:1rem}.param-type dt,.param-type dd{display:inline-block}.param-type dd{font-family:"code";font-size:1rem}code{border-radius:.3rem;font-family:"code";font-size:1rem;padding:.1rem .4rem}.mt-20{margin-top:1.5rem}.codepen-form{bottom:0;position:absolute;right:.6125rem}.body-wrapper{display:flex;flex-direction:column;height:100vh;position:relative}.sidebar-container{position:fixed;display:flex;padding:1rem;top:0;bottom:0;left:0;width:25rem;z-index:10}.sidebar{border-radius:1rem;flex:1;padding:1.5rem 0;overflow:hidden;display:flex;flex-direction:column}.sidebar-title{margin:0;padding:0 2rem;text-decoration:none;font-size:1.5rem;font-family:heading}.sidebar-title:hover{text-decoration:none}.sidebar-items-container{margin-top:5rem;overflow:auto;flex:1;position:relative}.sidebar-section-title{padding:.5rem 2rem;font-family:heading;font-size:1.25rem;border-radius:1rem}.with-arrow{align-items:center;cursor:pointer;display:flex}.with-arrow div{flex:1}.with-arrow svg{height:1rem;width:1rem;transition:transform .3s}.with-arrow[data-isopen=true] svg{transform:rotate(180deg)}.sidebar-section-children-container{border-radius:.5rem;overflow:hidden}.sidebar-section-children a{display:block;width:100%;padding:.25rem 2rem}.sidebar-section-children a{text-decoration:none}.with-arrow[data-isopen=false]+.sidebar-section-children-container{height:0;overflow:hidden}.with-arrow[data-isopen=true]+.sidebar-section-children-container{height:auto}.toc-container{position:fixed;top:0;right:4rem;bottom:0;width:16rem;z-index:10}.toc-content{padding-top:10rem;display:flex;flex-direction:column;height:100%}#toc{margin:2rem 0;flex:1;overflow:auto}.toc-list{padding-left:1rem;list-style:none}.toc-link{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.toc-link.is-active-link{font-family:heading}.has-anchor{position:relative}.link-anchor{padding:0 .5rem}.has-anchor .link-anchor{position:absolute;left:0;transform:translateX(-100%);text-decoration:none;visibility:hidden}.has-anchor:hover .link-anchor{visibility:visible}.navbar-container{position:fixed;z-index:10;top:0;left:25rem;right:25rem;height:7rem;padding-top:1rem;display:flex;justify-content:center}.navbar{display:flex;padding:1rem 4rem 1rem 2rem;flex:1;max-width:60rem}.navbar-left-items{display:flex;flex:1}.navbar-right-items{display:flex}.icon-button svg{height:1rem;width:1rem}.icon-button{background:0 0;position:relative;display:inline-flex;border:0;padding:.5rem;border-radius:50%;cursor:pointer;transition:background .3s}.navbar-right-item{display:flex;justify-content:center;align-items:center;margin:0 .25rem}.navbar-item{border-radius:.5rem;overflow:hidden}.navbar-item a{display:inline-block;padding:1rem 2rem;text-decoration:none;transition:.3s}.font-size-tooltip{display:flex;align-items:center;margin:0-.5rem}.font-size-tooltip .icon-button.disabled{pointer-events:none}.main-content{position:relative;flex:1;overflow:auto;display:flex;flex-direction:column;align-items:center;padding:7rem 25rem 0}.main-wrapper{width:100%;max-width:60rem;padding:0 4rem 1rem}.p-h-n{padding:.4rem 1rem}.footer{width:100%;margin:5rem 0 0 0;border-radius:1rem;font-size:.875rem;display:flex;justify-content:center}.source-page+.footer{margin-top:3rem}.footer .wrapper{flex:1;padding:1rem 2rem;max-width:70rem}pre{position:relative}.hljs table td{background:0 0;padding:0 .6125rem;line-height:1.5;border-radius:0}.hljs .hljs-ln-numbers{width:2rem;white-space:nowrap;user-select:none;padding-left:1.5rem}.pre-div{position:relative;border-radius:1rem;overflow:hidden;margin:2rem 0}.pre-top-bar-container{align-items:center;display:flex;justify-content:space-between;left:0;padding:.3125rem 1.5rem;position:absolute;right:0;top:0;z-index:1}.code-copy-icon-container{align-items:center;border-radius:50%;cursor:pointer;display:flex;height:1.875rem;justify-content:center;transition:.3s;width:1.875rem}.code-copy-icon-container>div{margin-top:.25rem;position:relative}.sm-icon{height:1rem;width:1rem}.code-lang-name{font-family:"body";font-size:.75rem}.tooltip{border-radius:.3125rem;opacity:0;padding:.1875rem .5rem;position:absolute;right:2rem;top:.3125rem;transform:scale(0);transition:.3s}.show-tooltip{opacity:1;transform:scale(1)}.allow-overflow{overflow:auto}.bold{font-family:heading}.search-container{position:fixed;top:0;bottom:0;right:0;left:0;justify-content:center;z-index:50;align-items:flex-start}.search-container .wrapper{width:100%;max-width:60rem;padding:4rem 2rem 2rem;border-radius:1rem;margin:3rem 25rem;position:relative}.search-close-button{position:absolute;top:1rem;right:1rem}.search-result-c{min-height:20rem;max-height:40rem;overflow:auto;padding:2rem 0}.search-box-c{width:100%;position:relative;display:flex;align-items:center}.search-box-c svg{height:1.5rem;width:1.5rem;position:absolute;left:1.5rem}.search-input{border:0;border-radius:1rem;width:100%;flex:1;padding:1rem 2rem 1rem 4rem;font-family:body;font-size:1.25rem}.search-result-item{display:block;text-decoration:none;padding:1rem;border-radius:1rem;margin:1rem 0}.search-result-item:hover{text-decoration:none}.search-result-item:active{text-decoration:none}.search-result-item-title{font-family:heading;font-size:1.5rem}.search-result-item-p{font-size:.875rem}.mobile-menu-icon-container{display:none;position:fixed;bottom:1.5rem;right:2rem;z-index:30}.mobile-menu-icon-container .icon-button svg{height:2rem;width:2rem}.mobile-sidebar-container{position:fixed;top:0;right:0;left:0;bottom:0;padding:1rem;z-index:25;display:none}.mobile-sidebar-container.show{display:block}.mobile-sidebar-wrapper{border-radius:1rem;height:100%;width:100%;display:flex;flex-direction:column;padding-top:2rem}.mobile-nav-links{display:flex;flex-wrap:wrap;padding-top:2rem}.mobile-sidebar-items-c{flex:1;overflow:auto}.mobile-navbar-actions{display:flex;padding:1rem}@media screen and (max-width:100em){.toc-container{display:none}.main-content{padding:7rem 0 0 25rem}.search-container .wrapper{margin-right:1rem}.navbar-container{right:1rem}}@media screen and (min-width:65em){.mobile-sidebar-container.show{display:none}}@media screen and (max-width:65em){h1{font-size:3rem}h2{font-size:2rem}h3{font-size:1.875}h4,h5,h6{font-size:1rem}.main-wrapper{padding:0 1rem 1rem}.search-result-c{max-height:25rem}.mobile-menu-icon-container{display:block}.sidebar-container{display:none}.search-container .wrapper{margin-left:1rem}.main-content{padding-left:0;padding-top:1rem}.navbar-container{display:none}.source-page+.footer,.footer{margin-top:2rem}.has-anchor:hover .link-anchor{visibility:hidden}}.rel{position:relative}.icon-button.codepen-button svg{height:1.5rem;width:1.5rem}.table-div{width:100%;overflow:auto}::-webkit-scrollbar{width:.3125rem;height:.3125rem}::-webkit-scrollbar-thumb,::-webkit-scrollbar-track{border-radius:1rem}::selection{background:#ffce76;color:#222}body{background-color:#1a1a1a;color:#fff}a,a:active{color:#0bf}h1,h2,h3,h4,h5,h6{color:#fff}.sidebar{background-color:#222;color:#999}.sidebar-title{color:#999}.sidebar-section-title{color:#999}.sidebar-section-title:hover{background:#252525}.with-arrow{fill:#999}.sidebar-section-children-container{background:#292929}.sidebar-section-children a:hover{background:#2c2c2c}.sidebar-section-children a{color:#fff}.navbar-container{background:#1a1a1a}.icon-button svg,.navbar-item a{color:#999;fill:#999}.font-size-tooltip .icon-button svg{fill:#fff}.font-size-tooltip .icon-button.disabled{background:#999}.icon-button:hover{background:#333}.icon-button:active{background:#444}.navbar-item a:active{color:#aaa;background-color:#222}.navbar-item:hover{background:#202020}.footer{background:#222;color:#999}.footer a{color:#999}.toc-link{color:#777;transition:color .3s;font-size:.875rem}.toc-link.is-active-link{color:#fff}.has-anchor .link-anchor{color:#555}.has-anchor .link-anchor:hover{color:#888}tt,code,kbd,samp{background:#333}.signature-attributes{color:#aaa}.ancestors{color:#999}.ancestors a{color:#999!important}.important{color:#950b02}.type-signature{color:#00918e}.name,.name a{color:#f7f7f7}.details{background:#222;color:#fff}.details a{color:#fff}.prettyprint{background:#222}.member-item-container strong,.method-member-container strong{color:#fff}.pre-top-bar-container{background:#292929}.prettyprint.source,.prettyprint code{background-color:#222;color:#c9d1d9}.pre-div{background-color:#222}.hljs .hljs-ln-numbers{color:#777}.hljs .selected{background:#444}.hljs .selected .hljs-ln-numbers{color:#eee}table .name,.params .name,.props .name,.name code{color:#fff}table td,.params td{background-color:#292929}table thead th,.params thead th,.props thead th{background-color:#222;color:#fff}table .params thead tr,.params .params thead tr,.props .props thead tr{background-color:#222;color:#fff}.disabled{color:#aaa}.code-lang-name{color:#ff8a00}.tooltip{background:#ffce76;color:#222}.hljs-comment{color:#8b949e}.hljs-doctag,.hljs-keyword,.hljs-template-tag,.hljs-variable.language_{color:#ff7b72}.hljs-template-variable,.hljs-type{color:#30ac7c}.hljs-meta,.hljs-string,.hljs-regexp{color:#a5d6ff}.hljs-title.class_,.hljs-title{color:#ffa657}.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable{color:#79c0ff}.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-code,.hljs-comment,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}blockquote{background:#222;color:#fff}.search-container{background:rgba(255,255,255,.1)}.icon-button.search-close-button svg{fill:#a00}.search-container .wrapper{background:#222}.search-result-c{color:#666}.search-box-c{fill:#333}.search-input{background:#333;color:#fff}.search-box-c svg{fill:#fff}.search-result-item{background:#333}.search-result-item:hover{background:#444}.search-result-item:active{background:#555}.search-result-item-title{color:#fff}.search-result-item-p{color:#aaa}.mobile-menu-icon-container .icon-button{background:#333}.mobile-sidebar-container{background:#1a1a1a}.mobile-sidebar-wrapper{background:#222}::-webkit-scrollbar-track{background:#333}::-webkit-scrollbar-thumb{background:#555;outline:.06125rem solid #555}.light ::selection{background:#ffce76;color:#1d1919}body.light{background-color:#fff;color:#111}.light a,.light a:active{color:#007bff}.light h1,.light h2,.light h3,.light h4,.light h5,.light h6{color:#111}.light .sidebar{background-color:#f7f7f7;color:#222}.light .sidebar-title{color:#222}.light .sidebar-section-title{color:#222}.light .sidebar-section-title:hover{background:#eee}.light .with-arrow{fill:#111}.light .sidebar-section-children-container{background:#eee}.light .sidebar-section-children a:hover{background:#e0e0e0}.light .sidebar-section-children a{color:#111}.light .navbar-container{background:#fff}.light .icon-button svg,.light .navbar-item a{color:#222;fill:#222}.light .tippy-box{background:#eee;color:#111}.light .tippy-arrow{color:#f1f1f1}.light .font-size-tooltip .icon-button svg{fill:#111}.light .font-size-tooltip .icon-button.disabled svg{fill:#999}.light .icon-button:hover{background:#ddd}.light .icon-button:active{background:#ccc}.light .navbar-item a:active{color:#333;background-color:#eee}.light .navbar-item:hover{background:#f7f7f7}.light .footer{background:#f7f7f7;color:#111}.light .footer a{color:#111}.light .toc-link{color:#999;transition:color .3s;font-size:.875rem}.light .toc-link.is-active-link{color:#111}.light .has-anchor .link-anchor{color:#ddd}.light .has-anchor .link-anchor:hover{color:#ccc}.light .signature-attributes{color:#aaa}.light .ancestors{color:#999}.light .ancestors a{color:#999!important}.light .important{color:#950b02}.light .type-signature{color:#00918e}.light .name,.light .name a{color:#293a80}.light .details{background:#f9f9f9;color:#101010}.light .details a{color:#111}.light .member-item-container strong,.light .method-member-container strong{color:#000}.light .prettyprint{background:#f7f7f7}.light .pre-div{background:#f7f7f7}.light .hljs .hljs-ln-numbers{color:#aaa}.light .hljs .selected{background:#ccc}.light table.hljs-ln td{background:0 0}.light .hljs .selected .hljs-ln-numbers{color:#444}.light .pre-top-bar-container{background-color:#eee}.light .prettyprint code{background-color:#f7f7f7}.light table .name,.light .params .name,.light .props .name,.light .name code{color:#4d4e53}.light table td,.light .params td{background:#f7f7f7}.light table thead th,.light .params thead th,.light .props thead th{background-color:#eee;color:#111}.light table .params thead tr,.light .params .params thead tr,.light .props .props thead tr{background-color:#eee;color:#111}.light .disabled{color:#454545}.light .code-lang-name{color:red}.light .tooltip{background:#ffce76;color:#000}.light .hljs-comment,.light .hljs-quote{color:#a0a1a7}.light .hljs-doctag,.light .hljs-keyword,.light .hljs-formula{color:#a626a4}.light .hljs-section,.light .hljs-name,.light .hljs-selector-tag,.light .hljs-deletion,.light .hljs-subst{color:#e45649}.light .hljs-literal{color:#0184bb}.light .hljs-string,.light .hljs-regexp,.light .hljs-addition,.light .hljs-attribute,.light .hljs-meta .hljs-string{color:#50a14f}.light .hljs-attr,.light .hljs-variable,.light .hljs-template-variable,.light .hljs-type,.light .hljs-selector-class,.light .hljs-selector-attr,.light .hljs-selector-pseudo,.light .hljs-number{color:#986801}.light .hljs-symbol,.light .hljs-bullet,.light .hljs-link,.light .hljs-meta,.light .hljs-selector-id,.light .hljs-title{color:#4078f2}.light .hljs-built_in,.light .hljs-title.class_,.light .hljs-class .hljs-title{color:#c18401}.light .hljs-emphasis{font-style:italic}.light .hljs-strong{font-weight:700}.light .hljs-link{text-decoration:underline}.light blockquote{background:#eee;color:#111}.light code{background:#ddd;color:#000}.light .search-container{background:rgba(0,0,0,.1)}.light .search-close-button svg{fill:red}.light .search-container .wrapper{background:#eee}.light .search-result-c{color:#aaa}.light .search-box-c svg{fill:#333}.light .search-input{background:#f7f7f7;color:#111}.light .search-result-item{background:#f7f7f7}.light .search-result-item:hover{background:#e9e9e9}.light .search-result-item:active{background:#f7f7f7}.light .search-result-item-title{color:#111}.light .search-result-item-p{color:#aaa}.light .mobile-menu-icon-container .icon-button{background:#e5e5e5}.light .mobile-sidebar-container{background:#fff}.light .mobile-sidebar-wrapper{background:#f7f7f7}.light ::-webkit-scrollbar-track{background:#ddd}.light ::-webkit-scrollbar-thumb{background:#aaa;outline:.06125rem solid #aaa}
|
package/tmpl/container.tmpl
CHANGED
|
@@ -67,20 +67,20 @@
|
|
|
67
67
|
<?js= self.partial('details.tmpl', doc) ?>
|
|
68
68
|
|
|
69
69
|
<?js if (doc.examples && doc.examples.length) { ?>
|
|
70
|
-
<
|
|
70
|
+
<h2 id="example" class="has-anchor">Example<?js= doc.examples.length > 1? 's':'' ?></h2>
|
|
71
71
|
<?js= self.partial('examples.tmpl', doc.examples) ?>
|
|
72
72
|
<?js } ?>
|
|
73
73
|
<?js } ?>
|
|
74
74
|
</div>
|
|
75
75
|
|
|
76
76
|
<?js if (doc.augments && doc.augments.length) { ?>
|
|
77
|
-
<
|
|
77
|
+
<h2 id="Extends" class="subsection-title has-anchor">Extends</h2>
|
|
78
78
|
|
|
79
79
|
<?js= self.partial('augments.tmpl', doc) ?>
|
|
80
80
|
<?js } ?>
|
|
81
81
|
|
|
82
82
|
<?js if (doc.requires && doc.requires.length) { ?>
|
|
83
|
-
<
|
|
83
|
+
<h2 id="requires" class="subsection-title has-anchor">Requires</h2>
|
|
84
84
|
|
|
85
85
|
<ul><?js doc.requires.forEach(function(r) { ?>
|
|
86
86
|
<li><?js= self.linkto(r, r) ?></li>
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
var classes = self.find({kind: 'class', memberof: doc.longname, inherited: {'!is': self.excludeInherited}});
|
|
92
92
|
if (!isGlobalPage && classes && classes.length) {
|
|
93
93
|
?>
|
|
94
|
-
<
|
|
94
|
+
<h2 id="classes" class="subsection-title has-anchor">Classes</h2>
|
|
95
95
|
|
|
96
96
|
<dl><?js classes.forEach(function(c) { ?>
|
|
97
97
|
<dt><?js= self.linkto(c.longname, c.name) ?></dt>
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
var mixins = self.find({kind: 'mixin', memberof: doc.longname, inherited: {'!is': self.excludeInherited}});
|
|
104
104
|
if (!isGlobalPage && mixins && mixins.length) {
|
|
105
105
|
?>
|
|
106
|
-
<
|
|
106
|
+
<h2 id="mixins" class="subsection-title has-anchor">Mixins</h2>
|
|
107
107
|
|
|
108
108
|
<dl><?js mixins.forEach(function(m) { ?>
|
|
109
109
|
<dt><?js= self.linkto(m.longname, m.name) ?></dt>
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
var namespaces = self.find({kind: 'namespace', memberof: doc.longname, inherited: {'!is': self.excludeInherited}});
|
|
116
116
|
if (!isGlobalPage && namespaces && namespaces.length) {
|
|
117
117
|
?>
|
|
118
|
-
<
|
|
118
|
+
<h2 id="namespaces" class="subsection-title has-anchor">Namespaces</h2>
|
|
119
119
|
|
|
120
120
|
<dl><?js namespaces.forEach(function(n) { ?>
|
|
121
121
|
<dt><?js= self.linkto(n.longname, n.name) ?></dt>
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
}
|
|
135
135
|
if (members && members.length && members.forEach) {
|
|
136
136
|
?>
|
|
137
|
-
<
|
|
137
|
+
<h2 id="members" class="subsection-title has-anchor">Members</h2>
|
|
138
138
|
|
|
139
139
|
<?js members.forEach(function(p) { ?>
|
|
140
140
|
<?js= self.partial('members.tmpl', p) ?>
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
var methods = self.find({kind: 'function', memberof: isGlobalPage ? {isUndefined: true} : doc.longname, inherited: {'!is': self.excludeInherited}});
|
|
146
146
|
if (methods && methods.length && methods.forEach) {
|
|
147
147
|
?>
|
|
148
|
-
<
|
|
148
|
+
<h2 id="methods" class="subsection-title has-anchor">Methods</h2>
|
|
149
149
|
|
|
150
150
|
<?js methods.forEach(function(m) { ?>
|
|
151
151
|
<?js= self.partial('method.tmpl', m) ?>
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
var typedefs = self.find({kind: 'typedef', memberof: isGlobalPage ? {isUndefined: true} : doc.longname, inherited: {'!is': self.excludeInherited}});
|
|
157
157
|
if (typedefs && typedefs.length && typedefs.forEach) {
|
|
158
158
|
?>
|
|
159
|
-
<
|
|
159
|
+
<h2 id="type-definitions" class="subsection-title has-anchor">Type Definitions</h2>
|
|
160
160
|
|
|
161
161
|
<?js typedefs.forEach(function(e) {
|
|
162
162
|
if (e.signature) {
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
var events = self.find({kind: 'event', memberof: isGlobalPage ? {isUndefined: true} : doc.longname, inherited: {'!is': self.excludeInherited}});
|
|
177
177
|
if (events && events.length && events.forEach) {
|
|
178
178
|
?>
|
|
179
|
-
<
|
|
179
|
+
<h2 id="events" class="subsection-title has-anchor">Events</h2>
|
|
180
180
|
|
|
181
181
|
<?js events.forEach(function(e) { ?>
|
|
182
182
|
<?js= self.partial('method.tmpl', e) ?>
|
package/tmpl/details.tmpl
CHANGED
|
@@ -44,7 +44,7 @@ for(; loopVar < detailsKeys.length; loopVar += 1) {
|
|
|
44
44
|
if (properties && properties.length && properties.forEach) {
|
|
45
45
|
?>
|
|
46
46
|
|
|
47
|
-
<
|
|
47
|
+
<b class="subsection-title">Properties</b>
|
|
48
48
|
|
|
49
49
|
<?js= this.partial('properties.tmpl', data) ?>
|
|
50
50
|
|
package/tmpl/examples.tmpl
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
?>
|
|
31
31
|
<form action="https://codepen.io/pen/define" method="POST" target="_blank" class="codepen-form">
|
|
32
32
|
<input type="hidden" name="data" value='{"title": "<?js= example.caption || 'Example' ?>", "js": <?js= jsonString ?>, <?js= optionsString ?> }' />
|
|
33
|
-
<button class="icon-button codepen-button" type="submit" value="Create New Pen with Prefilled Data">
|
|
33
|
+
<button class="icon-button codepen-button" type="submit" value="Create New Pen with Prefilled Data" aria-label='open in codepen'>
|
|
34
34
|
<svg><use xlink:href="#codepen-icon"></use></svg>
|
|
35
35
|
</button>
|
|
36
36
|
</form>
|
package/tmpl/layout.tmpl
CHANGED
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
55
55
|
<![endif]-->
|
|
56
56
|
|
|
57
|
-
<script src="scripts/third-party/hljs.js"></script>
|
|
58
|
-
<script src="scripts/third-party/hljs-line-num.js"></script>
|
|
59
|
-
<script src="scripts/third-party/popper.js"></script>
|
|
60
|
-
<script src="scripts/third-party/tippy.js"></script>
|
|
57
|
+
<script src="scripts/third-party/hljs.js" defer></script>
|
|
58
|
+
<script src="scripts/third-party/hljs-line-num.js" defer></script>
|
|
59
|
+
<script src="scripts/third-party/popper.js" defer></script>
|
|
60
|
+
<script src="scripts/third-party/tippy.js" defer></script>
|
|
61
61
|
<script src="scripts/third-party/tocbot.js"></script>
|
|
62
62
|
|
|
63
63
|
<script>
|
|
@@ -117,8 +117,8 @@
|
|
|
117
117
|
<script type="text/javascript" src="scripts/core.min.js"></script>
|
|
118
118
|
|
|
119
119
|
<?js if(this.navbar.search !== 'false') { ?>
|
|
120
|
-
<script src="scripts/search.min.js"></script>
|
|
121
|
-
<script src="scripts/third-party/fuse.js"></script>
|
|
120
|
+
<script src="scripts/search.min.js" defer></script>
|
|
121
|
+
<script src="scripts/third-party/fuse.js" defer></script>
|
|
122
122
|
<?js } ?>
|
|
123
123
|
|
|
124
124
|
<?js if(this.dynamicScript != undefined ) { ?>
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
tocbot.init({
|
|
133
133
|
tocSelector: '#toc',
|
|
134
134
|
contentSelector: '.main-content',
|
|
135
|
-
headingSelector: 'h1, h2, h3
|
|
135
|
+
headingSelector: 'h1, h2, h3',
|
|
136
136
|
hasInnerContainers: true,
|
|
137
137
|
scrollContainer: '.main-content',
|
|
138
138
|
headingsOffset: 130,
|
package/tmpl/members.tmpl
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
var data = obj;
|
|
3
3
|
var self = this;
|
|
4
4
|
?>
|
|
5
|
-
<
|
|
5
|
+
<h3 class="name has-anchor" id="<?js= id ?>">
|
|
6
6
|
<?js= data.attribs + name + (data.signature ? data.signature : '') ?>
|
|
7
|
-
</
|
|
7
|
+
</h3>
|
|
8
8
|
|
|
9
9
|
<?js if (data.summary) { ?>
|
|
10
10
|
<p class="summary"><?js= summary ?></p>
|
|
@@ -30,13 +30,13 @@ var self = this;
|
|
|
30
30
|
<?js= this.partial('details.tmpl', data) ?>
|
|
31
31
|
|
|
32
32
|
<?js if (data.fires && fires.length) { ?>
|
|
33
|
-
<
|
|
33
|
+
<b>Fires:</b>
|
|
34
34
|
<ul><?js fires.forEach(function(f) { ?>
|
|
35
35
|
<li><?js= self.linkto(f) ?></li>
|
|
36
36
|
<?js }); ?></ul>
|
|
37
37
|
<?js } ?>
|
|
38
38
|
|
|
39
39
|
<?js if (data.examples && examples.length) { ?>
|
|
40
|
-
<
|
|
40
|
+
<b>Example<?js= examples.length > 1? 's':'' ?></b>
|
|
41
41
|
<?js= this.partial('examples.tmpl', examples) ?>
|
|
42
42
|
<?js } ?>
|
package/tmpl/method.tmpl
CHANGED
|
@@ -7,9 +7,9 @@ var self = this;
|
|
|
7
7
|
<h2 id="constructor" class="has-anchor">Constructor</h2>
|
|
8
8
|
<?js } ?>
|
|
9
9
|
|
|
10
|
-
<
|
|
10
|
+
<h3 class="name has-anchor" id="<?js= id ?>">
|
|
11
11
|
<?js= data.attribs + (kind === 'class' ? 'new ' : '') + name + (data.signature || '') ?>
|
|
12
|
-
</
|
|
12
|
+
</h3>
|
|
13
13
|
|
|
14
14
|
<?js if (data.summary) { ?>
|
|
15
15
|
<p class="summary"><?js= summary ?></p>
|
package/tmpl/mobile-sidebar.tmpl
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div class="mobile-menu-icon-container">
|
|
2
|
-
<button class="icon-button" id="mobile-menu" data-isopen="false">
|
|
2
|
+
<button class="icon-button" id="mobile-menu" data-isopen="false" aria-label="menu">
|
|
3
3
|
<svg><use xlink:href="#menu-icon"></use></svg>
|
|
4
4
|
</button>
|
|
5
5
|
</div>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<div class="mobile-sidebar-wrapper">
|
|
9
9
|
<?js= this.partial('sidebar-title.tmpl') ?>
|
|
10
10
|
<div class="mobile-nav-links">
|
|
11
|
-
<?js= this.partial('navbar-menu.tmpl') ?>
|
|
11
|
+
<?js= this.partial('navbar-menu.tmpl', '-mobile') ?>
|
|
12
12
|
</div>
|
|
13
13
|
<div class="mobile-sidebar-items-c">
|
|
14
14
|
<?js= this.partial('sidebar-items.tmpl') ?>
|
package/tmpl/navbar-actions.tmpl
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
var data = this.navbar
|
|
3
3
|
if(data.search) { ?>
|
|
4
4
|
<div class="navbar-right-item">
|
|
5
|
-
<button class="icon-button search-button">
|
|
5
|
+
<button class="icon-button search-button" aria-label='open-search'>
|
|
6
6
|
<svg><use xlink:href="#search-icon"></use></svg>
|
|
7
7
|
</button>
|
|
8
8
|
</div>
|
|
9
9
|
<?js } ?>
|
|
10
|
-
<div class="navbar-right-item"
|
|
11
|
-
<button class="icon-button theme-toggle">
|
|
10
|
+
<div class="navbar-right-item">
|
|
11
|
+
<button class="icon-button theme-toggle" aria-label='toggle-theme'>
|
|
12
12
|
<svg><use class="theme-svg-use" xlink:href="#<?js= (this.theme === 'dark' ? 'light' : 'dark') ?>-theme-icon"></use></svg>
|
|
13
13
|
</button>
|
|
14
14
|
</div>
|
|
15
|
-
<div class="navbar-right-item"
|
|
16
|
-
<button class="icon-button font-size">
|
|
15
|
+
<div class="navbar-right-item">
|
|
16
|
+
<button class="icon-button font-size" aria-label='change-font-size'>
|
|
17
17
|
<svg><use xlink:href="#font-size-icon"></use></svg>
|
|
18
18
|
</button>
|
|
19
19
|
</div>
|
package/tmpl/navbar-menu.tmpl
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<?js
|
|
2
2
|
var data = this.navbar
|
|
3
|
+
var idSuffix = obj || ''
|
|
3
4
|
if(data.menu) { ?>
|
|
4
5
|
<?js
|
|
5
6
|
data.menu.forEach(function(item) {
|
|
@@ -7,6 +8,9 @@
|
|
|
7
8
|
var id = item.id || '';
|
|
8
9
|
var target = item.target || '';
|
|
9
10
|
className += ' navbar-item'
|
|
11
|
+
if(id) {
|
|
12
|
+
id += idSuffix
|
|
13
|
+
}
|
|
10
14
|
?>
|
|
11
15
|
|
|
12
16
|
<div class="<?js=className ?>">
|
package/tmpl/search.tmpl
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div class="search-container" id="search-container" style="display: none">
|
|
2
2
|
<div class="wrapper" id="search-wrapper">
|
|
3
|
-
<button class="icon-button search-close-button" id="search-close-button">
|
|
3
|
+
<button class="icon-button search-close-button" id="search-close-button" aria-label='close search'>
|
|
4
4
|
<svg>
|
|
5
5
|
<use xlink:href="#close-icon"></use>
|
|
6
6
|
</svg>
|