clean-jsdoc-theme 3.3.4 → 4.0.3

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.
Files changed (86) hide show
  1. package/.eslintignore +4 -4
  2. package/.eslintrc.js +3 -3
  3. package/.github/ISSUE_TEMPLATE/bug_report.md +43 -43
  4. package/.github/ISSUE_TEMPLATE/feature_request.md +27 -27
  5. package/.github/pull_request_template.md +16 -16
  6. package/.github/workflows/{codeql-analysis.yml → codeql.yml} +72 -67
  7. package/.github/workflows/greetings.yml +16 -0
  8. package/.prettierignore +2 -2
  9. package/.prettierrc +5 -5
  10. package/.stylelintignore +3 -3
  11. package/.stylelintrc +23 -23
  12. package/.travis.yml +30 -30
  13. package/CHANGELOG.md +232 -216
  14. package/CODE_OF_CONDUCT.md +76 -76
  15. package/CODE_OF_CONDUCT_HINDI.md +46 -46
  16. package/CONTRIBUTING.md +24 -24
  17. package/LICENSE +21 -21
  18. package/README.md +441 -546
  19. package/SECURITY.md +21 -21
  20. package/helpers/down-arrow.js +9 -9
  21. package/jsdoc-config.json +62 -60
  22. package/minify.js +52 -0
  23. package/package.json +50 -46
  24. package/publish.js +1131 -1197
  25. package/static/fonts/Inconsolata-Regular.ttf +0 -0
  26. package/static/fonts/OpenSans-Regular.ttf +0 -0
  27. package/static/fonts/WorkSans-Bold.ttf +0 -0
  28. package/static/scripts/core.js +576 -0
  29. package/static/scripts/core.min.js +23 -0
  30. package/static/scripts/resize.js +90 -85
  31. package/static/scripts/search.js +244 -77
  32. package/static/scripts/search.min.js +11 -0
  33. package/static/scripts/third-party/Apache-License-2.0.txt +202 -202
  34. package/static/scripts/third-party/fuse.js +8 -8
  35. package/static/scripts/third-party/hljs-line-num.js +1 -0
  36. package/static/scripts/third-party/hljs-original.js +5162 -0
  37. package/static/scripts/third-party/hljs.js +1 -0
  38. package/static/scripts/third-party/popper.js +6 -0
  39. package/static/scripts/third-party/tippy.js +2 -0
  40. package/static/scripts/third-party/tocbot.js +1 -0
  41. package/static/styles/clean-jsdoc-theme-base.css +959 -393
  42. package/static/styles/clean-jsdoc-theme-dark.css +407 -324
  43. package/static/styles/clean-jsdoc-theme-light.css +388 -319
  44. package/static/styles/clean-jsdoc-theme.min.css +1 -0
  45. package/tmpl/augments.tmpl +10 -10
  46. package/tmpl/container.tmpl +190 -189
  47. package/tmpl/details.tmpl +208 -208
  48. package/tmpl/example.tmpl +3 -3
  49. package/tmpl/examples.tmpl +40 -38
  50. package/tmpl/exceptions.tmpl +32 -32
  51. package/tmpl/icons.tmpl +72 -34
  52. package/tmpl/layout.tmpl +146 -165
  53. package/tmpl/mainpage.tmpl +10 -10
  54. package/tmpl/members.tmpl +42 -43
  55. package/tmpl/method.tmpl +139 -140
  56. package/tmpl/mobile-sidebar.tmpl +21 -0
  57. package/tmpl/navbar-actions.tmpl +19 -0
  58. package/tmpl/navbar-menu.tmpl +25 -0
  59. package/tmpl/navbar.tmpl +14 -0
  60. package/tmpl/params.tmpl +124 -124
  61. package/tmpl/properties.tmpl +109 -109
  62. package/tmpl/returns.tmpl +18 -18
  63. package/tmpl/search.tmpl +17 -0
  64. package/tmpl/sidebar-items.tmpl +24 -0
  65. package/tmpl/sidebar-title.tmpl +10 -0
  66. package/tmpl/sidebar.tmpl +9 -0
  67. package/tmpl/source.tmpl +12 -7
  68. package/tmpl/toc.tmpl +4 -0
  69. package/tmpl/tutorial.tmpl +19 -19
  70. package/tmpl/type.tmpl +6 -6
  71. package/helpers/navbarBuilder.js +0 -0
  72. package/static/fonts/MavenPro-Regular.ttf +0 -0
  73. package/static/fonts/Montserrat-Regular.ttf +0 -0
  74. package/static/fonts/Muli-Black.ttf +0 -0
  75. package/static/fonts/OFL-hind.txt +0 -93
  76. package/static/fonts/OFL-montserrat.txt +0 -93
  77. package/static/scripts/fix-code-block.js +0 -53
  78. package/static/scripts/fix-navbar.js +0 -25
  79. package/static/scripts/linenumber.js +0 -25
  80. package/static/scripts/misc.js +0 -217
  81. package/static/scripts/third-party/lang-css.js +0 -2
  82. package/static/scripts/third-party/prettify.js +0 -28
  83. package/static/styles/reset.css +0 -351
  84. package/static/styles/third-party/ionicons.min.css +0 -11
  85. package/static/styles/third-party/prettify-jsdoc.css +0 -111
  86. package/static/styles/third-party/prettify-tomorrow.css +0 -5
@@ -1,393 +1,959 @@
1
- @font-face {
2
- font-family: 'heading';
3
- src: url('../fonts/Muli-Black.ttf') format('truetype');
4
- }
5
-
6
- @font-face {
7
- font-family: 'body';
8
- src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
9
- }
10
-
11
- @font-face {
12
- font-family: 'code';
13
- src: url('../fonts/MavenPro-Regular.ttf') format('truetype');
14
- }
15
-
16
- /*
17
- * Padding horizontal normal
18
- */
19
-
20
- .p-h-n {
21
- padding: 0.4rem 1rem;
22
- }
23
-
24
- .main-content {
25
- /**
26
- * This should match with the width of the nav / sidebar.
27
- */
28
- margin-left: 18.75rem;
29
- overflow-x: auto;
30
- padding: 1rem 2rem;
31
- }
32
-
33
- .navbar {
34
- bottom: 0;
35
- left: 0;
36
- overflow: hidden;
37
- position: fixed;
38
- top: 0;
39
- width: 18.75rem;
40
- z-index: 10;
41
-
42
- }
43
-
44
- .navbar-ham {
45
- bottom: 1rem;
46
- cursor: pointer;
47
- display: none;
48
- height: 2.5rem;
49
- padding-top: 0.2rem;
50
- position: fixed;
51
- right: 1rem;
52
- width: 3rem;
53
- z-index: 100;
54
- }
55
-
56
- .navbar-ham .first,
57
- .navbar-ham .second,
58
- .navbar-ham .third {
59
- height: 0.125rem;
60
- left: 0.5rem;
61
- position: absolute;
62
- transition: 0.3s;
63
- width: 2rem;
64
- }
65
-
66
- .navbar-ham div {
67
- height: 2.1rem;
68
- overflow: hidden;
69
- position: relative;
70
- width: 3rem;
71
- }
72
-
73
- .navbar-ham .first {
74
- top: 0.5rem;
75
- }
76
-
77
- .navbar-ham .second {
78
- top: 1rem;
79
- }
80
-
81
- .navbar-ham .third {
82
- top: 1.5rem;
83
- }
84
-
85
- .navbar-ham.expanded .first {
86
- transform: rotate(45deg) translate(0.3125rem, 0.3125rem);
87
- }
88
-
89
- .navbar-ham.expanded .second {
90
- transform: translateX(200%);
91
- }
92
-
93
- .navbar-ham.expanded .third {
94
- transform: rotate(135deg) translate(-0.4rem, 0.3125rem);
95
- }
96
-
97
- .navbar-resize {
98
- bottom: 0;
99
- cursor: col-resize;
100
- display: none;
101
- left: auto;
102
- position: absolute;
103
- right: 0;
104
- top: 0;
105
- width: 0.5rem;
106
- }
107
-
108
- .navbar:hover .navbar-resize {
109
- display: block;
110
- }
111
-
112
- .resize-dots-container {
113
- align-items: center;
114
- display: flex;
115
- flex-direction: column;
116
- height: 100%;
117
- justify-content: center;
118
- position: relative;
119
- }
120
-
121
- .resize-dots-container .dots {
122
- border-radius: 50%;
123
- height: 0.25rem;
124
- margin: 0.125rem 0;
125
- width: 0.25rem;
126
- }
127
-
128
-
129
- .footer {
130
- font-size: 0.8rem;
131
- margin-left: 18.75rem;
132
- margin-top: 1rem;
133
- padding: 1rem 2rem;
134
- }
135
-
136
- .navbar h1,
137
- .navbar h2,
138
- .navbar h3,
139
- .navbar h4,
140
- .navbar h5,
141
- .navbar h6 {
142
- border: 0;
143
- margin: 0;
144
- padding: 0;
145
- }
146
-
147
- .navbar-heading {
148
- display: flex;
149
- justify-content: flex-start;
150
- padding: 2rem 1rem;
151
- }
152
-
153
- .navbar-heading a:hover {
154
- text-decoration: none;
155
- }
156
-
157
- .navbar-heading-text {
158
- font-size: 1.8rem;
159
- }
160
-
161
- .search-box {
162
- margin-bottom: 1rem;
163
- padding: 0 1rem;
164
- position: relative;
165
- }
166
-
167
- .search-box-input-container {
168
- align-items: center;
169
- display: flex;
170
- padding: 0.5rem 1rem;
171
- }
172
-
173
- .search-icon {
174
- height: 1rem;
175
- width: 1rem;
176
-
177
- }
178
-
179
- .search-box-input {
180
- background-color: transparent;
181
- border: 0;
182
- display: inline-block;
183
- font-family: 'body';
184
- font-size: 1rem;
185
- margin-right: 0.5rem;
186
- outline: 0;
187
- width: 100%;
188
- }
189
-
190
- .search-item-container {
191
- left: 0;
192
- position: absolute;
193
- right: 0;
194
- /**
195
- * height of search container.
196
- */
197
- top: 2.3125rem;
198
- z-index: 10;
199
- }
200
-
201
- .search-item-ul {
202
- list-style: none;
203
- margin: 0 1rem;
204
- max-height: 18.75rem;
205
- overflow: auto;
206
- }
207
-
208
- .search-item-ul li {
209
- display: flex;
210
- }
211
-
212
- .search-item-ul a {
213
- flex: 1;
214
- font-size: 0.8rem;
215
- padding: 0.4rem 1rem;
216
- }
217
-
218
- .sidebar-main-content {
219
- margin: 1rem;
220
- overflow: auto;
221
- }
222
-
223
- .accordion {
224
- margin: 1rem 0;
225
- }
226
-
227
-
228
- .accordion-heading {
229
- cursor: pointer;
230
- display: flex;
231
- justify-content: space-between;
232
- padding-right: 1rem;
233
- }
234
-
235
- .accordion-heading svg {
236
- height: 1rem;
237
- width: 1rem;
238
- }
239
-
240
- .accordion-content {
241
- list-style: none;
242
- margin: 1rem 0;
243
- overflow: hidden;
244
- padding: 0;
245
- transition: 0.3s;
246
- }
247
-
248
- .accordion.collapsed .accordion-content {
249
- height: 0;
250
- margin: 0;
251
- }
252
-
253
- .accordion svg {
254
- transition: 0.3s;
255
- }
256
-
257
- .accordion.collapsed svg {
258
- transform: rotate(180deg);
259
- }
260
-
261
- .accordion-list {
262
- margin: 0.5rem 1rem;
263
- }
264
-
265
- .accordion-heading.child {
266
- padding: 0.5rem 1rem;
267
-
268
- }
269
-
270
- .accordion [data-type=method] {
271
- margin: 0.5rem 1rem;
272
- }
273
-
274
-
275
- .accordion.child {
276
- margin: 0;
277
- padding: 0;
278
- }
279
-
280
- .methods.accordion-content {
281
- margin: 0;
282
- }
283
-
284
-
285
- .menu-li {
286
- margin: 1rem 0;
287
- }
288
-
289
-
290
- pre {
291
- position: relative;
292
- }
293
-
294
- .pre-top-bar-container {
295
- align-items: center;
296
- display: flex;
297
- justify-content: space-between;
298
- left: 0;
299
- padding: 0.3125rem 1.5rem;
300
- position: absolute;
301
- right: 0;
302
- top: 0;
303
- }
304
-
305
- .code-copy-icon-container {
306
- align-items: center;
307
- border-radius: 50%;
308
- cursor: pointer;
309
- display: flex;
310
- height: 1.875rem;
311
- justify-content: center;
312
- transition: 0.3s;
313
- width: 1.875rem;
314
- }
315
-
316
- .code-copy-icon-container > div {
317
- margin-top: 0.25rem;
318
- position: relative;
319
- }
320
-
321
- .sm-icon {
322
- height: 1rem;
323
- width: 1rem;
324
- }
325
-
326
- .code-lang-name {
327
- font-family: 'code';
328
- font-size: 12px;
329
- }
330
-
331
- .tooltip {
332
- border-radius: 5px;
333
- opacity: 0;
334
- padding: 3px 8px;
335
- position: absolute;
336
- right: 30px;
337
- top: -2px;
338
- transform: scale(0);
339
- transition: 0.3s;
340
- }
341
-
342
- .show-tooltip {
343
- opacity: 1;
344
- transform: scale(1);
345
- }
346
-
347
- blockquote {
348
- font-size: 0.875rem;
349
- padding: 0.0625rem 1.25rem;
350
- }
351
-
352
- .allow-overflow {
353
- overflow: auto;
354
- }
355
-
356
-
357
-
358
- @media screen and (max-width: 50rem) {
359
-
360
- .navbar-ham {
361
- display: block;
362
- }
363
-
364
- .navbar {
365
- transition: 0.3s;
366
- width: 0 !important;
367
- }
368
-
369
- .navbar.expanded {
370
- right: 0;
371
- width: 100% !important;
372
- }
373
-
374
- .navbar:hover .navbar-resize,
375
- .navbar-resize {
376
- display: none;
377
- }
378
-
379
- .main-content,
380
- .footer {
381
- margin-left: 0 !important;
382
- padding: 1rem;
383
- }
384
-
385
- .method-member-container {
386
- overflow: auto;
387
- }
388
-
389
- }
390
-
391
- .rel {
392
- position: relative;
393
- }
1
+ @font-face {
2
+ font-family: 'heading';
3
+ src: url('../fonts/WorkSans-Bold.ttf') format('truetype');
4
+ font-display: swap;
5
+ }
6
+
7
+ @font-face {
8
+ font-family: 'body';
9
+ src: url('../fonts/OpenSans-Regular.ttf') format('truetype');
10
+ font-display: swap;
11
+ }
12
+
13
+ @font-face {
14
+ font-family: 'code';
15
+ src: url('../fonts/Inconsolata-Regular.ttf') format('truetype');
16
+ font-display: swap;
17
+ }
18
+
19
+ * {
20
+ box-sizing: border-box;
21
+ margin: 0;
22
+ padding: 0;
23
+ }
24
+
25
+ html,
26
+ body {
27
+ min-height: 100%;
28
+ width: 100%;
29
+ line-height: 1.75;
30
+ }
31
+
32
+ body {
33
+ font-family: 'body';
34
+ overflow-x: hidden;
35
+ position: relative;
36
+ }
37
+
38
+ b {
39
+ font-family: heading;
40
+ }
41
+
42
+ h1,
43
+ h2,
44
+ h3,
45
+ h4,
46
+ h5,
47
+ h6 {
48
+ font-family: 'heading';
49
+ font-weight: normal;
50
+ line-height: 1.75;
51
+ }
52
+
53
+ h1 {
54
+ font-size: 3.5rem;
55
+ margin: 0;
56
+ }
57
+
58
+ h2 {
59
+ font-size: 2.25rem;
60
+ margin: 2rem 0 0;
61
+ }
62
+
63
+ h3 {
64
+ font-size: 1.5rem;
65
+ }
66
+
67
+ h4 {
68
+ font-size: 1.25rem;
69
+ }
70
+
71
+ h5 {
72
+ font-size: 1rem;
73
+ }
74
+
75
+ h6 {
76
+ font-size: 1rem;
77
+ }
78
+
79
+ img {
80
+ max-width: 100%;
81
+ }
82
+
83
+ a {
84
+ text-decoration: none;
85
+ }
86
+
87
+ a:hover {
88
+ text-decoration: underline;
89
+ }
90
+
91
+ /* badges */
92
+ a img {
93
+ margin-right: 0.5rem;
94
+ }
95
+
96
+ p {
97
+ margin: 1rem 0;
98
+ }
99
+
100
+ article ul {
101
+ list-style: none;
102
+ padding-left: 1rem;
103
+ }
104
+
105
+ article ul li::before {
106
+ content: '\2014\a0';
107
+ margin-right: 0.5rem;
108
+ }
109
+
110
+ article ul li,
111
+ article ol li {
112
+ padding: 0.5rem 0;
113
+ }
114
+
115
+ article ol {
116
+ padding-left: 1rem;
117
+ }
118
+
119
+ /* stylelint-disable-next-line */
120
+
121
+ .variation {
122
+ display: none;
123
+ }
124
+
125
+ .signature-attributes {
126
+ font-style: italic;
127
+ font-weight: lighter;
128
+ }
129
+
130
+ .ancestors a {
131
+ text-decoration: none;
132
+ }
133
+
134
+ .important {
135
+ font-weight: bold;
136
+ }
137
+
138
+ .yes-def {
139
+ text-indent: -1000px;
140
+ }
141
+
142
+ .signature {
143
+ font-family: 'code';
144
+ }
145
+
146
+ .name {
147
+ font-family: 'code';
148
+ font-weight: bold;
149
+ }
150
+
151
+ blockquote {
152
+ font-size: 0.875rem;
153
+ padding: 0.0625rem 1.25rem;
154
+ border-radius: 1rem;
155
+ }
156
+
157
+ .details {
158
+ border-radius: 1rem;
159
+ margin: 1rem 0;
160
+ }
161
+
162
+ .details .details-item-container {
163
+ display: flex;
164
+ padding: 1rem 2rem;
165
+ }
166
+
167
+ dt {
168
+ font-family: heading;
169
+ }
170
+
171
+ .details dt {
172
+ float: left;
173
+ min-width: 180px;
174
+ padding: 0 10px;
175
+ }
176
+
177
+ .details ul {
178
+ margin: 0;
179
+ }
180
+
181
+ .details ul {
182
+ list-style-type: none;
183
+ }
184
+
185
+ .details ul li {
186
+ display: inline-block;
187
+ margin-right: 10px;
188
+ padding: 0;
189
+ word-break: break-word;
190
+ }
191
+
192
+ .details ul li::before {
193
+ content: '';
194
+ margin: 0;
195
+ }
196
+
197
+ /* stylelint-disable-next-line */
198
+ .details ul li p {
199
+ margin: 0;
200
+ }
201
+
202
+ /* stylelint-disable */
203
+ .details pre.prettyprint {
204
+ margin: 0;
205
+ }
206
+ /* stylelint-enable */
207
+
208
+ .details .object-value {
209
+ padding-top: 0;
210
+ }
211
+
212
+ .description {
213
+ margin-bottom: 32px;
214
+ }
215
+
216
+ .method-member-container table {
217
+ margin-top: 15px;
218
+ }
219
+
220
+ .pre-div .hljs-ln {
221
+ margin: 0;
222
+ }
223
+
224
+ .code-caption {
225
+ font-size: 0.875rem;
226
+ }
227
+
228
+ .prettyprint {
229
+ font-size: 0.875rem;
230
+ overflow: auto;
231
+ }
232
+
233
+ pre.prettyprint {
234
+ margin-top: 3rem;
235
+ }
236
+
237
+ .prettyprint.source {
238
+ width: inherit;
239
+ }
240
+
241
+ .prettyprint code {
242
+ display: block;
243
+ font-size: 1rem;
244
+ line-height: 1.75;
245
+ padding: 0 0 1rem;
246
+ }
247
+
248
+ h4.name {
249
+ margin-top: 0.5rem;
250
+ }
251
+
252
+ .params,
253
+ .props,
254
+ table {
255
+ border-collapse: separate;
256
+ border-spacing: 0 0.5rem;
257
+ border-radius: 0.5rem;
258
+ font-size: 0.875rem;
259
+ margin: 0;
260
+ width: 100%;
261
+ }
262
+
263
+ table td:first-child,
264
+ .params td:first-child,
265
+ table thead th:first-child,
266
+ .params thead th:first-child,
267
+ .props thead th:first-child {
268
+ border-top-left-radius: 1rem;
269
+ border-bottom-left-radius: 1rem;
270
+ }
271
+
272
+ table td:last-child,
273
+ .params td:last-child,
274
+ table thead th:last-child,
275
+ .params thead th:last-child,
276
+ .props thead th:last-child {
277
+ border-top-right-radius: 1rem;
278
+ border-bottom-right-radius: 1rem;
279
+ }
280
+
281
+ table th,
282
+ .params th {
283
+ position: sticky;
284
+ top: 0;
285
+ }
286
+
287
+ .params .name,
288
+ .props .name,
289
+ .name code {
290
+ font-family: 'code';
291
+ font-size: 1rem;
292
+ }
293
+
294
+ .params td,
295
+ .params th,
296
+ .props td,
297
+ .props th,
298
+ th,
299
+ td {
300
+ display: table-cell;
301
+ margin: 0;
302
+ padding: 1rem 2rem;
303
+ text-align: left;
304
+ vertical-align: top;
305
+ }
306
+
307
+ .params thead tr,
308
+ .props thead tr {
309
+ font-weight: bold;
310
+ }
311
+
312
+ /* stylelint-disable */
313
+ .params .params thead tr,
314
+ .props .props thead tr {
315
+ font-weight: bold;
316
+ }
317
+
318
+ .params td.description > p:first-child,
319
+ .props td.description > p:first-child {
320
+ margin-top: 0;
321
+ padding-top: 0;
322
+ }
323
+
324
+ .params td.description > p:last-child,
325
+ .props td.description > p:last-child {
326
+ margin-bottom: 0;
327
+ padding-bottom: 0;
328
+ }
329
+
330
+ dl.param-type {
331
+ margin-bottom: 1rem;
332
+ padding-bottom: 1rem;
333
+ }
334
+
335
+ /* stylelint-enable */
336
+
337
+ .param-type dt,
338
+ .param-type dd {
339
+ display: inline-block;
340
+ }
341
+
342
+ .param-type dd {
343
+ font-family: 'code';
344
+ font-size: 1rem;
345
+ }
346
+
347
+ code {
348
+ border-radius: 0.3rem;
349
+ font-family: 'code';
350
+ font-size: 1rem;
351
+ padding: 0.1rem 0.4rem;
352
+ }
353
+
354
+ .mt-20 {
355
+ margin-top: 1.5rem;
356
+ }
357
+
358
+ .codepen-form {
359
+ bottom: 0;
360
+ position: absolute;
361
+ right: 0.6125rem;
362
+ }
363
+
364
+ .body-wrapper {
365
+ display: flex;
366
+ flex-direction: column;
367
+ height: 100vh;
368
+ position: relative;
369
+ }
370
+
371
+ .sidebar-container {
372
+ position: fixed;
373
+ display: flex;
374
+ padding: 1rem;
375
+ top: 0;
376
+ bottom: 0;
377
+ left: 0;
378
+ width: 25rem;
379
+ z-index: 10;
380
+ }
381
+
382
+ .sidebar {
383
+ border-radius: 1rem;
384
+ flex: 1;
385
+ padding: 1.5rem 0;
386
+ overflow: hidden;
387
+ display: flex;
388
+ flex-direction: column;
389
+ }
390
+
391
+ .sidebar-title {
392
+ margin: 0;
393
+ padding: 0 2rem;
394
+ text-decoration: none;
395
+ font-size: 1.5rem;
396
+ font-family: heading;
397
+ }
398
+
399
+ .sidebar-title:hover {
400
+ text-decoration: none;
401
+ }
402
+
403
+ .sidebar-items-container {
404
+ margin-top: 5rem;
405
+ overflow: auto;
406
+ flex: 1;
407
+ position: relative;
408
+ }
409
+
410
+ .sidebar-section-title {
411
+ padding: 0.5rem 2rem;
412
+ font-family: heading;
413
+ font-size: 1.25rem;
414
+ border-radius: 1rem;
415
+ }
416
+
417
+ .with-arrow {
418
+ align-items: center;
419
+ cursor: pointer;
420
+ display: flex;
421
+ }
422
+
423
+ .with-arrow div {
424
+ flex: 1;
425
+ }
426
+
427
+ .with-arrow svg {
428
+ height: 1rem;
429
+ width: 1rem;
430
+ transition: transform 0.3s;
431
+ }
432
+
433
+ .with-arrow[data-isopen='true'] svg {
434
+ transform: rotate(180deg);
435
+ }
436
+
437
+ .sidebar-section-children-container {
438
+ border-radius: 0.5rem;
439
+ overflow: hidden;
440
+ }
441
+
442
+ .sidebar-section-children a {
443
+ display: block;
444
+ width: 100%;
445
+ padding: 0.25rem 2rem;
446
+ }
447
+
448
+ .sidebar-section-children a {
449
+ text-decoration: none;
450
+ }
451
+
452
+ .with-arrow[data-isopen='false'] + .sidebar-section-children-container {
453
+ height: 0;
454
+ overflow: hidden;
455
+ }
456
+
457
+ .with-arrow[data-isopen='true'] + .sidebar-section-children-container {
458
+ height: auto;
459
+ }
460
+
461
+ .toc-container {
462
+ position: fixed;
463
+ top: 0;
464
+ right: 4rem;
465
+ bottom: 0;
466
+ width: 16rem;
467
+ z-index: 10;
468
+ }
469
+
470
+ .toc-content {
471
+ padding-top: 10rem;
472
+ display: flex;
473
+ flex-direction: column;
474
+ height: 100%;
475
+ }
476
+
477
+ #toc {
478
+ margin: 2rem 0;
479
+ flex: 1;
480
+ overflow: auto;
481
+ }
482
+
483
+ .toc-list {
484
+ padding-left: 1rem;
485
+ list-style: none;
486
+ }
487
+
488
+ .toc-link {
489
+ display: block;
490
+ white-space: nowrap;
491
+ overflow: hidden;
492
+ text-overflow: ellipsis;
493
+ width: 100%;
494
+ }
495
+
496
+ .toc-link.is-active-link {
497
+ font-family: heading;
498
+ }
499
+
500
+ .has-anchor {
501
+ position: relative;
502
+ }
503
+
504
+ .link-anchor {
505
+ padding: 0 0.5rem;
506
+ }
507
+
508
+ .has-anchor .link-anchor {
509
+ position: absolute;
510
+ left: 0;
511
+ transform: translateX(-100%);
512
+ text-decoration: none;
513
+ visibility: hidden;
514
+ }
515
+
516
+ .has-anchor:hover .link-anchor {
517
+ visibility: visible;
518
+ }
519
+
520
+ .navbar-container {
521
+ position: fixed;
522
+ z-index: 10;
523
+ top: 0;
524
+ left: 25rem;
525
+ right: 25rem;
526
+ height: 7rem;
527
+ padding-top: 1rem;
528
+ display: flex;
529
+ justify-content: center;
530
+ }
531
+
532
+ .navbar {
533
+ display: flex;
534
+ padding: 1rem 4rem 1rem 2rem;
535
+ flex: 1;
536
+ max-width: 60rem;
537
+ }
538
+
539
+ .navbar-left-items {
540
+ display: flex;
541
+ flex: 1;
542
+ }
543
+
544
+ .navbar-right-items {
545
+ display: flex;
546
+ }
547
+
548
+ .icon-button svg {
549
+ height: 1rem;
550
+ width: 1rem;
551
+ }
552
+
553
+ .icon-button {
554
+ background: transparent;
555
+ position: relative;
556
+ display: inline-flex;
557
+ border: 0;
558
+ padding: 0.5rem;
559
+ border-radius: 50%;
560
+ cursor: pointer;
561
+ transition: background 0.3s;
562
+ }
563
+
564
+ .navbar-right-item {
565
+ display: flex;
566
+ justify-content: center;
567
+ align-items: center;
568
+ margin: 0 0.25rem;
569
+ }
570
+
571
+ .navbar-item {
572
+ border-radius: 0.5rem;
573
+ overflow: hidden;
574
+ }
575
+
576
+ .navbar-item a {
577
+ display: inline-block;
578
+ padding: 1rem 2rem;
579
+ text-decoration: none;
580
+ transition: 0.3s;
581
+ }
582
+
583
+ .font-size-tooltip {
584
+ display: flex;
585
+ align-items: center;
586
+ margin: 0 -0.5rem;
587
+ }
588
+
589
+ .font-size-tooltip .icon-button.disabled {
590
+ pointer-events: none;
591
+ }
592
+
593
+ .main-content {
594
+ position: relative;
595
+ flex: 1;
596
+ overflow: auto;
597
+ display: flex;
598
+ flex-direction: column;
599
+ align-items: center;
600
+ padding: 7rem 25rem 0;
601
+ }
602
+
603
+ .main-wrapper {
604
+ width: 100%;
605
+ max-width: 60rem;
606
+ padding: 0 4rem 1rem;
607
+ }
608
+
609
+ .p-h-n {
610
+ padding: 0.4rem 1rem;
611
+ }
612
+
613
+ .footer {
614
+ width: 100%;
615
+ margin: 5rem 0 0 0;
616
+ border-radius: 1rem;
617
+ font-size: 0.875rem;
618
+ display: flex;
619
+ justify-content: center;
620
+ }
621
+
622
+ .source-page + .footer {
623
+ margin-top: 3rem;
624
+ }
625
+
626
+ .footer .wrapper {
627
+ flex: 1;
628
+ padding: 1rem 2rem;
629
+ max-width: 70rem;
630
+ }
631
+
632
+ pre {
633
+ position: relative;
634
+ }
635
+
636
+ .hljs table td {
637
+ background: transparent;
638
+ padding: 0 0.6125rem;
639
+ line-height: 1.5;
640
+ border-radius: 0;
641
+ }
642
+
643
+ .hljs .hljs-ln-numbers {
644
+ width: 2rem;
645
+ white-space: nowrap;
646
+ user-select: none;
647
+ padding-left: 1.5rem;
648
+ }
649
+
650
+ .pre-div {
651
+ position: relative;
652
+ border-radius: 1rem;
653
+ overflow: hidden;
654
+ margin: 2rem 0;
655
+ }
656
+
657
+ .pre-top-bar-container {
658
+ align-items: center;
659
+ display: flex;
660
+ justify-content: space-between;
661
+ left: 0;
662
+ padding: 0.3125rem 1.5rem;
663
+ position: absolute;
664
+ right: 0;
665
+ top: 0;
666
+ z-index: 1;
667
+ }
668
+
669
+ .code-copy-icon-container {
670
+ align-items: center;
671
+ border-radius: 50%;
672
+ cursor: pointer;
673
+ display: flex;
674
+ height: 1.875rem;
675
+ justify-content: center;
676
+ transition: 0.3s;
677
+ width: 1.875rem;
678
+ }
679
+
680
+ .code-copy-icon-container > div {
681
+ margin-top: 0.25rem;
682
+ position: relative;
683
+ }
684
+
685
+ .sm-icon {
686
+ height: 1rem;
687
+ width: 1rem;
688
+ }
689
+
690
+ .code-lang-name {
691
+ font-family: 'body';
692
+ font-size: 0.75rem;
693
+ }
694
+
695
+ .tooltip {
696
+ border-radius: 0.3125rem;
697
+ opacity: 0;
698
+ padding: 0.1875rem 0.5rem;
699
+ position: absolute;
700
+ right: 2rem;
701
+ top: 0.3125rem;
702
+ transform: scale(0);
703
+ transition: 0.3s;
704
+ }
705
+
706
+ .show-tooltip {
707
+ opacity: 1;
708
+ transform: scale(1);
709
+ }
710
+
711
+ .allow-overflow {
712
+ overflow: auto;
713
+ }
714
+
715
+ .bold {
716
+ font-family: heading;
717
+ }
718
+
719
+ .search-container {
720
+ position: fixed;
721
+ top: 0;
722
+ bottom: 0;
723
+ right: 0;
724
+ left: 0;
725
+ justify-content: center;
726
+ z-index: 50;
727
+ align-items: flex-start;
728
+ }
729
+
730
+ .search-container .wrapper {
731
+ width: 100%;
732
+ max-width: 60rem;
733
+ padding: 4rem 2rem 2rem;
734
+ border-radius: 1rem;
735
+ margin: 3rem 25rem;
736
+ position: relative;
737
+ }
738
+
739
+ .search-close-button {
740
+ position: absolute;
741
+ top: 1rem;
742
+ right: 1rem;
743
+ }
744
+
745
+ .search-result-c {
746
+ min-height: 20rem;
747
+ max-height: 40rem;
748
+ overflow: auto;
749
+ padding: 2rem 0;
750
+ }
751
+
752
+ .search-box-c {
753
+ width: 100%;
754
+ position: relative;
755
+ display: flex;
756
+ align-items: center;
757
+ }
758
+
759
+ .search-box-c svg {
760
+ height: 1.5rem;
761
+ width: 1.5rem;
762
+ position: absolute;
763
+ left: 1.5rem;
764
+ }
765
+
766
+ .search-input {
767
+ border: none;
768
+ border-radius: 1rem;
769
+ width: 100%;
770
+ flex: 1;
771
+ padding: 1rem 2rem 1rem 4rem;
772
+ font-family: body;
773
+ font-size: 1.25rem;
774
+ }
775
+
776
+ .search-result-item {
777
+ display: block;
778
+ text-decoration: none;
779
+ padding: 1rem;
780
+ border-radius: 1rem;
781
+ margin: 1rem 0;
782
+ }
783
+
784
+ .search-result-item:hover {
785
+ text-decoration: none;
786
+ }
787
+
788
+ .search-result-item:active {
789
+ text-decoration: none;
790
+ }
791
+
792
+ .search-result-item-title {
793
+ font-family: heading;
794
+ font-size: 1.5rem;
795
+ }
796
+
797
+ .search-result-item-p {
798
+ font-size: 0.875rem;
799
+ }
800
+
801
+ .mobile-menu-icon-container {
802
+ display: none;
803
+ position: fixed;
804
+ bottom: 1.5rem;
805
+ right: 2rem;
806
+ z-index: 30;
807
+ }
808
+
809
+ .mobile-menu-icon-container .icon-button svg {
810
+ height: 2rem;
811
+ width: 2rem;
812
+ }
813
+
814
+ .mobile-sidebar-container {
815
+ position: fixed;
816
+ top: 0;
817
+ right: 0;
818
+ left: 0;
819
+ bottom: 0;
820
+ padding: 1rem;
821
+ z-index: 25;
822
+
823
+ display: none;
824
+ }
825
+
826
+ .mobile-sidebar-container.show {
827
+ display: block;
828
+ }
829
+
830
+ .mobile-sidebar-wrapper {
831
+ border-radius: 1rem;
832
+ height: 100%;
833
+ width: 100%;
834
+ display: flex;
835
+ flex-direction: column;
836
+ padding-top: 2rem;
837
+ }
838
+
839
+ .mobile-nav-links {
840
+ display: flex;
841
+ flex-wrap: wrap;
842
+ padding-top: 2rem;
843
+ }
844
+
845
+ .mobile-sidebar-items-c {
846
+ flex: 1;
847
+ overflow: auto;
848
+ }
849
+
850
+ .mobile-navbar-actions {
851
+ display: flex;
852
+ padding: 1rem;
853
+ }
854
+
855
+ @media screen and (max-width: 100em) {
856
+ .toc-container {
857
+ display: none;
858
+ }
859
+
860
+ .main-content {
861
+ padding: 7rem 0 0 25rem;
862
+ }
863
+
864
+ .search-container .wrapper {
865
+ margin-right: 1rem;
866
+ }
867
+
868
+ .navbar-container {
869
+ /* For scrollbar */
870
+ right: 1rem;
871
+ }
872
+ }
873
+
874
+ @media screen and (min-width: 65em) {
875
+ .mobile-sidebar-container.show {
876
+ display: none;
877
+ }
878
+ }
879
+
880
+ @media screen and (max-width: 65em) {
881
+ h1 {
882
+ font-size: 3rem;
883
+ }
884
+
885
+ h2 {
886
+ font-size: 2rem;
887
+ }
888
+
889
+ h3 {
890
+ font-size: 1.875;
891
+ }
892
+
893
+ h4,
894
+ h5,
895
+ h6 {
896
+ font-size: 1rem;
897
+ }
898
+
899
+ .main-wrapper {
900
+ padding: 0 1rem 1rem;
901
+ }
902
+
903
+ .search-result-c {
904
+ max-height: 25rem;
905
+ }
906
+ .mobile-menu-icon-container {
907
+ display: block;
908
+ }
909
+
910
+ .sidebar-container {
911
+ display: none;
912
+ }
913
+ .search-container .wrapper {
914
+ margin-left: 1rem;
915
+ }
916
+
917
+ .main-content {
918
+ padding-left: 0;
919
+ padding-top: 1rem;
920
+ }
921
+
922
+ .navbar-container {
923
+ display: none;
924
+ }
925
+
926
+ .source-page + .footer,
927
+ .footer {
928
+ margin-top: 2rem;
929
+ }
930
+
931
+ .has-anchor:hover .link-anchor {
932
+ visibility: hidden;
933
+ }
934
+ }
935
+
936
+ .rel {
937
+ position: relative;
938
+ }
939
+
940
+ .icon-button.codepen-button svg {
941
+ height: 1.5rem;
942
+ width: 1.5rem;
943
+ }
944
+
945
+ .table-div {
946
+ width: 100%;
947
+ overflow: auto;
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
+ }