clean-jsdoc-theme 3.3.3 → 4.0.2

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