@cobaltio/cobalt-js 8.2.0 → 8.4.1

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.
@@ -10,6 +10,7 @@
10
10
  --light-color-text: #222;
11
11
  --light-color-text-aside: #6e6e6e;
12
12
  --light-color-link: #1f70c2;
13
+ --light-color-focus-outline: #3584e4;
13
14
 
14
15
  --light-color-ts-keyword: #056bd6;
15
16
  --light-color-ts-project: #b111c9;
@@ -35,6 +36,7 @@
35
36
  --light-color-ts-set-signature: var(--light-color-ts-accessor);
36
37
  --light-color-ts-type-alias: #d51270;
37
38
  /* reference not included as links will be colored with the kind that it points to */
39
+ --light-color-document: #000000;
38
40
 
39
41
  --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>");
40
42
  --light-color-scheme: light;
@@ -50,6 +52,7 @@
50
52
  --dark-color-text: #f5f5f5;
51
53
  --dark-color-text-aside: #dddddd;
52
54
  --dark-color-link: #00aff4;
55
+ --dark-color-focus-outline: #4c97f2;
53
56
 
54
57
  --dark-color-ts-keyword: #3399ff;
55
58
  --dark-color-ts-project: #e358ff;
@@ -75,6 +78,7 @@
75
78
  --dark-color-ts-set-signature: var(--dark-color-ts-accessor);
76
79
  --dark-color-ts-type-alias: #ff6492;
77
80
  /* reference not included as links will be colored with the kind that it points to */
81
+ --dark-color-document: #ffffff;
78
82
 
79
83
  --dark-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='%23fff' stroke-width='10' d='m43,35H5v60h60V57M45,5v10l10,10-30,30 20,20 30-30 10,10h10V5z'/></svg>");
80
84
  --dark-color-scheme: dark;
@@ -92,6 +96,7 @@
92
96
  --color-text: var(--light-color-text);
93
97
  --color-text-aside: var(--light-color-text-aside);
94
98
  --color-link: var(--light-color-link);
99
+ --color-focus-outline: var(--light-color-focus-outline);
95
100
 
96
101
  --color-ts-keyword: var(--light-color-ts-keyword);
97
102
  --color-ts-module: var(--light-color-ts-module);
@@ -116,6 +121,7 @@
116
121
  --color-ts-get-signature: var(--light-color-ts-get-signature);
117
122
  --color-ts-set-signature: var(--light-color-ts-set-signature);
118
123
  --color-ts-type-alias: var(--light-color-ts-type-alias);
124
+ --color-document: var(--light-color-document);
119
125
 
120
126
  --external-icon: var(--light-external-icon);
121
127
  --color-scheme: var(--light-color-scheme);
@@ -134,6 +140,7 @@
134
140
  --color-text: var(--dark-color-text);
135
141
  --color-text-aside: var(--dark-color-text-aside);
136
142
  --color-link: var(--dark-color-link);
143
+ --color-focus-outline: var(--dark-color-focus-outline);
137
144
 
138
145
  --color-ts-keyword: var(--dark-color-ts-keyword);
139
146
  --color-ts-module: var(--dark-color-ts-module);
@@ -158,6 +165,7 @@
158
165
  --color-ts-get-signature: var(--dark-color-ts-get-signature);
159
166
  --color-ts-set-signature: var(--dark-color-ts-set-signature);
160
167
  --color-ts-type-alias: var(--dark-color-ts-type-alias);
168
+ --color-document: var(--dark-color-document);
161
169
 
162
170
  --external-icon: var(--dark-external-icon);
163
171
  --color-scheme: var(--dark-color-scheme);
@@ -183,6 +191,7 @@ body {
183
191
  --color-text: var(--light-color-text);
184
192
  --color-text-aside: var(--light-color-text-aside);
185
193
  --color-link: var(--light-color-link);
194
+ --color-focus-outline: var(--light-color-focus-outline);
186
195
 
187
196
  --color-ts-keyword: var(--light-color-ts-keyword);
188
197
  --color-ts-module: var(--light-color-ts-module);
@@ -207,6 +216,7 @@ body {
207
216
  --color-ts-get-signature: var(--light-color-ts-get-signature);
208
217
  --color-ts-set-signature: var(--light-color-ts-set-signature);
209
218
  --color-ts-type-alias: var(--light-color-ts-type-alias);
219
+ --color-document: var(--light-color-document);
210
220
 
211
221
  --external-icon: var(--light-external-icon);
212
222
  --color-scheme: var(--light-color-scheme);
@@ -223,6 +233,7 @@ body {
223
233
  --color-text: var(--dark-color-text);
224
234
  --color-text-aside: var(--dark-color-text-aside);
225
235
  --color-link: var(--dark-color-link);
236
+ --color-focus-outline: var(--dark-color-focus-outline);
226
237
 
227
238
  --color-ts-keyword: var(--dark-color-ts-keyword);
228
239
  --color-ts-module: var(--dark-color-ts-module);
@@ -247,11 +258,17 @@ body {
247
258
  --color-ts-get-signature: var(--dark-color-ts-get-signature);
248
259
  --color-ts-set-signature: var(--dark-color-ts-set-signature);
249
260
  --color-ts-type-alias: var(--dark-color-ts-type-alias);
261
+ --color-document: var(--dark-color-document);
250
262
 
251
263
  --external-icon: var(--dark-external-icon);
252
264
  --color-scheme: var(--dark-color-scheme);
253
265
  }
254
266
 
267
+ *:focus-visible,
268
+ .tsd-accordion-summary:focus-visible svg {
269
+ outline: 2px solid var(--color-focus-outline);
270
+ }
271
+
255
272
  .always-visible,
256
273
  .always-visible .tsd-signatures {
257
274
  display: inherit !important;
@@ -266,16 +283,6 @@ h6 {
266
283
  line-height: 1.2;
267
284
  }
268
285
 
269
- h1 > a:not(.link),
270
- h2 > a:not(.link),
271
- h3 > a:not(.link),
272
- h4 > a:not(.link),
273
- h5 > a:not(.link),
274
- h6 > a:not(.link) {
275
- text-decoration: none;
276
- color: var(--color-text);
277
- }
278
-
279
286
  h1 {
280
287
  font-size: 1.875rem;
281
288
  margin: 0.67rem 0;
@@ -306,10 +313,6 @@ h6 {
306
313
  margin: 2.33rem 0;
307
314
  }
308
315
 
309
- .uppercase {
310
- text-transform: uppercase;
311
- }
312
-
313
316
  dl,
314
317
  menu,
315
318
  ol,
@@ -327,17 +330,14 @@ dd {
327
330
  }
328
331
 
329
332
  /* Footer */
330
- .tsd-generator {
333
+ footer {
331
334
  border-top: 1px solid var(--color-accent);
332
335
  padding-top: 1rem;
333
336
  padding-bottom: 1rem;
334
337
  max-height: 3.5rem;
335
338
  }
336
-
337
- .tsd-generator > p {
338
- margin-top: 0;
339
- margin-bottom: 0;
340
- padding: 0 1rem;
339
+ footer > p {
340
+ margin: 0 1em;
341
341
  }
342
342
 
343
343
  .container-main {
@@ -424,6 +424,9 @@ a.external[target="_blank"] {
424
424
  background-repeat: no-repeat;
425
425
  padding-right: 13px;
426
426
  }
427
+ a.tsd-anchor-link {
428
+ color: var(--color-text);
429
+ }
427
430
 
428
431
  code,
429
432
  pre {
@@ -583,13 +586,13 @@ dl.tsd-comment-tag-group p {
583
586
  }
584
587
  .tsd-filter-input {
585
588
  display: flex;
586
- width: fit-content;
587
589
  width: -moz-fit-content;
590
+ width: fit-content;
588
591
  align-items: center;
589
- user-select: none;
590
592
  -webkit-user-select: none;
591
593
  -moz-user-select: none;
592
594
  -ms-user-select: none;
595
+ user-select: none;
593
596
  cursor: pointer;
594
597
  }
595
598
  .tsd-filter-input input[type="checkbox"] {
@@ -612,11 +615,8 @@ dl.tsd-comment-tag-group p {
612
615
  Don't remove unless you know what you're doing. */
613
616
  opacity: 0.99;
614
617
  }
615
- .tsd-filter-input input[type="checkbox"]:focus + svg {
616
- transform: scale(0.95);
617
- }
618
- .tsd-filter-input input[type="checkbox"]:focus:not(:focus-visible) + svg {
619
- transform: scale(1);
618
+ .tsd-filter-input input[type="checkbox"]:focus-visible + svg {
619
+ outline: 2px solid var(--color-focus-outline);
620
620
  }
621
621
  .tsd-checkbox-background {
622
622
  fill: var(--color-accent);
@@ -633,13 +633,18 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark {
633
633
  stroke: var(--color-accent);
634
634
  }
635
635
 
636
- .tsd-theme-toggle {
637
- padding-top: 0.75rem;
636
+ .settings-label {
637
+ font-weight: bold;
638
+ text-transform: uppercase;
639
+ display: inline-block;
638
640
  }
639
- .tsd-theme-toggle > h4 {
640
- display: inline;
641
- vertical-align: middle;
642
- margin-right: 0.75rem;
641
+
642
+ .tsd-filter-visibility .settings-label {
643
+ margin: 0.75rem 0 0.5rem 0;
644
+ }
645
+
646
+ .tsd-theme-toggle .settings-label {
647
+ margin: 0.75rem 0.75rem 0 0;
643
648
  }
644
649
 
645
650
  .tsd-hierarchy {
@@ -772,6 +777,9 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark {
772
777
  padding: 0;
773
778
  max-width: 100%;
774
779
  }
780
+ .tsd-navigation .tsd-nav-link {
781
+ display: none;
782
+ }
775
783
  .tsd-nested-navigation {
776
784
  margin-left: 3rem;
777
785
  }
@@ -785,6 +793,15 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark {
785
793
  margin-left: -1.5rem;
786
794
  }
787
795
 
796
+ .tsd-page-navigation-section {
797
+ margin-left: 10px;
798
+ }
799
+ .tsd-page-navigation-section > summary {
800
+ padding: 0.25rem;
801
+ }
802
+ .tsd-page-navigation-section > div {
803
+ margin-left: 20px;
804
+ }
788
805
  .tsd-page-navigation ul {
789
806
  padding-left: 1.75rem;
790
807
  }
@@ -815,10 +832,10 @@ a.tsd-index-link {
815
832
  }
816
833
  .tsd-accordion-summary,
817
834
  .tsd-accordion-summary a {
818
- user-select: none;
819
835
  -moz-user-select: none;
820
836
  -webkit-user-select: none;
821
837
  -ms-user-select: none;
838
+ user-select: none;
822
839
 
823
840
  cursor: pointer;
824
841
  }
@@ -831,8 +848,9 @@ a.tsd-index-link {
831
848
  padding-top: 0;
832
849
  padding-bottom: 0;
833
850
  }
834
- .tsd-index-accordion .tsd-accordion-summary > svg {
851
+ .tsd-accordion .tsd-accordion-summary > svg {
835
852
  margin-left: 0.25rem;
853
+ vertical-align: text-top;
836
854
  }
837
855
  .tsd-index-content > :not(:first-child) {
838
856
  margin-top: 0.75rem;
@@ -880,7 +898,7 @@ a.tsd-index-link {
880
898
  }
881
899
 
882
900
  .tsd-panel-group {
883
- margin: 4rem 0;
901
+ margin: 2rem 0;
884
902
  }
885
903
  .tsd-panel-group.tsd-index-group {
886
904
  margin: 2rem 0;
@@ -888,6 +906,9 @@ a.tsd-index-link {
888
906
  .tsd-panel-group.tsd-index-group details {
889
907
  margin: 2rem 0;
890
908
  }
909
+ .tsd-panel-group > .tsd-accordion-summary {
910
+ margin-bottom: 1rem;
911
+ }
891
912
 
892
913
  #tsd-search {
893
914
  transition: background-color 0.2s;
@@ -1037,6 +1058,12 @@ a.tsd-index-link {
1037
1058
  border-width: 1px 0;
1038
1059
  transition: background-color 0.1s;
1039
1060
  }
1061
+ .tsd-signatures .tsd-index-signature:not(:last-child) {
1062
+ margin-bottom: 1em;
1063
+ }
1064
+ .tsd-signatures .tsd-index-signature .tsd-signature {
1065
+ border-width: 1px;
1066
+ }
1040
1067
  .tsd-description .tsd-signatures .tsd-signature {
1041
1068
  border-width: 1px;
1042
1069
  }
@@ -1350,6 +1377,12 @@ img {
1350
1377
  .has-menu .tsd-navigation {
1351
1378
  max-height: 100%;
1352
1379
  }
1380
+ #tsd-toolbar-links {
1381
+ display: none;
1382
+ }
1383
+ .tsd-navigation .tsd-nav-link {
1384
+ display: flex;
1385
+ }
1353
1386
  }
1354
1387
 
1355
1388
  /* one sidebar */