@tenphi/starlight 0.9.5 → 0.9.6
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 +190 -145
- package/package.json +2 -2
|
@@ -362,134 +362,173 @@ export default function GlobalStyles() {
|
|
|
362
362
|
{ radius: "$radius" },
|
|
363
363
|
);
|
|
364
364
|
|
|
365
|
-
useGlobalStyles(
|
|
366
|
-
'#starlight__sidebar a[aria-current="page"], #starlight__sidebar a[aria-current="page"]:hover, #starlight__sidebar a[aria-current="page"]:focus',
|
|
367
|
-
{
|
|
368
|
-
color: "#accent-text",
|
|
369
|
-
fill: "#accent-surface-subtle",
|
|
370
|
-
},
|
|
371
|
-
);
|
|
372
|
-
|
|
373
365
|
useGlobalStyles("body > .page > .header, .sidebar-pane", {
|
|
374
366
|
fill: "#surface",
|
|
375
367
|
});
|
|
376
368
|
|
|
377
|
-
useGlobalStyles("#starlight__sidebar
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
369
|
+
useGlobalStyles("#starlight__sidebar", {
|
|
370
|
+
CurrentLink: {
|
|
371
|
+
$: [
|
|
372
|
+
'a[aria-current="page"]',
|
|
373
|
+
'a[aria-current="page"]:hover',
|
|
374
|
+
'a[aria-current="page"]:focus',
|
|
375
|
+
],
|
|
376
|
+
color: "#accent-text",
|
|
377
|
+
fill: "#accent-surface-subtle",
|
|
382
378
|
},
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
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
|
-
|
|
379
|
+
Content: {
|
|
380
|
+
$: ".sidebar-content",
|
|
381
|
+
gap: "($gap * 3)",
|
|
382
|
+
paddingBlockStart: {
|
|
383
|
+
"": "($gap * 4)",
|
|
384
|
+
"@medium-layout": "($gap * 1.5)",
|
|
385
|
+
},
|
|
386
|
+
paddingBlockEnd: "($gap * 6)",
|
|
387
|
+
},
|
|
388
|
+
List: {
|
|
389
|
+
$: "ul",
|
|
390
|
+
padding: "0",
|
|
391
|
+
listStyle: "none",
|
|
392
|
+
},
|
|
393
|
+
Item: {
|
|
394
|
+
$: "li",
|
|
395
|
+
overflowWrap: "anywhere",
|
|
396
|
+
},
|
|
397
|
+
TopLevelSpacing: {
|
|
398
|
+
$: ".top-level > li + li",
|
|
399
|
+
marginBlockStart: "($gap * 3)",
|
|
400
|
+
},
|
|
401
|
+
NestedItem: {
|
|
402
|
+
$: "ul ul li",
|
|
403
|
+
marginInlineStart: "($gap * 0.75)",
|
|
404
|
+
paddingInlineStart: "($gap * 0.75)",
|
|
405
|
+
borderInlineStart: "0",
|
|
406
|
+
},
|
|
407
|
+
Control: {
|
|
408
|
+
$: ["summary", "a"],
|
|
409
|
+
padding: "($gap * 0.8) ($gap * 1.25)",
|
|
410
|
+
color: "#text-soft",
|
|
411
|
+
lineHeight: "1.45",
|
|
412
|
+
radius: "$radius",
|
|
413
|
+
textDecoration: "none",
|
|
414
|
+
},
|
|
415
|
+
Summary: {
|
|
416
|
+
$: "summary",
|
|
417
|
+
display: "flex",
|
|
418
|
+
alignItems: "center",
|
|
419
|
+
justifyContent: "space-between",
|
|
420
|
+
cursor: "pointer",
|
|
421
|
+
userSelect: "none",
|
|
422
|
+
},
|
|
423
|
+
GroupLabel: {
|
|
424
|
+
$: "summary > .group-label",
|
|
425
|
+
display: "flex",
|
|
426
|
+
alignItems: "center",
|
|
427
|
+
minInlineSize: "0",
|
|
428
|
+
gap: "0.25em",
|
|
429
|
+
},
|
|
430
|
+
GroupLabelText: {
|
|
431
|
+
$: "summary > .group-label > span:first-child",
|
|
432
|
+
minInlineSize: "0",
|
|
433
|
+
overflow: "hidden",
|
|
434
|
+
color: "#text",
|
|
435
|
+
fontSize: "0.9375rem",
|
|
436
|
+
fontWeight: "$body-bold-font-weight",
|
|
437
|
+
textOverflow: "ellipsis",
|
|
438
|
+
whiteSpace: "nowrap",
|
|
439
|
+
},
|
|
440
|
+
Link: {
|
|
441
|
+
$: "a",
|
|
442
|
+
display: "flex",
|
|
443
|
+
alignItems: "center",
|
|
444
|
+
minInlineSize: "0",
|
|
445
|
+
gap: "0.25em",
|
|
446
|
+
fill: "#surface",
|
|
447
|
+
fontSize: "0.9375rem",
|
|
448
|
+
},
|
|
449
|
+
LinkLabel: {
|
|
450
|
+
$: "a > span:first-child",
|
|
451
|
+
minInlineSize: "0",
|
|
452
|
+
overflow: "hidden",
|
|
453
|
+
textOverflow: "ellipsis",
|
|
454
|
+
whiteSpace: "nowrap",
|
|
455
|
+
},
|
|
456
|
+
InteractiveControl: {
|
|
457
|
+
$: ["a:hover", "a:focus-visible", "summary:hover"],
|
|
429
458
|
color: "#text",
|
|
430
459
|
fill: "#surface-2-hover",
|
|
431
460
|
},
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
useGlobalStyles("#starlight__sidebar .large", {
|
|
443
|
-
fontSize: "0.9375rem",
|
|
444
|
-
fontWeight: "$body-bold-font-weight",
|
|
445
|
-
color: "#text",
|
|
461
|
+
SummaryMarker: {
|
|
462
|
+
$: "summary::marker",
|
|
463
|
+
hide: true,
|
|
464
|
+
},
|
|
465
|
+
TopLevelLink: {
|
|
466
|
+
$: "a.large",
|
|
467
|
+
fontSize: "0.9375rem",
|
|
468
|
+
fontWeight: "$body-bold-font-weight",
|
|
469
|
+
color: "#text",
|
|
470
|
+
},
|
|
446
471
|
});
|
|
447
472
|
|
|
448
473
|
useGlobalStyles(".right-sidebar-panel", {
|
|
449
474
|
paddingBlockStart: "($gap * 5)",
|
|
450
475
|
paddingInlineStart: "$docs-sidebar-pad-x",
|
|
451
476
|
paddingInlineEnd: "$docs-sidebar-pad-x",
|
|
452
|
-
});
|
|
453
|
-
|
|
454
|
-
useGlobalStyles(".right-sidebar-panel h2", {
|
|
455
|
-
marginBlockEnd: "$gap",
|
|
456
|
-
color: "#text",
|
|
457
|
-
fontSize: "0.9375rem",
|
|
458
|
-
fontWeight: "$body-bold-font-weight",
|
|
459
|
-
lineHeight: "$heading-line-height",
|
|
460
|
-
});
|
|
461
|
-
|
|
462
|
-
useGlobalStyles(".right-sidebar-panel ul", {
|
|
463
|
-
display: "grid",
|
|
464
|
-
gap: "1px",
|
|
465
|
-
margin: "0",
|
|
466
|
-
padding: "0",
|
|
467
|
-
listStyle: "none",
|
|
468
|
-
});
|
|
469
|
-
|
|
470
|
-
useGlobalStyles(".right-sidebar-panel li", {
|
|
471
|
-
margin: "0",
|
|
472
|
-
padding: "0",
|
|
473
|
-
listStyle: "none",
|
|
474
|
-
});
|
|
475
477
|
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
478
|
+
Heading: {
|
|
479
|
+
$: "h2",
|
|
480
|
+
marginBlockEnd: "$gap",
|
|
481
|
+
color: "#text",
|
|
482
|
+
fontSize: "0.9375rem",
|
|
483
|
+
fontWeight: "$body-bold-font-weight",
|
|
484
|
+
lineHeight: "$heading-line-height",
|
|
485
|
+
},
|
|
486
|
+
List: {
|
|
487
|
+
$: "ul",
|
|
488
|
+
display: "grid",
|
|
489
|
+
gridTemplateColumns: "minmax(0, 1fr)",
|
|
490
|
+
minInlineSize: "0",
|
|
491
|
+
gap: "1px",
|
|
492
|
+
margin: "0",
|
|
493
|
+
padding: "0",
|
|
494
|
+
listStyle: "none",
|
|
495
|
+
},
|
|
496
|
+
Item: {
|
|
497
|
+
$: "li",
|
|
498
|
+
minInlineSize: "0",
|
|
499
|
+
margin: "0",
|
|
500
|
+
padding: "0",
|
|
501
|
+
listStyle: "none",
|
|
502
|
+
},
|
|
503
|
+
Link: {
|
|
504
|
+
$: "a",
|
|
505
|
+
display: "block",
|
|
506
|
+
minInlineSize: "0",
|
|
507
|
+
maxInlineSize: "100%",
|
|
508
|
+
paddingBlockStart: "($gap * 0.5)",
|
|
509
|
+
paddingBlockEnd: "($gap * 0.5)",
|
|
510
|
+
color: "#text-muted",
|
|
511
|
+
fontSize: "$small-font-size",
|
|
512
|
+
lineHeight: "1.45",
|
|
513
|
+
textDecoration: "none",
|
|
514
|
+
overflowWrap: "anywhere",
|
|
515
|
+
},
|
|
516
|
+
LinkLabel: {
|
|
517
|
+
$: "a > span",
|
|
518
|
+
display: "block",
|
|
519
|
+
minInlineSize: "0",
|
|
520
|
+
overflow: "hidden",
|
|
521
|
+
textOverflow: "ellipsis",
|
|
522
|
+
whiteSpace: "nowrap",
|
|
523
|
+
},
|
|
524
|
+
HoverLink: {
|
|
525
|
+
$: "a:hover",
|
|
526
|
+
color: "#text",
|
|
527
|
+
},
|
|
528
|
+
CurrentLink: {
|
|
529
|
+
$: 'a[aria-current="true"]',
|
|
530
|
+
color: "#accent-text",
|
|
531
|
+
},
|
|
493
532
|
});
|
|
494
533
|
|
|
495
534
|
useGlobalStyles(".content-panel", {
|
|
@@ -1457,48 +1496,54 @@ export default function GlobalStyles() {
|
|
|
1457
1496
|
|
|
1458
1497
|
useGlobalStyles("mobile-starlight-toc .dropdown .isMobile", {
|
|
1459
1498
|
display: "grid",
|
|
1499
|
+
gridTemplateColumns: "minmax(0, 1fr)",
|
|
1500
|
+
minInlineSize: "0",
|
|
1460
1501
|
gap: "1px",
|
|
1461
1502
|
margin: "0",
|
|
1462
1503
|
padding: "0",
|
|
1463
1504
|
listStyle: "none",
|
|
1464
|
-
});
|
|
1465
|
-
|
|
1466
|
-
useGlobalStyles("mobile-starlight-toc .dropdown .isMobile > li", {
|
|
1467
|
-
margin: "0",
|
|
1468
|
-
padding: "0",
|
|
1469
|
-
listStyle: "none",
|
|
1470
|
-
});
|
|
1471
|
-
|
|
1472
|
-
useGlobalStyles("mobile-starlight-toc .dropdown .isMobile a", {
|
|
1473
|
-
display: "flex",
|
|
1474
|
-
alignItems: "center",
|
|
1475
|
-
minBlockSize: "2.5rem",
|
|
1476
|
-
padding: "0.625rem 0.75rem",
|
|
1477
|
-
color: "#text-soft",
|
|
1478
|
-
radius: "$radius",
|
|
1479
|
-
fill: "#surface-2",
|
|
1480
|
-
textDecoration: "none",
|
|
1481
|
-
});
|
|
1482
1505
|
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
{
|
|
1506
|
+
Item: {
|
|
1507
|
+
$: "> li",
|
|
1508
|
+
minInlineSize: "0",
|
|
1509
|
+
margin: "0",
|
|
1510
|
+
padding: "0",
|
|
1511
|
+
listStyle: "none",
|
|
1512
|
+
},
|
|
1513
|
+
Link: {
|
|
1514
|
+
$: "a",
|
|
1515
|
+
display: "flex",
|
|
1516
|
+
alignItems: "center",
|
|
1517
|
+
minInlineSize: "0",
|
|
1518
|
+
minBlockSize: "2.5rem",
|
|
1519
|
+
padding: "0.625rem 0.75rem",
|
|
1520
|
+
color: "#text-soft",
|
|
1521
|
+
radius: "$radius",
|
|
1522
|
+
fill: "#surface-2",
|
|
1523
|
+
textDecoration: "none",
|
|
1524
|
+
},
|
|
1525
|
+
LinkLabel: {
|
|
1526
|
+
$: "a > span",
|
|
1527
|
+
minInlineSize: "0",
|
|
1528
|
+
overflow: "hidden",
|
|
1529
|
+
textOverflow: "ellipsis",
|
|
1530
|
+
whiteSpace: "nowrap",
|
|
1531
|
+
},
|
|
1532
|
+
HoverLink: {
|
|
1533
|
+
$: "a:hover",
|
|
1534
|
+
color: "#text",
|
|
1535
|
+
fill: "#surface-2-hover",
|
|
1536
|
+
},
|
|
1537
|
+
CurrentLink: {
|
|
1538
|
+
$: 'a[aria-current="true"]',
|
|
1491
1539
|
color: "#accent-text",
|
|
1492
1540
|
fill: "#accent-surface-2-subtle",
|
|
1493
1541
|
},
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
useGlobalStyles(
|
|
1497
|
-
'mobile-starlight-toc .dropdown .isMobile a[aria-current="true"]::after',
|
|
1498
|
-
{
|
|
1542
|
+
CurrentIndicator: {
|
|
1543
|
+
$: 'a[aria-current="true"]::after',
|
|
1499
1544
|
blockSize: "1rem",
|
|
1500
1545
|
},
|
|
1501
|
-
);
|
|
1546
|
+
});
|
|
1502
1547
|
|
|
1503
1548
|
useGlobalStyles(
|
|
1504
1549
|
".sl-markdown-content :where(code):not(:where(.not-content *))",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tenphi/starlight",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.6",
|
|
4
4
|
"description": "Astro and Starlight renderer for Cookbook",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@astrojs/starlight": "^0.41.10",
|
|
50
50
|
"@fontsource-variable/jetbrains-mono": "^5.3.0",
|
|
51
51
|
"@fontsource-variable/onest": "^5.3.0",
|
|
52
|
-
"@tenphi/docs": "0.9.
|
|
52
|
+
"@tenphi/docs": "0.9.6",
|
|
53
53
|
"@tenphi/glaze": "2.0.0",
|
|
54
54
|
"@tenphi/tasty": "3.6.0",
|
|
55
55
|
"beautiful-mermaid": "^1.1.3",
|