clean-jsdoc-theme 3.3.2 → 4.0.0

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