@tenphi/starlight 0.9.6 → 0.10.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.
- package/dist/components/GlobalStyles.js +246 -268
- package/dist/components/LayoutComponents.js +0 -9
- package/dist/components/TastyComponents.js +1 -5
- package/dist/components/component-styles.test.ts +39 -29
- package/dist/components/component-styles.ts +11 -35
- package/dist/components/customize-component.js +2 -4
- package/dist/index.js +9 -12
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -108,17 +108,14 @@ export default function GlobalStyles() {
|
|
|
108
108
|
border: "0",
|
|
109
109
|
});
|
|
110
110
|
|
|
111
|
-
useGlobalStyles("html, body, button, input, select, textarea", {
|
|
112
|
-
fontFamily: "$body-font-family",
|
|
113
|
-
});
|
|
114
|
-
|
|
115
111
|
useGlobalStyles("body", {
|
|
116
112
|
color: "#text",
|
|
117
113
|
fill: "#surface",
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
114
|
+
preset: "body",
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
useGlobalStyles(":where(strong, b)", {
|
|
118
|
+
preset: "strong",
|
|
122
119
|
});
|
|
123
120
|
|
|
124
121
|
useGlobalStyles("a", {
|
|
@@ -260,7 +257,7 @@ export default function GlobalStyles() {
|
|
|
260
257
|
padding: "($gap * 1.5) $docs-nav-pad-x",
|
|
261
258
|
color: "#accent-surface-text",
|
|
262
259
|
fill: "#accent-surface",
|
|
263
|
-
|
|
260
|
+
preset: "body / strong",
|
|
264
261
|
lineHeight: "$heading-line-height",
|
|
265
262
|
textAlign: "center",
|
|
266
263
|
textWrap: "balance",
|
|
@@ -297,50 +294,36 @@ export default function GlobalStyles() {
|
|
|
297
294
|
|
|
298
295
|
useGlobalStyles(":where(h1, h2, h3, h4, h5, h6), .site-title", {
|
|
299
296
|
color: "#text",
|
|
300
|
-
|
|
301
|
-
fontWeight: "$heading-font-weight",
|
|
302
|
-
letterSpacing: "$heading-letter-spacing",
|
|
297
|
+
preset: "heading",
|
|
303
298
|
textWrap: "balance",
|
|
304
299
|
});
|
|
305
300
|
|
|
306
301
|
useGlobalStyles("h1", {
|
|
307
|
-
|
|
308
|
-
lineHeight: "$h1-line-height",
|
|
309
|
-
letterSpacing: "$h1-letter-spacing",
|
|
302
|
+
preset: "h1",
|
|
310
303
|
});
|
|
311
304
|
|
|
312
305
|
useGlobalStyles("h2", {
|
|
313
|
-
|
|
314
|
-
lineHeight: "$h2-line-height",
|
|
315
|
-
letterSpacing: "$h2-letter-spacing",
|
|
306
|
+
preset: "h2",
|
|
316
307
|
});
|
|
317
308
|
|
|
318
309
|
useGlobalStyles("h3", {
|
|
319
|
-
|
|
320
|
-
lineHeight: "$h3-line-height",
|
|
321
|
-
letterSpacing: "$h3-letter-spacing",
|
|
310
|
+
preset: "h3",
|
|
322
311
|
});
|
|
323
312
|
|
|
324
313
|
useGlobalStyles("h4", {
|
|
325
|
-
|
|
326
|
-
lineHeight: "$h4-line-height",
|
|
327
|
-
letterSpacing: "$h4-letter-spacing",
|
|
314
|
+
preset: "h4",
|
|
328
315
|
});
|
|
329
316
|
|
|
330
317
|
useGlobalStyles("h5", {
|
|
331
|
-
|
|
332
|
-
lineHeight: "$h5-line-height",
|
|
333
|
-
letterSpacing: "$h5-letter-spacing",
|
|
318
|
+
preset: "h5",
|
|
334
319
|
});
|
|
335
320
|
|
|
336
321
|
useGlobalStyles("h6", {
|
|
337
|
-
|
|
338
|
-
lineHeight: "$h6-line-height",
|
|
339
|
-
letterSpacing: "$h6-letter-spacing",
|
|
322
|
+
preset: "h6",
|
|
340
323
|
});
|
|
341
324
|
|
|
342
325
|
useGlobalStyles(":where(code, kbd, samp, pre)", {
|
|
343
|
-
|
|
326
|
+
preset: "code",
|
|
344
327
|
});
|
|
345
328
|
|
|
346
329
|
useGlobalStyles(
|
|
@@ -366,170 +349,172 @@ export default function GlobalStyles() {
|
|
|
366
349
|
fill: "#surface",
|
|
367
350
|
});
|
|
368
351
|
|
|
369
|
-
useGlobalStyles(
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
$: ".sidebar-content",
|
|
381
|
-
gap: "($gap * 3)",
|
|
382
|
-
paddingBlockStart: {
|
|
383
|
-
"": "($gap * 4)",
|
|
384
|
-
"@medium-layout": "($gap * 1.5)",
|
|
352
|
+
useGlobalStyles(
|
|
353
|
+
"#starlight__sidebar",
|
|
354
|
+
resolveComponentStyles("Sidebar", {
|
|
355
|
+
CurrentLink: {
|
|
356
|
+
$: [
|
|
357
|
+
'a[aria-current="page"]',
|
|
358
|
+
'a[aria-current="page"]:hover',
|
|
359
|
+
'a[aria-current="page"]:focus',
|
|
360
|
+
],
|
|
361
|
+
color: "#accent-text",
|
|
362
|
+
fill: "#accent-surface-subtle",
|
|
385
363
|
},
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
364
|
+
Content: {
|
|
365
|
+
$: ".sidebar-content",
|
|
366
|
+
gap: "($gap * 3)",
|
|
367
|
+
paddingBlockStart: {
|
|
368
|
+
"": "($gap * 4)",
|
|
369
|
+
"@medium-layout": "($gap * 1.5)",
|
|
370
|
+
},
|
|
371
|
+
paddingBlockEnd: "($gap * 6)",
|
|
372
|
+
},
|
|
373
|
+
List: {
|
|
374
|
+
$: "ul",
|
|
375
|
+
padding: "0",
|
|
376
|
+
listStyle: "none",
|
|
377
|
+
},
|
|
378
|
+
Item: {
|
|
379
|
+
$: "li",
|
|
380
|
+
overflowWrap: "anywhere",
|
|
381
|
+
},
|
|
382
|
+
TopLevelSpacing: {
|
|
383
|
+
$: ".top-level > li + li",
|
|
384
|
+
marginBlockStart: "($gap * 3)",
|
|
385
|
+
},
|
|
386
|
+
NestedItem: {
|
|
387
|
+
$: "ul ul li",
|
|
388
|
+
marginInlineStart: "($gap * 0.75)",
|
|
389
|
+
paddingInlineStart: "($gap * 0.75)",
|
|
390
|
+
borderInlineStart: "0",
|
|
391
|
+
},
|
|
392
|
+
Control: {
|
|
393
|
+
$: ["summary", "a"],
|
|
394
|
+
padding: "($gap * 0.8) ($gap * 1.25)",
|
|
395
|
+
color: "#text-soft",
|
|
396
|
+
lineHeight: "1.45",
|
|
397
|
+
radius: "$radius",
|
|
398
|
+
textDecoration: "none",
|
|
399
|
+
},
|
|
400
|
+
Summary: {
|
|
401
|
+
$: "summary",
|
|
402
|
+
display: "flex",
|
|
403
|
+
alignItems: "center",
|
|
404
|
+
justifyContent: "space-between",
|
|
405
|
+
cursor: "pointer",
|
|
406
|
+
userSelect: "none",
|
|
407
|
+
},
|
|
408
|
+
GroupLabel: {
|
|
409
|
+
$: "summary > .group-label",
|
|
410
|
+
display: "flex",
|
|
411
|
+
alignItems: "center",
|
|
412
|
+
minInlineSize: "0",
|
|
413
|
+
gap: "0.25em",
|
|
414
|
+
},
|
|
415
|
+
GroupLabelText: {
|
|
416
|
+
$: "summary > .group-label > span:first-child",
|
|
417
|
+
minInlineSize: "0",
|
|
418
|
+
overflow: "hidden",
|
|
419
|
+
color: "#text",
|
|
420
|
+
preset: "navigation / strong",
|
|
421
|
+
textOverflow: "ellipsis",
|
|
422
|
+
whiteSpace: "nowrap",
|
|
423
|
+
},
|
|
424
|
+
Link: {
|
|
425
|
+
$: "a",
|
|
426
|
+
display: "flex",
|
|
427
|
+
alignItems: "center",
|
|
428
|
+
minInlineSize: "0",
|
|
429
|
+
gap: "0.25em",
|
|
430
|
+
fill: "#surface",
|
|
431
|
+
preset: "navigation",
|
|
432
|
+
},
|
|
433
|
+
LinkLabel: {
|
|
434
|
+
$: "a > span:first-child",
|
|
435
|
+
minInlineSize: "0",
|
|
436
|
+
overflow: "hidden",
|
|
437
|
+
textOverflow: "ellipsis",
|
|
438
|
+
whiteSpace: "nowrap",
|
|
439
|
+
},
|
|
440
|
+
InteractiveControl: {
|
|
441
|
+
$: ["a:hover", "a:focus-visible", "summary:hover"],
|
|
442
|
+
color: "#text",
|
|
443
|
+
fill: "#surface-2-hover",
|
|
444
|
+
},
|
|
445
|
+
SummaryMarker: {
|
|
446
|
+
$: "summary::marker",
|
|
447
|
+
hide: true,
|
|
448
|
+
},
|
|
449
|
+
TopLevelLink: {
|
|
450
|
+
$: "a.large",
|
|
451
|
+
color: "#text",
|
|
452
|
+
preset: "navigation / strong",
|
|
453
|
+
},
|
|
454
|
+
}),
|
|
455
|
+
);
|
|
477
456
|
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
457
|
+
useGlobalStyles(
|
|
458
|
+
".right-sidebar-panel",
|
|
459
|
+
resolveComponentStyles("TableOfContents", {
|
|
460
|
+
paddingBlockStart: "($gap * 5)",
|
|
461
|
+
paddingInlineStart: "$docs-sidebar-pad-x",
|
|
462
|
+
paddingInlineEnd: "$docs-sidebar-pad-x",
|
|
463
|
+
|
|
464
|
+
Heading: {
|
|
465
|
+
$: "h2",
|
|
466
|
+
marginBlockEnd: "$gap",
|
|
467
|
+
color: "#text",
|
|
468
|
+
preset: "navigation / strong",
|
|
469
|
+
lineHeight: "$heading-line-height",
|
|
470
|
+
},
|
|
471
|
+
List: {
|
|
472
|
+
$: "ul",
|
|
473
|
+
display: "grid",
|
|
474
|
+
gridTemplateColumns: "minmax(0, 1fr)",
|
|
475
|
+
minInlineSize: "0",
|
|
476
|
+
gap: "1px",
|
|
477
|
+
margin: "0",
|
|
478
|
+
padding: "0",
|
|
479
|
+
listStyle: "none",
|
|
480
|
+
},
|
|
481
|
+
Item: {
|
|
482
|
+
$: "li",
|
|
483
|
+
minInlineSize: "0",
|
|
484
|
+
margin: "0",
|
|
485
|
+
padding: "0",
|
|
486
|
+
listStyle: "none",
|
|
487
|
+
},
|
|
488
|
+
Link: {
|
|
489
|
+
$: "a",
|
|
490
|
+
display: "block",
|
|
491
|
+
minInlineSize: "0",
|
|
492
|
+
maxInlineSize: "100%",
|
|
493
|
+
paddingBlockStart: "($gap * 0.5)",
|
|
494
|
+
paddingBlockEnd: "($gap * 0.5)",
|
|
495
|
+
color: "#text-muted",
|
|
496
|
+
preset: "small",
|
|
497
|
+
textDecoration: "none",
|
|
498
|
+
overflowWrap: "anywhere",
|
|
499
|
+
},
|
|
500
|
+
LinkLabel: {
|
|
501
|
+
$: "a > span",
|
|
502
|
+
display: "block",
|
|
503
|
+
minInlineSize: "0",
|
|
504
|
+
overflow: "hidden",
|
|
505
|
+
textOverflow: "ellipsis",
|
|
506
|
+
whiteSpace: "nowrap",
|
|
507
|
+
},
|
|
508
|
+
HoverLink: {
|
|
509
|
+
$: "a:hover",
|
|
510
|
+
color: "#text",
|
|
511
|
+
},
|
|
512
|
+
CurrentLink: {
|
|
513
|
+
$: 'a[aria-current="true"]',
|
|
514
|
+
color: "#accent-text",
|
|
515
|
+
},
|
|
516
|
+
}),
|
|
517
|
+
);
|
|
533
518
|
|
|
534
519
|
useGlobalStyles(".content-panel", {
|
|
535
520
|
padding: "($gap * 3) $docs-content-pad-x",
|
|
@@ -599,7 +584,7 @@ export default function GlobalStyles() {
|
|
|
599
584
|
});
|
|
600
585
|
|
|
601
586
|
useGlobalStyles(".sl-markdown-content dt:not(:where(.not-content *))", {
|
|
602
|
-
|
|
587
|
+
preset: "strong",
|
|
603
588
|
});
|
|
604
589
|
|
|
605
590
|
useGlobalStyles(".sl-markdown-content dd:not(:where(.not-content *))", {
|
|
@@ -632,8 +617,6 @@ export default function GlobalStyles() {
|
|
|
632
617
|
color: "#syntax-text",
|
|
633
618
|
border: true,
|
|
634
619
|
fill: "#syntax-bg",
|
|
635
|
-
fontSize: "$code-font-size",
|
|
636
|
-
lineHeight: "$code-line-height",
|
|
637
620
|
radius: "$card-radius",
|
|
638
621
|
tabSize: "2",
|
|
639
622
|
});
|
|
@@ -642,9 +625,6 @@ export default function GlobalStyles() {
|
|
|
642
625
|
padding: "0",
|
|
643
626
|
color: "inherit",
|
|
644
627
|
fill: "#clear",
|
|
645
|
-
fontFamily: "$code-font-family",
|
|
646
|
-
fontSize: "inherit",
|
|
647
|
-
lineHeight: "inherit",
|
|
648
628
|
});
|
|
649
629
|
|
|
650
630
|
useGlobalStyles(".sl-markdown-content pre.td-diff", {
|
|
@@ -748,7 +728,7 @@ export default function GlobalStyles() {
|
|
|
748
728
|
marginInlineStart: "-0.5rem",
|
|
749
729
|
paddingInlineStart: "0.5rem",
|
|
750
730
|
color: "#text",
|
|
751
|
-
|
|
731
|
+
preset: "strong",
|
|
752
732
|
});
|
|
753
733
|
|
|
754
734
|
useGlobalStyles(
|
|
@@ -788,31 +768,31 @@ export default function GlobalStyles() {
|
|
|
788
768
|
);
|
|
789
769
|
|
|
790
770
|
useGlobalStyles(".sl-markdown-content .sl-heading-wrapper", {
|
|
791
|
-
|
|
771
|
+
preset: "heading",
|
|
792
772
|
});
|
|
793
773
|
|
|
794
774
|
useGlobalStyles(".sl-markdown-content .sl-heading-wrapper.level-h1", {
|
|
795
|
-
|
|
775
|
+
preset: "h1",
|
|
796
776
|
});
|
|
797
777
|
|
|
798
778
|
useGlobalStyles(".sl-markdown-content .sl-heading-wrapper.level-h2", {
|
|
799
|
-
|
|
779
|
+
preset: "h2",
|
|
800
780
|
});
|
|
801
781
|
|
|
802
782
|
useGlobalStyles(".sl-markdown-content .sl-heading-wrapper.level-h3", {
|
|
803
|
-
|
|
783
|
+
preset: "h3",
|
|
804
784
|
});
|
|
805
785
|
|
|
806
786
|
useGlobalStyles(".sl-markdown-content .sl-heading-wrapper.level-h4", {
|
|
807
|
-
|
|
787
|
+
preset: "h4",
|
|
808
788
|
});
|
|
809
789
|
|
|
810
790
|
useGlobalStyles(".sl-markdown-content .sl-heading-wrapper.level-h5", {
|
|
811
|
-
|
|
791
|
+
preset: "h5",
|
|
812
792
|
});
|
|
813
793
|
|
|
814
794
|
useGlobalStyles(".sl-markdown-content .sl-heading-wrapper.level-h6", {
|
|
815
|
-
|
|
795
|
+
preset: "h6",
|
|
816
796
|
});
|
|
817
797
|
|
|
818
798
|
useGlobalStyles(".sl-markdown-content .sl-heading-wrapper > :first-child", {
|
|
@@ -853,7 +833,7 @@ export default function GlobalStyles() {
|
|
|
853
833
|
gap: "$gap",
|
|
854
834
|
margin: "0 0 $gap",
|
|
855
835
|
color: "#text",
|
|
856
|
-
|
|
836
|
+
preset: "strong",
|
|
857
837
|
});
|
|
858
838
|
|
|
859
839
|
useGlobalStyles(".starlight-aside__icon", {
|
|
@@ -907,7 +887,7 @@ export default function GlobalStyles() {
|
|
|
907
887
|
|
|
908
888
|
useGlobalStyles(".sl-link-card a", {
|
|
909
889
|
color: "#text",
|
|
910
|
-
|
|
890
|
+
preset: "strong",
|
|
911
891
|
textDecoration: "none",
|
|
912
892
|
});
|
|
913
893
|
|
|
@@ -928,7 +908,7 @@ export default function GlobalStyles() {
|
|
|
928
908
|
border: true,
|
|
929
909
|
radius: "$radius",
|
|
930
910
|
fill: "#surface-3",
|
|
931
|
-
|
|
911
|
+
preset: "code",
|
|
932
912
|
fontSize: "$small-font-size",
|
|
933
913
|
lineHeight: "1",
|
|
934
914
|
overflowWrap: "anywhere",
|
|
@@ -961,8 +941,7 @@ export default function GlobalStyles() {
|
|
|
961
941
|
border: true,
|
|
962
942
|
radius: "999px",
|
|
963
943
|
fill: "#surface-3",
|
|
964
|
-
|
|
965
|
-
fontWeight: "$body-bold-font-weight",
|
|
944
|
+
preset: "small / strong",
|
|
966
945
|
});
|
|
967
946
|
|
|
968
947
|
useGlobalStyles(".sl-steps > li::after", {
|
|
@@ -986,7 +965,7 @@ export default function GlobalStyles() {
|
|
|
986
965
|
color: "#text-soft",
|
|
987
966
|
border: true,
|
|
988
967
|
fill: "#surface",
|
|
989
|
-
|
|
968
|
+
preset: "small",
|
|
990
969
|
boxShadow: "none",
|
|
991
970
|
cursor: "pointer",
|
|
992
971
|
transition: "color 120ms ease, background-color 120ms ease",
|
|
@@ -1006,7 +985,7 @@ export default function GlobalStyles() {
|
|
|
1006
985
|
paddingInlineStart: "0.375rem",
|
|
1007
986
|
paddingInlineEnd: "0.375rem",
|
|
1008
987
|
fill: "#surface-3",
|
|
1009
|
-
|
|
988
|
+
preset: "body",
|
|
1010
989
|
fontSize: "0.75rem",
|
|
1011
990
|
radius: "($radius * 0.75)",
|
|
1012
991
|
});
|
|
@@ -1234,8 +1213,7 @@ export default function GlobalStyles() {
|
|
|
1234
1213
|
borderColor: "#border",
|
|
1235
1214
|
radius: "$radius",
|
|
1236
1215
|
fill: "#surface-3",
|
|
1237
|
-
|
|
1238
|
-
fontWeight: "$body-bold-font-weight",
|
|
1216
|
+
preset: "small / strong",
|
|
1239
1217
|
boxShadow: "none",
|
|
1240
1218
|
cursor: "pointer",
|
|
1241
1219
|
transition: "color 120ms ease, background-color 120ms ease",
|
|
@@ -1300,7 +1278,7 @@ export default function GlobalStyles() {
|
|
|
1300
1278
|
|
|
1301
1279
|
useGlobalStyles("#starlight__search .pagefind-ui__result-link", {
|
|
1302
1280
|
color: "#text",
|
|
1303
|
-
|
|
1281
|
+
preset: "strong",
|
|
1304
1282
|
});
|
|
1305
1283
|
|
|
1306
1284
|
useGlobalStyles("[data-search-modal-open]", {
|
|
@@ -1430,9 +1408,7 @@ export default function GlobalStyles() {
|
|
|
1430
1408
|
margin: "0",
|
|
1431
1409
|
padding: "0",
|
|
1432
1410
|
color: "#text-soft",
|
|
1433
|
-
|
|
1434
|
-
fontWeight: "$body-bold-font-weight",
|
|
1435
|
-
lineHeight: "$small-line-height",
|
|
1411
|
+
preset: "small / strong",
|
|
1436
1412
|
border: "0",
|
|
1437
1413
|
radius: "0",
|
|
1438
1414
|
fill: "#clear",
|
|
@@ -1494,56 +1470,59 @@ export default function GlobalStyles() {
|
|
|
1494
1470
|
whiteSpace: "nowrap",
|
|
1495
1471
|
});
|
|
1496
1472
|
|
|
1497
|
-
useGlobalStyles(
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
margin: "0",
|
|
1503
|
-
padding: "0",
|
|
1504
|
-
listStyle: "none",
|
|
1505
|
-
|
|
1506
|
-
Item: {
|
|
1507
|
-
$: "> li",
|
|
1473
|
+
useGlobalStyles(
|
|
1474
|
+
"mobile-starlight-toc .dropdown .isMobile",
|
|
1475
|
+
resolveComponentStyles("MobileTableOfContents", {
|
|
1476
|
+
display: "grid",
|
|
1477
|
+
gridTemplateColumns: "minmax(0, 1fr)",
|
|
1508
1478
|
minInlineSize: "0",
|
|
1479
|
+
gap: "1px",
|
|
1509
1480
|
margin: "0",
|
|
1510
1481
|
padding: "0",
|
|
1511
1482
|
listStyle: "none",
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1483
|
+
|
|
1484
|
+
Item: {
|
|
1485
|
+
$: "> li",
|
|
1486
|
+
minInlineSize: "0",
|
|
1487
|
+
margin: "0",
|
|
1488
|
+
padding: "0",
|
|
1489
|
+
listStyle: "none",
|
|
1490
|
+
},
|
|
1491
|
+
Link: {
|
|
1492
|
+
$: "a",
|
|
1493
|
+
display: "flex",
|
|
1494
|
+
alignItems: "center",
|
|
1495
|
+
minInlineSize: "0",
|
|
1496
|
+
minBlockSize: "2.5rem",
|
|
1497
|
+
padding: "0.625rem 0.75rem",
|
|
1498
|
+
color: "#text-soft",
|
|
1499
|
+
radius: "$radius",
|
|
1500
|
+
fill: "#surface-2",
|
|
1501
|
+
textDecoration: "none",
|
|
1502
|
+
},
|
|
1503
|
+
LinkLabel: {
|
|
1504
|
+
$: "a > span",
|
|
1505
|
+
minInlineSize: "0",
|
|
1506
|
+
overflow: "hidden",
|
|
1507
|
+
textOverflow: "ellipsis",
|
|
1508
|
+
whiteSpace: "nowrap",
|
|
1509
|
+
},
|
|
1510
|
+
HoverLink: {
|
|
1511
|
+
$: "a:hover",
|
|
1512
|
+
color: "#text",
|
|
1513
|
+
fill: "#surface-2-hover",
|
|
1514
|
+
},
|
|
1515
|
+
CurrentLink: {
|
|
1516
|
+
$: 'a[aria-current="true"]',
|
|
1517
|
+
color: "#accent-text",
|
|
1518
|
+
fill: "#accent-surface-2-subtle",
|
|
1519
|
+
},
|
|
1520
|
+
CurrentIndicator: {
|
|
1521
|
+
$: 'a[aria-current="true"]::after',
|
|
1522
|
+
blockSize: "1rem",
|
|
1523
|
+
},
|
|
1524
|
+
}),
|
|
1525
|
+
);
|
|
1547
1526
|
|
|
1548
1527
|
useGlobalStyles(
|
|
1549
1528
|
".sl-markdown-content :where(code):not(:where(.not-content *))",
|
|
@@ -1565,8 +1544,7 @@ export default function GlobalStyles() {
|
|
|
1565
1544
|
borderCollapse: "separate",
|
|
1566
1545
|
borderSpacing: "0",
|
|
1567
1546
|
color: "#text-soft",
|
|
1568
|
-
|
|
1569
|
-
lineHeight: "$small-line-height",
|
|
1547
|
+
preset: "small",
|
|
1570
1548
|
border: true,
|
|
1571
1549
|
borderColor: "#border",
|
|
1572
1550
|
radius: "$card-radius",
|