@cobaltio/cobalt-js 8.5.4 → 8.7.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.
@@ -1,14 +1,33 @@
1
1
  @layer typedoc {
2
+ :root {
3
+ --dim-toolbar-contents-height: 2.5rem;
4
+ --dim-toolbar-border-bottom-width: 1px;
5
+ --dim-header-height: calc(
6
+ var(--dim-toolbar-border-bottom-width) +
7
+ var(--dim-toolbar-contents-height)
8
+ );
9
+
10
+ /* 0rem For mobile; unit is required for calculation in `calc` */
11
+ --dim-container-main-margin-y: 0rem;
12
+
13
+ --dim-footer-height: 3.5rem;
14
+
15
+ --modal-animation-duration: 0.2s;
16
+ }
17
+
2
18
  :root {
3
19
  /* Light */
4
20
  --light-color-background: #f2f4f8;
5
21
  --light-color-background-secondary: #eff0f1;
6
- --light-color-warning-text: #222;
22
+ /* Not to be confused with [:active](https://developer.mozilla.org/en-US/docs/Web/CSS/:active) */
23
+ --light-color-background-active: #d6d8da;
7
24
  --light-color-background-warning: #e6e600;
25
+ --light-color-warning-text: #222;
8
26
  --light-color-accent: #c5c7c9;
9
- --light-color-active-menu-item: var(--light-color-accent);
27
+ --light-color-active-menu-item: var(--light-color-background-active);
10
28
  --light-color-text: #222;
11
- --light-color-text-aside: #6e6e6e;
29
+ --light-color-contrast-text: #000;
30
+ --light-color-text-aside: #5e5e5e;
12
31
 
13
32
  --light-color-icon-background: var(--light-color-background);
14
33
  --light-color-icon-text: var(--light-color-text);
@@ -56,15 +75,20 @@
56
75
 
57
76
  --light-external-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' width='10' height='10'><path fill-opacity='0' stroke='%23000' stroke-width='10' d='m43,35H5v60h60V57M45,5v10l10,10-30,30 20,20 30-30 10,10h10V5z'/></svg>");
58
77
  --light-color-scheme: light;
78
+ }
59
79
 
80
+ :root {
60
81
  /* Dark */
61
82
  --dark-color-background: #2b2e33;
62
83
  --dark-color-background-secondary: #1e2024;
84
+ /* Not to be confused with [:active](https://developer.mozilla.org/en-US/docs/Web/CSS/:active) */
85
+ --dark-color-background-active: #5d5d6a;
63
86
  --dark-color-background-warning: #bebe00;
64
87
  --dark-color-warning-text: #222;
65
88
  --dark-color-accent: #9096a2;
66
- --dark-color-active-menu-item: #5d5d6a;
89
+ --dark-color-active-menu-item: var(--dark-color-background-active);
67
90
  --dark-color-text: #f5f5f5;
91
+ --dark-color-contrast-text: #ffffff;
68
92
  --dark-color-text-aside: #dddddd;
69
93
 
70
94
  --dark-color-icon-background: var(--dark-color-background-secondary);
@@ -119,11 +143,13 @@
119
143
  --color-background-secondary: var(
120
144
  --light-color-background-secondary
121
145
  );
146
+ --color-background-active: var(--light-color-background-active);
122
147
  --color-background-warning: var(--light-color-background-warning);
123
148
  --color-warning-text: var(--light-color-warning-text);
124
149
  --color-accent: var(--light-color-accent);
125
150
  --color-active-menu-item: var(--light-color-active-menu-item);
126
151
  --color-text: var(--light-color-text);
152
+ --color-contrast-text: var(--light-color-contrast-text);
127
153
  --color-text-aside: var(--light-color-text-aside);
128
154
 
129
155
  --color-icon-background: var(--light-color-icon-background);
@@ -179,11 +205,13 @@
179
205
  --color-background-secondary: var(
180
206
  --dark-color-background-secondary
181
207
  );
208
+ --color-background-active: var(--dark-color-background-active);
182
209
  --color-background-warning: var(--dark-color-background-warning);
183
210
  --color-warning-text: var(--dark-color-warning-text);
184
211
  --color-accent: var(--dark-color-accent);
185
212
  --color-active-menu-item: var(--dark-color-active-menu-item);
186
213
  --color-text: var(--dark-color-text);
214
+ --color-contrast-text: var(--dark-color-contrast-text);
187
215
  --color-text-aside: var(--dark-color-text-aside);
188
216
 
189
217
  --color-icon-background: var(--dark-color-icon-background);
@@ -233,23 +261,17 @@
233
261
  }
234
262
  }
235
263
 
236
- html {
237
- color-scheme: var(--color-scheme);
238
- }
239
-
240
- body {
241
- margin: 0;
242
- }
243
-
244
264
  :root[data-theme="light"] {
245
265
  --color-background: var(--light-color-background);
246
266
  --color-background-secondary: var(--light-color-background-secondary);
267
+ --color-background-active: var(--light-color-background-active);
247
268
  --color-background-warning: var(--light-color-background-warning);
248
269
  --color-warning-text: var(--light-color-warning-text);
249
270
  --color-icon-background: var(--light-color-icon-background);
250
271
  --color-accent: var(--light-color-accent);
251
272
  --color-active-menu-item: var(--light-color-active-menu-item);
252
273
  --color-text: var(--light-color-text);
274
+ --color-contrast-text: var(--light-color-contrast-text);
253
275
  --color-text-aside: var(--light-color-text-aside);
254
276
  --color-icon-text: var(--light-color-icon-text);
255
277
 
@@ -299,12 +321,14 @@
299
321
  :root[data-theme="dark"] {
300
322
  --color-background: var(--dark-color-background);
301
323
  --color-background-secondary: var(--dark-color-background-secondary);
324
+ --color-background-active: var(--dark-color-background-active);
302
325
  --color-background-warning: var(--dark-color-background-warning);
303
326
  --color-warning-text: var(--dark-color-warning-text);
304
327
  --color-icon-background: var(--dark-color-icon-background);
305
328
  --color-accent: var(--dark-color-accent);
306
329
  --color-active-menu-item: var(--dark-color-active-menu-item);
307
330
  --color-text: var(--dark-color-text);
331
+ --color-contrast-text: var(--dark-color-contrast-text);
308
332
  --color-text-aside: var(--dark-color-text-aside);
309
333
  --color-icon-text: var(--dark-color-icon-text);
310
334
 
@@ -351,6 +375,13 @@
351
375
  --color-scheme: var(--dark-color-scheme);
352
376
  }
353
377
 
378
+ html {
379
+ color-scheme: var(--color-scheme);
380
+ @media (prefers-reduced-motion: no-preference) {
381
+ scroll-behavior: smooth;
382
+ }
383
+ }
384
+
354
385
  *:focus-visible,
355
386
  .tsd-accordion-summary:focus-visible svg {
356
387
  outline: 2px solid var(--color-focus-outline);
@@ -421,16 +452,19 @@
421
452
  border-top: 1px solid var(--color-accent);
422
453
  padding-top: 1rem;
423
454
  padding-bottom: 1rem;
424
- max-height: 3.5rem;
455
+ max-height: var(--dim-footer-height);
425
456
  }
426
457
  footer > p {
427
458
  margin: 0 1em;
428
459
  }
429
460
 
430
461
  .container-main {
431
- margin: 0 auto;
462
+ margin: var(--dim-container-main-margin-y) auto;
432
463
  /* toolbar, footer, margin */
433
- min-height: calc(100vh - 41px - 56px - 4rem);
464
+ min-height: calc(
465
+ 100svh - var(--dim-header-height) - var(--dim-footer-height) -
466
+ 2 * var(--dim-container-main-margin-y)
467
+ );
434
468
  }
435
469
 
436
470
  @keyframes fade-in {
@@ -450,29 +484,6 @@
450
484
  opacity: 0;
451
485
  }
452
486
  }
453
- @keyframes fade-in-delayed {
454
- 0% {
455
- opacity: 0;
456
- }
457
- 33% {
458
- opacity: 0;
459
- }
460
- 100% {
461
- opacity: 1;
462
- }
463
- }
464
- @keyframes fade-out-delayed {
465
- 0% {
466
- opacity: 1;
467
- visibility: visible;
468
- }
469
- 66% {
470
- opacity: 0;
471
- }
472
- 100% {
473
- opacity: 0;
474
- }
475
- }
476
487
  @keyframes pop-in-from-right {
477
488
  from {
478
489
  transform: translate(100%, 0);
@@ -492,10 +503,19 @@
492
503
  }
493
504
  body {
494
505
  background: var(--color-background);
495
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
496
- Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
506
+ font-family:
507
+ -apple-system,
508
+ BlinkMacSystemFont,
509
+ "Segoe UI",
510
+ "Noto Sans",
511
+ Helvetica,
512
+ Arial,
513
+ sans-serif,
514
+ "Apple Color Emoji",
515
+ "Segoe UI Emoji";
497
516
  font-size: 16px;
498
517
  color: var(--color-text);
518
+ margin: 0;
499
519
  }
500
520
 
501
521
  a {
@@ -514,6 +534,9 @@
514
534
  a.tsd-anchor-link {
515
535
  color: var(--color-text);
516
536
  }
537
+ :target {
538
+ scroll-margin-block: calc(var(--dim-header-height) + 0.5rem);
539
+ }
517
540
 
518
541
  code,
519
542
  pre {
@@ -545,7 +568,8 @@
545
568
  box-sizing: border-box;
546
569
  }
547
570
  pre:hover > button,
548
- pre > button.visible {
571
+ pre > button.visible,
572
+ pre > button:focus-visible {
549
573
  opacity: 1;
550
574
  }
551
575
 
@@ -555,6 +579,52 @@
555
579
  border-left: 4px solid gray;
556
580
  }
557
581
 
582
+ img {
583
+ max-width: 100%;
584
+ }
585
+
586
+ * {
587
+ scrollbar-width: thin;
588
+ scrollbar-color: var(--color-accent) var(--color-icon-background);
589
+ }
590
+
591
+ *::-webkit-scrollbar {
592
+ width: 0.75rem;
593
+ }
594
+
595
+ *::-webkit-scrollbar-track {
596
+ background: var(--color-icon-background);
597
+ }
598
+
599
+ *::-webkit-scrollbar-thumb {
600
+ background-color: var(--color-accent);
601
+ border-radius: 999rem;
602
+ border: 0.25rem solid var(--color-icon-background);
603
+ }
604
+
605
+ dialog {
606
+ border: none;
607
+ outline: none;
608
+ padding: 0;
609
+ background-color: var(--color-background);
610
+ }
611
+ dialog::backdrop {
612
+ display: none;
613
+ }
614
+ #tsd-overlay {
615
+ background-color: rgba(0, 0, 0, 0.5);
616
+ position: fixed;
617
+ z-index: 9999;
618
+ top: 0;
619
+ left: 0;
620
+ right: 0;
621
+ bottom: 0;
622
+ animation: fade-in var(--modal-animation-duration) forwards;
623
+ }
624
+ #tsd-overlay.closing {
625
+ animation-name: fade-out;
626
+ }
627
+
558
628
  .tsd-typography {
559
629
  line-height: 1.333em;
560
630
  }
@@ -629,6 +699,7 @@
629
699
 
630
700
  .tsd-breadcrumb {
631
701
  margin: 0;
702
+ margin-top: 1rem;
632
703
  padding: 0;
633
704
  color: var(--color-text-aside);
634
705
  }
@@ -733,7 +804,7 @@
733
804
  margin-right: 0.5em;
734
805
  border-radius: 0.33em;
735
806
  /* Leaving this at full opacity breaks event listeners on Firefox.
736
- Don't remove unless you know what you're doing. */
807
+ Don't remove unless you know what you're doing. */
737
808
  opacity: 0.99;
738
809
  }
739
810
  .tsd-filter-input input[type="checkbox"]:focus-visible + svg {
@@ -876,7 +947,8 @@
876
947
  }
877
948
 
878
949
  .tsd-navigation.settings {
879
- margin: 1rem 0;
950
+ margin: 0;
951
+ margin-bottom: 1rem;
880
952
  }
881
953
  .tsd-navigation > a,
882
954
  .tsd-navigation .tsd-accordion-summary {
@@ -898,6 +970,7 @@
898
970
  .tsd-navigation a.current,
899
971
  .tsd-page-navigation a.current {
900
972
  background: var(--color-active-menu-item);
973
+ color: var(--color-contrast-text);
901
974
  }
902
975
  .tsd-navigation a:hover,
903
976
  .tsd-page-navigation a:hover {
@@ -931,14 +1004,14 @@
931
1004
  margin-left: -1.5rem;
932
1005
  }
933
1006
 
934
- .tsd-page-navigation-section {
935
- margin-left: 10px;
936
- }
937
1007
  .tsd-page-navigation-section > summary {
938
1008
  padding: 0.25rem;
939
1009
  }
1010
+ .tsd-page-navigation-section > summary > svg {
1011
+ margin-right: 0.25rem;
1012
+ }
940
1013
  .tsd-page-navigation-section > div {
941
- margin-left: 20px;
1014
+ margin-left: 30px;
942
1015
  }
943
1016
  .tsd-page-navigation ul {
944
1017
  padding-left: 1.75rem;
@@ -964,6 +1037,10 @@
964
1037
  .tsd-accordion-summary {
965
1038
  list-style-type: none; /* hide marker on non-safari */
966
1039
  outline: none; /* broken on safari, so just hide it */
1040
+ display: flex;
1041
+ align-items: center;
1042
+ gap: 0.25rem;
1043
+ box-sizing: border-box;
967
1044
  }
968
1045
  .tsd-accordion-summary::-webkit-details-marker {
969
1046
  display: none; /* hide marker on safari */
@@ -986,27 +1063,21 @@
986
1063
  padding-top: 0;
987
1064
  padding-bottom: 0;
988
1065
  }
989
- .tsd-accordion .tsd-accordion-summary > svg {
990
- margin-left: 0.25rem;
991
- vertical-align: text-top;
992
- }
993
1066
  /*
994
- We need to be careful to target the arrow indicating whether the accordion
995
- is open, but not any other SVGs included in the details element.
996
- */
997
- .tsd-accordion:not([open]) > .tsd-accordion-summary > svg:first-child,
998
- .tsd-accordion:not([open]) > .tsd-accordion-summary > h1 > svg:first-child,
999
- .tsd-accordion:not([open]) > .tsd-accordion-summary > h2 > svg:first-child,
1000
- .tsd-accordion:not([open]) > .tsd-accordion-summary > h3 > svg:first-child,
1001
- .tsd-accordion:not([open]) > .tsd-accordion-summary > h4 > svg:first-child {
1067
+ * We need to be careful to target the arrow indicating whether the accordion
1068
+ * is open, but not any other SVGs included in the details element.
1069
+ */
1070
+ .tsd-accordion:not([open]) > .tsd-accordion-summary > svg:first-child {
1002
1071
  transform: rotate(-90deg);
1003
1072
  }
1004
1073
  .tsd-index-content > :not(:first-child) {
1005
1074
  margin-top: 0.75rem;
1006
1075
  }
1007
- .tsd-index-heading {
1076
+ .tsd-index-summary {
1008
1077
  margin-top: 1.5rem;
1009
1078
  margin-bottom: 0.75rem;
1079
+ display: flex;
1080
+ align-content: center;
1010
1081
  }
1011
1082
 
1012
1083
  .tsd-no-select {
@@ -1061,117 +1132,104 @@
1061
1132
  margin-bottom: 1rem;
1062
1133
  }
1063
1134
 
1064
- #tsd-search {
1065
- transition: background-color 0.2s;
1135
+ #tsd-search[open] {
1136
+ animation: fade-in var(--modal-animation-duration) ease-out forwards;
1066
1137
  }
1067
- #tsd-search .title {
1068
- position: relative;
1069
- z-index: 2;
1138
+ #tsd-search[open].closing {
1139
+ animation-name: fade-out;
1070
1140
  }
1071
- #tsd-search .field {
1072
- position: absolute;
1073
- left: 0;
1074
- top: 0;
1075
- right: 2.5rem;
1076
- height: 100%;
1077
- }
1078
- #tsd-search .field input {
1141
+
1142
+ /* Avoid setting `display` on closed dialog */
1143
+ #tsd-search[open] {
1144
+ display: flex;
1145
+ flex-direction: column;
1146
+ padding: 1rem;
1147
+ width: 32rem;
1148
+ max-width: 90vw;
1149
+ max-height: calc(100vh - env(keyboard-inset-height, 0px) - 25vh);
1150
+ /* Anchor dialog to top */
1151
+ margin-top: 10vh;
1152
+ border-radius: 6px;
1153
+ will-change: max-height;
1154
+ }
1155
+ #tsd-search-input {
1079
1156
  box-sizing: border-box;
1080
- position: relative;
1081
- top: -50px;
1082
- z-index: 1;
1083
1157
  width: 100%;
1084
- padding: 0 10px;
1085
- opacity: 0;
1158
+ padding: 0 0.625rem; /* 10px */
1086
1159
  outline: 0;
1087
- border: 0;
1088
- background: transparent;
1160
+ border: 2px solid var(--color-accent);
1161
+ background-color: transparent;
1089
1162
  color: var(--color-text);
1163
+ border-radius: 4px;
1164
+ height: 2.5rem;
1165
+ flex: 0 0 auto;
1166
+ font-size: 0.875rem;
1167
+ transition: border-color 0.2s, background-color 0.2s;
1090
1168
  }
1091
- #tsd-search .field label {
1092
- position: absolute;
1093
- overflow: hidden;
1094
- right: -40px;
1169
+ #tsd-search-input:focus-visible {
1170
+ background-color: var(--color-background-active);
1171
+ border-color: transparent;
1172
+ color: var(--color-contrast-text);
1095
1173
  }
1096
- #tsd-search .field input,
1097
- #tsd-search .title,
1098
- #tsd-toolbar-links a {
1099
- transition: opacity 0.2s;
1174
+ #tsd-search-input::placeholder {
1175
+ color: inherit;
1176
+ opacity: 0.8;
1100
1177
  }
1101
- #tsd-search .results {
1102
- position: absolute;
1103
- visibility: hidden;
1104
- top: 40px;
1105
- width: 100%;
1178
+ #tsd-search-results {
1106
1179
  margin: 0;
1107
1180
  padding: 0;
1108
1181
  list-style: none;
1109
- box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
1182
+ flex: 1 1 auto;
1183
+ display: flex;
1184
+ flex-direction: column;
1185
+ overflow-y: auto;
1186
+ }
1187
+ #tsd-search-results:not(:empty) {
1188
+ margin-top: 0.5rem;
1110
1189
  }
1111
- #tsd-search .results li {
1190
+ #tsd-search-results > li {
1112
1191
  background-color: var(--color-background);
1113
- line-height: initial;
1114
- padding: 4px;
1192
+ line-height: 1.5;
1193
+ box-sizing: border-box;
1194
+ border-radius: 4px;
1115
1195
  }
1116
- #tsd-search .results li:nth-child(even) {
1196
+ #tsd-search-results > li:nth-child(even) {
1117
1197
  background-color: var(--color-background-secondary);
1118
1198
  }
1119
- #tsd-search .results li.state {
1120
- display: none;
1121
- }
1122
- #tsd-search .results li.current:not(.no-results),
1123
- #tsd-search .results li:hover:not(.no-results) {
1124
- background-color: var(--color-accent);
1199
+ #tsd-search-results > li:is(:hover, [aria-selected="true"]) {
1200
+ background-color: var(--color-background-active);
1201
+ color: var(--color-contrast-text);
1125
1202
  }
1126
- #tsd-search .results a {
1203
+ /* It's important that this takes full size of parent `li`, to capture a click on `li` */
1204
+ #tsd-search-results > li > a {
1127
1205
  display: flex;
1128
1206
  align-items: center;
1129
- padding: 0.25rem;
1207
+ padding: 0.5rem 0.25rem;
1130
1208
  box-sizing: border-box;
1209
+ width: 100%;
1131
1210
  }
1132
- #tsd-search .results a:before {
1133
- top: 10px;
1211
+ #tsd-search-results > li > a > .text {
1212
+ flex: 1 1 auto;
1213
+ min-width: 0;
1214
+ overflow-wrap: anywhere;
1134
1215
  }
1135
- #tsd-search .results span.parent {
1216
+ #tsd-search-results > li > a .parent {
1136
1217
  color: var(--color-text-aside);
1137
- font-weight: normal;
1138
- }
1139
- #tsd-search.has-focus {
1140
- background-color: var(--color-accent);
1141
- }
1142
- #tsd-search.has-focus .field input {
1143
- top: 0;
1144
- opacity: 1;
1145
- }
1146
- #tsd-search.has-focus .title,
1147
- #tsd-search.has-focus #tsd-toolbar-links a {
1148
- z-index: 0;
1149
- opacity: 0;
1150
- }
1151
- #tsd-search.has-focus .results {
1152
- visibility: visible;
1153
- }
1154
- #tsd-search.loading .results li.state.loading {
1155
- display: block;
1156
1218
  }
1157
- #tsd-search.failure .results li.state.failure {
1158
- display: block;
1159
- }
1160
-
1161
- #tsd-toolbar-links {
1162
- position: absolute;
1163
- top: 0;
1164
- right: 2rem;
1165
- height: 100%;
1166
- display: flex;
1167
- align-items: center;
1168
- justify-content: flex-end;
1219
+ #tsd-search-results > li > a mark {
1220
+ color: inherit;
1221
+ background-color: inherit;
1222
+ font-weight: bold;
1169
1223
  }
1170
- #tsd-toolbar-links a {
1171
- margin-left: 1.5rem;
1224
+ #tsd-search-status {
1225
+ flex: 1;
1226
+ display: grid;
1227
+ place-content: center;
1228
+ text-align: center;
1229
+ overflow-wrap: anywhere;
1172
1230
  }
1173
- #tsd-toolbar-links a:hover {
1174
- text-decoration: underline;
1231
+ #tsd-search-status:not(:empty) {
1232
+ min-height: 6rem;
1175
1233
  }
1176
1234
 
1177
1235
  .tsd-signature {
@@ -1256,78 +1314,52 @@
1256
1314
  width: 100%;
1257
1315
  color: var(--color-text);
1258
1316
  background: var(--color-background-secondary);
1259
- border-bottom: 1px var(--color-accent) solid;
1317
+ border-bottom: var(--dim-toolbar-border-bottom-width)
1318
+ var(--color-accent) solid;
1260
1319
  transition: transform 0.3s ease-in-out;
1261
1320
  }
1262
1321
  .tsd-page-toolbar a {
1263
1322
  color: var(--color-text);
1264
- text-decoration: none;
1265
- }
1266
- .tsd-page-toolbar a.title {
1267
- font-weight: bold;
1268
1323
  }
1269
- .tsd-page-toolbar a.title:hover {
1270
- text-decoration: underline;
1271
- }
1272
- .tsd-page-toolbar .tsd-toolbar-contents {
1324
+ .tsd-toolbar-contents {
1273
1325
  display: flex;
1274
- justify-content: space-between;
1275
- height: 2.5rem;
1326
+ align-items: center;
1327
+ height: var(--dim-toolbar-contents-height);
1276
1328
  margin: 0 auto;
1277
1329
  }
1278
- .tsd-page-toolbar .table-cell {
1279
- position: relative;
1280
- white-space: nowrap;
1281
- line-height: 40px;
1282
- }
1283
- .tsd-page-toolbar .table-cell:first-child {
1284
- width: 100%;
1330
+ .tsd-toolbar-contents > .title {
1331
+ font-weight: bold;
1332
+ margin-right: auto;
1285
1333
  }
1286
- .tsd-page-toolbar .tsd-toolbar-icon {
1287
- box-sizing: border-box;
1288
- line-height: 0;
1289
- padding: 12px 0;
1334
+ #tsd-toolbar-links {
1335
+ display: flex;
1336
+ align-items: center;
1337
+ gap: 1.5rem;
1338
+ margin-right: 1rem;
1290
1339
  }
1291
1340
 
1292
1341
  .tsd-widget {
1342
+ box-sizing: border-box;
1293
1343
  display: inline-block;
1294
- overflow: hidden;
1295
1344
  opacity: 0.8;
1296
- height: 40px;
1297
- transition:
1298
- opacity 0.1s,
1299
- background-color 0.2s;
1300
- vertical-align: bottom;
1345
+ height: 2.5rem;
1346
+ width: 2.5rem;
1347
+ transition: opacity 0.1s, background-color 0.1s;
1348
+ text-align: center;
1301
1349
  cursor: pointer;
1350
+ border: none;
1351
+ background-color: transparent;
1302
1352
  }
1303
1353
  .tsd-widget:hover {
1304
1354
  opacity: 0.9;
1305
1355
  }
1306
- .tsd-widget.active {
1356
+ .tsd-widget:active {
1307
1357
  opacity: 1;
1308
1358
  background-color: var(--color-accent);
1309
1359
  }
1310
- .tsd-widget.no-caption {
1311
- width: 40px;
1312
- }
1313
- .tsd-widget.no-caption:before {
1314
- margin: 0;
1315
- }
1316
-
1317
- .tsd-widget.options,
1318
- .tsd-widget.menu {
1360
+ #tsd-toolbar-menu-trigger {
1319
1361
  display: none;
1320
1362
  }
1321
- input[type="checkbox"] + .tsd-widget:before {
1322
- background-position: -120px 0;
1323
- }
1324
- input[type="checkbox"]:checked + .tsd-widget:before {
1325
- background-position: -160px 0;
1326
- }
1327
-
1328
- img {
1329
- max-width: 100%;
1330
- }
1331
1363
 
1332
1364
  .tsd-member-summary-name {
1333
1365
  display: inline-flex;
@@ -1341,6 +1373,7 @@
1341
1373
  align-items: center;
1342
1374
  margin-left: 0.5rem;
1343
1375
  color: var(--color-text);
1376
+ vertical-align: middle;
1344
1377
  }
1345
1378
 
1346
1379
  .tsd-anchor-icon svg {
@@ -1350,7 +1383,8 @@
1350
1383
  }
1351
1384
 
1352
1385
  .tsd-member-summary-name:hover > .tsd-anchor-icon svg,
1353
- .tsd-anchor-link:hover > .tsd-anchor-icon svg {
1386
+ .tsd-anchor-link:hover > .tsd-anchor-icon svg,
1387
+ .tsd-anchor-icon:focus-visible svg {
1354
1388
  visibility: visible;
1355
1389
  }
1356
1390
 
@@ -1436,41 +1470,26 @@
1436
1470
  color: var(--color-text);
1437
1471
  }
1438
1472
 
1439
- * {
1440
- scrollbar-width: thin;
1441
- scrollbar-color: var(--color-accent) var(--color-icon-background);
1442
- }
1443
-
1444
- *::-webkit-scrollbar {
1445
- width: 0.75rem;
1446
- }
1447
-
1448
- *::-webkit-scrollbar-track {
1449
- background: var(--color-icon-background);
1450
- }
1451
-
1452
- *::-webkit-scrollbar-thumb {
1453
- background-color: var(--color-accent);
1454
- border-radius: 999rem;
1455
- border: 0.25rem solid var(--color-icon-background);
1456
- }
1457
-
1458
1473
  /* mobile */
1459
1474
  @media (max-width: 769px) {
1460
- .tsd-widget.options,
1461
- .tsd-widget.menu {
1475
+ #tsd-toolbar-menu-trigger {
1462
1476
  display: inline-block;
1477
+ /* temporary fix to vertically align, for compatibility */
1478
+ line-height: 2.5;
1479
+ }
1480
+ #tsd-toolbar-links {
1481
+ display: none;
1463
1482
  }
1464
1483
 
1465
1484
  .container-main {
1466
1485
  display: flex;
1467
1486
  }
1468
- html .col-content {
1487
+ .col-content {
1469
1488
  float: none;
1470
1489
  max-width: 100%;
1471
1490
  width: 100%;
1472
1491
  }
1473
- html .col-sidebar {
1492
+ .col-sidebar {
1474
1493
  position: fixed !important;
1475
1494
  overflow-y: auto;
1476
1495
  -webkit-overflow-scrolling: touch;
@@ -1485,10 +1504,10 @@
1485
1504
  background-color: var(--color-background);
1486
1505
  transform: translate(100%, 0);
1487
1506
  }
1488
- html .col-sidebar > *:last-child {
1507
+ .col-sidebar > *:last-child {
1489
1508
  padding-bottom: 20px;
1490
1509
  }
1491
- html .overlay {
1510
+ .overlay {
1492
1511
  content: "";
1493
1512
  display: block;
1494
1513
  position: fixed;
@@ -1535,9 +1554,6 @@
1535
1554
  .has-menu .tsd-navigation {
1536
1555
  max-height: 100%;
1537
1556
  }
1538
- #tsd-toolbar-links {
1539
- display: none;
1540
- }
1541
1557
  .tsd-navigation .tsd-nav-link {
1542
1558
  display: flex;
1543
1559
  }
@@ -1549,7 +1565,11 @@
1549
1565
  display: grid;
1550
1566
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
1551
1567
  grid-template-areas: "sidebar content";
1552
- margin: 2rem auto;
1568
+ --dim-container-main-margin-y: 2rem;
1569
+ }
1570
+
1571
+ .tsd-breadcrumb {
1572
+ margin-top: 0;
1553
1573
  }
1554
1574
 
1555
1575
  .col-sidebar {
@@ -1562,11 +1582,15 @@
1562
1582
  }
1563
1583
  @media (min-width: 770px) and (max-width: 1399px) {
1564
1584
  .col-sidebar {
1565
- max-height: calc(100vh - 2rem - 42px);
1585
+ max-height: calc(
1586
+ 100vh - var(--dim-header-height) - var(--dim-footer-height) -
1587
+ 2 * var(--dim-container-main-margin-y)
1588
+ );
1566
1589
  overflow: auto;
1567
1590
  position: sticky;
1568
- top: 42px;
1569
- padding-top: 1rem;
1591
+ top: calc(
1592
+ var(--dim-header-height) + var(--dim-container-main-margin-y)
1593
+ );
1570
1594
  }
1571
1595
  .site-menu {
1572
1596
  margin-top: 1rem;
@@ -1576,10 +1600,11 @@
1576
1600
  /* two sidebars */
1577
1601
  @media (min-width: 1200px) {
1578
1602
  .container-main {
1579
- grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax(
1580
- 0,
1581
- 20rem
1582
- );
1603
+ grid-template-columns:
1604
+ minmax(0, 1fr) minmax(0, 2.5fr) minmax(
1605
+ 0,
1606
+ 20rem
1607
+ );
1583
1608
  grid-template-areas: "sidebar content toc";
1584
1609
  }
1585
1610
 
@@ -1596,15 +1621,20 @@
1596
1621
  }
1597
1622
 
1598
1623
  .site-menu {
1599
- margin-top: 1rem;
1624
+ margin-top: 0rem;
1600
1625
  }
1601
1626
 
1602
1627
  .page-menu,
1603
1628
  .site-menu {
1604
- max-height: calc(100vh - 2rem - 42px);
1629
+ max-height: calc(
1630
+ 100vh - var(--dim-header-height) - var(--dim-footer-height) -
1631
+ 2 * var(--dim-container-main-margin-y)
1632
+ );
1605
1633
  overflow: auto;
1606
1634
  position: sticky;
1607
- top: 42px;
1635
+ top: calc(
1636
+ var(--dim-header-height) + var(--dim-container-main-margin-y)
1637
+ );
1608
1638
  }
1609
1639
  }
1610
1640
  }