for-humanity 0.6.0 → 0.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.
- package/CHANGELOG.md +7 -0
- package/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/browser.js +9 -9
- package/dist/cli.css +25 -310
- package/dist/cli.js +120 -314
- package/package.json +4 -3
- package/src/asset/font/{jetbrains-mono/LICENSE → monoplex-kr/LICENSE.md} +61 -8
- package/src/asset/font/monoplex-kr/MonoplexKR-Regular.woff2 +0 -0
- package/src/asset/font/monoplex-kr/MonoplexKR-SemiBold.woff2 +0 -0
- package/src/asset/font/monoplex-kr/monoplex-kr.css +20 -0
- package/src/component/widget/navigation/_constant/navigation-data-schema.ts +0 -3
- package/src/component/widget/navigation/_function/to-navigation-data/_to-navigation-document.ts +2 -3
- package/src/component/widget/navigation/_function/to-navigation-data/_to-navigation-group.ts +3 -4
- package/src/component/widget/navigation/_function/to-navigation-data/to-navigation-data.ts +6 -14
- package/src/component/widget/navigation/_type/navigation-data.ts +0 -12
- package/src/component/widget/navigation/_type/navigation-focus-snapshot.ts +0 -4
- package/src/component/widget/navigation/_wg-navigation-nav-list.css +5 -136
- package/src/component/widget/navigation/_wg-navigation-nav-list.tsx +10 -55
- package/src/component/widget/navigation/_wg-navigation-nav.css +2 -8
- package/src/component/widget/navigation/_wg-navigation-nav.tsx +1 -11
- package/src/component/widget/navigation/_wg-navigation-toc.css +12 -207
- package/src/component/widget/navigation/_wg-navigation-toc.tsx +39 -80
- package/src/component/widget/navigation/wg-navigation.tsx +10 -69
- package/src/component/widget/prose/wg-prose.css +0 -3
- package/src/component/widget/shell/wg-shell.css +1 -1
- package/src/constant/copy.ts +0 -5
- package/src/constant/font.ts +2 -12
- package/src/entry/browser/browser.tsx +1 -1
- package/src/entry/cli/cli.test.ts +6 -8
- package/src/entry/cli/cli.ts +6 -18
- package/src/store/navigation/create-navigation-stores.test.ts +10 -28
- package/src/store/navigation/create-navigation-stores.ts +4 -18
- package/src/store/navigation/navigation-state.ts +0 -10
- package/src/store/navigation/navigation-storage.ts +0 -5
- package/src/style/token.css +11 -14
- package/src/util/font/to-font-css.test.ts +2 -2
- package/src/util/mermaid/render-flow.js +2 -2
- package/src/asset/font/jetbrains-mono/jetbrains-mono-latin-wght-normal.woff2 +0 -0
- package/src/asset/font/jetbrains-mono/jetbrains-mono.css +0 -11
- package/src/asset/font/pretendard/LICENSE.txt +0 -94
- package/src/asset/font/pretendard/pretendardvariable-dynamic-subset.css +0 -1008
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.0.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.1.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.10.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.11.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.12.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.13.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.14.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.15.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.16.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.17.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.18.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.19.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.2.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.20.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.21.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.22.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.23.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.24.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.25.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.26.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.27.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.28.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.29.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.3.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.30.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.31.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.32.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.33.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.34.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.35.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.36.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.37.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.38.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.39.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.4.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.40.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.41.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.42.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.43.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.44.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.45.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.46.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.47.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.48.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.49.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.5.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.50.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.51.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.52.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.53.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.54.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.55.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.56.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.57.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.58.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.59.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.6.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.60.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.61.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.62.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.63.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.64.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.65.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.66.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.67.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.68.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.69.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.7.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.70.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.71.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.72.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.73.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.74.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.75.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.76.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.77.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.78.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.79.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.8.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.80.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.81.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.82.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.83.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.84.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.85.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.86.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.87.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.88.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.89.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.9.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.90.woff2 +0 -0
- package/src/asset/font/pretendard/woff2-dynamic-subset/PretendardVariable.subset.91.woff2 +0 -0
- package/src/component/widget/navigation/_function/to-navigation-branch-id.ts +0 -6
- package/src/component/widget/navigation/_wg-navigation-branch-toggle.css +0 -28
- package/src/component/widget/navigation/_wg-navigation-branch-toggle.tsx +0 -48
- package/src/store/navigation/_constant/tree.ts +0 -6
- package/src/store/navigation/to-navigation-tree-state.ts +0 -19
- package/src/store/navigation/use-navigation-tree-store.ts +0 -12
package/dist/cli.css
CHANGED
|
@@ -108,7 +108,6 @@
|
|
|
108
108
|
color: var(--app-color-text-strong);
|
|
109
109
|
font-family: var(--app-font-mono);
|
|
110
110
|
font-size: 1em;
|
|
111
|
-
font-variant-ligatures: none;
|
|
112
111
|
}
|
|
113
112
|
& pre {
|
|
114
113
|
overflow-x: auto;
|
|
@@ -119,7 +118,6 @@
|
|
|
119
118
|
background: var(--app-color-code);
|
|
120
119
|
font-family: var(--app-font-mono);
|
|
121
120
|
font-size: var(--app-font-size-detail);
|
|
122
|
-
font-variant-ligatures: none;
|
|
123
121
|
line-height: var(--app-line-height-code);
|
|
124
122
|
}
|
|
125
123
|
& pre code {
|
|
@@ -310,170 +308,44 @@
|
|
|
310
308
|
visibility: visible;
|
|
311
309
|
}
|
|
312
310
|
|
|
313
|
-
/* src/component/widget/navigation/_wg-navigation-branch-toggle.css */
|
|
314
|
-
.wg_navigationBranchToggle__root {
|
|
315
|
-
position: absolute;
|
|
316
|
-
top: 0;
|
|
317
|
-
right: 0;
|
|
318
|
-
width: var(--app-size-tree-toggle);
|
|
319
|
-
height: calc(var(--app-font-size-dense) * var(--app-line-height-tight) + var(--app-space-tree-row) * 2);
|
|
320
|
-
padding: 0;
|
|
321
|
-
border: 0;
|
|
322
|
-
background: transparent;
|
|
323
|
-
color: var(--app-color-border-soft);
|
|
324
|
-
font-family: var(--app-font-mono);
|
|
325
|
-
font-size: var(--app-font-size-body);
|
|
326
|
-
line-height: 1;
|
|
327
|
-
cursor: pointer;
|
|
328
|
-
&:hover {
|
|
329
|
-
background: var(--app-color-accent-soft);
|
|
330
|
-
color: var(--app-color-text-strong);
|
|
331
|
-
}
|
|
332
|
-
&:focus-visible {
|
|
333
|
-
background: var(--app-color-accent-soft);
|
|
334
|
-
color: var(--app-color-text-strong);
|
|
335
|
-
outline: var(--app-outline-focus);
|
|
336
|
-
outline-offset: calc(0px - var(--app-outline-focus-offset));
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
|
|
340
311
|
/* src/component/widget/navigation/_wg-navigation-nav-list.css */
|
|
341
312
|
.wg_navigationNavList__root {
|
|
342
|
-
margin: 0
|
|
313
|
+
margin: 0;
|
|
343
314
|
padding: 0;
|
|
344
315
|
list-style: none;
|
|
345
316
|
}
|
|
346
317
|
.wg_navigationNavList__branch {
|
|
347
|
-
position: relative;
|
|
348
318
|
display: block;
|
|
349
|
-
padding: var(--app-space-tree-row) 0
|
|
319
|
+
padding: var(--app-space-tree-row) 0;
|
|
350
320
|
color: var(--app-color-text-muted);
|
|
351
321
|
font-size: var(--app-font-size-group);
|
|
352
322
|
line-height: calc(var(--app-font-size-dense) * var(--app-line-height-tight));
|
|
353
323
|
overflow-wrap: anywhere;
|
|
354
|
-
&::before {
|
|
355
|
-
position: absolute;
|
|
356
|
-
top: calc(0.5lh + var(--app-space-tree-row));
|
|
357
|
-
left: 0;
|
|
358
|
-
width: var(--app-space-tree-indent);
|
|
359
|
-
border-top: 1px solid var(--app-color-border-soft);
|
|
360
|
-
content: "";
|
|
361
|
-
pointer-events: none;
|
|
362
|
-
}
|
|
363
324
|
}
|
|
364
325
|
.wg_navigationNavList__link {
|
|
365
|
-
position: relative;
|
|
366
326
|
display: block;
|
|
367
|
-
padding: var(--app-space-tree-row) 0
|
|
327
|
+
padding: var(--app-space-tree-row) 0;
|
|
368
328
|
color: var(--app-color-link);
|
|
369
329
|
font-size: var(--app-font-size-dense);
|
|
370
330
|
line-height: var(--app-line-height-tight);
|
|
371
331
|
text-decoration: none;
|
|
372
332
|
overflow-wrap: anywhere;
|
|
373
|
-
&::before {
|
|
374
|
-
position: absolute;
|
|
375
|
-
top: calc(0.5lh + var(--app-space-tree-row));
|
|
376
|
-
left: 0;
|
|
377
|
-
width: var(--app-space-tree-indent);
|
|
378
|
-
border-top: 1px solid var(--app-color-border-soft);
|
|
379
|
-
content: "";
|
|
380
|
-
pointer-events: none;
|
|
381
|
-
}
|
|
382
333
|
&:where(:hover) {
|
|
383
334
|
text-decoration: underline;
|
|
384
335
|
}
|
|
385
|
-
&:where(:hover)::before {
|
|
386
|
-
border-top-color: currentcolor;
|
|
387
|
-
}
|
|
388
336
|
&:where(:focus-visible) {
|
|
389
337
|
outline: none;
|
|
390
338
|
text-decoration: underline;
|
|
391
339
|
}
|
|
392
|
-
&:where(:focus-visible)::before {
|
|
393
|
-
border-top-color: currentcolor;
|
|
394
|
-
}
|
|
395
340
|
}
|
|
396
341
|
.wg_navigationNavList__link--active {
|
|
397
342
|
color: var(--app-color-link);
|
|
398
343
|
font-weight: var(--app-font-weight-active);
|
|
399
|
-
&::before {
|
|
400
|
-
border-top-color: currentcolor;
|
|
401
|
-
}
|
|
402
344
|
}
|
|
403
345
|
.wg_navigationNavList__item {
|
|
404
|
-
display: flow-root;
|
|
405
|
-
position: relative;
|
|
406
|
-
&:has(> .wg_navigationBranchToggle__root) > .wg_navigationNavList__link {
|
|
407
|
-
padding-inline-end: calc(var(--app-size-tree-toggle) + var(--app-space-inline));
|
|
408
|
-
}
|
|
409
|
-
&:has(> .wg_navigationBranchToggle__root) > .wg_navigationNavList__branch {
|
|
410
|
-
padding-inline-end: calc(var(--app-size-tree-toggle) + var(--app-space-inline));
|
|
411
|
-
}
|
|
412
|
-
&::before {
|
|
413
|
-
position: absolute;
|
|
414
|
-
top: 0;
|
|
415
|
-
bottom: 0;
|
|
416
|
-
left: 0;
|
|
417
|
-
border-left: 1px solid var(--app-color-border-soft);
|
|
418
|
-
content: "";
|
|
419
|
-
pointer-events: none;
|
|
420
|
-
}
|
|
421
|
-
&:where(:last-child)::before {
|
|
422
|
-
bottom: auto;
|
|
423
|
-
height: calc(0.5lh + var(--app-space-tree-row));
|
|
424
|
-
}
|
|
425
|
-
&::after {
|
|
426
|
-
position: absolute;
|
|
427
|
-
top: 0;
|
|
428
|
-
left: 0;
|
|
429
|
-
height: calc(0.5lh + var(--app-space-tree-row));
|
|
430
|
-
border-left: 1px solid transparent;
|
|
431
|
-
content: "";
|
|
432
|
-
pointer-events: none;
|
|
433
|
-
}
|
|
434
|
-
&:where(:hover)::after {
|
|
435
|
-
border-left-color: var(--app-color-link);
|
|
436
|
-
}
|
|
437
|
-
&:where(:has(:focus-visible))::after {
|
|
438
|
-
border-left-color: var(--app-color-link);
|
|
439
|
-
}
|
|
440
|
-
&:where(:has(~ .wg_navigationNavList__item:hover))::before {
|
|
441
|
-
border-left-color: var(--app-color-link);
|
|
442
|
-
}
|
|
443
|
-
&:where(:has(~ .wg_navigationNavList__item :focus-visible))::before {
|
|
444
|
-
border-left-color: var(--app-color-link);
|
|
445
|
-
}
|
|
446
346
|
& > .wg_navigationNavList__root {
|
|
447
347
|
margin-left: var(--app-space-tree-indent);
|
|
448
348
|
}
|
|
449
|
-
&:where(:hover) > .wg_navigationNavList__branch::before {
|
|
450
|
-
border-top-color: var(--app-color-link);
|
|
451
|
-
}
|
|
452
|
-
&:where(:has(:focus-visible)) > .wg_navigationNavList__branch::before {
|
|
453
|
-
border-top-color: var(--app-color-link);
|
|
454
|
-
}
|
|
455
|
-
&:where(:hover) > .wg_navigationNavList__link::before {
|
|
456
|
-
border-top-color: var(--app-color-link);
|
|
457
|
-
}
|
|
458
|
-
&:where(:has(:focus-visible)) > .wg_navigationNavList__link::before {
|
|
459
|
-
border-top-color: var(--app-color-link);
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
.wg_navigationNavList__item--trail {
|
|
463
|
-
&::before {
|
|
464
|
-
border-left-color: var(--app-color-link);
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
.wg_navigationNavList__item--current {
|
|
468
|
-
&::after {
|
|
469
|
-
border-left-color: var(--app-color-link);
|
|
470
|
-
}
|
|
471
|
-
& > .wg_navigationNavList__branch::before {
|
|
472
|
-
border-top-color: var(--app-color-link);
|
|
473
|
-
}
|
|
474
|
-
& > .wg_navigationNavList__link::before {
|
|
475
|
-
border-top-color: var(--app-color-link);
|
|
476
|
-
}
|
|
477
349
|
}
|
|
478
350
|
|
|
479
351
|
/* src/component/widget/navigation/_wg-navigation-nav.css */
|
|
@@ -484,19 +356,15 @@
|
|
|
484
356
|
.wg_navigationNav__docs {
|
|
485
357
|
display: flex;
|
|
486
358
|
flex-direction: column;
|
|
487
|
-
gap: var(--app-space-
|
|
359
|
+
gap: var(--app-space-tree-group);
|
|
488
360
|
}
|
|
489
361
|
.wg_navigationNav__group {
|
|
490
|
-
|
|
491
|
-
margin: 0 0 4px;
|
|
362
|
+
margin: 0 0 var(--app-space-tree-label);
|
|
492
363
|
color: var(--app-color-text-muted);
|
|
493
364
|
font-size: var(--app-font-size-group);
|
|
494
365
|
line-height: calc(var(--app-font-size-dense) * var(--app-line-height-tight));
|
|
495
366
|
text-box: trim-start cap alphabetic;
|
|
496
367
|
}
|
|
497
|
-
.wg_navigationNav__docGroup {
|
|
498
|
-
position: relative;
|
|
499
|
-
}
|
|
500
368
|
|
|
501
369
|
/* src/component/widget/navigation/_wg-navigation-toc.css */
|
|
502
370
|
.wg_navigationToc__root {
|
|
@@ -504,222 +372,73 @@
|
|
|
504
372
|
line-height: var(--app-line-height-tight);
|
|
505
373
|
}
|
|
506
374
|
.wg_navigationToc__label {
|
|
507
|
-
margin
|
|
375
|
+
margin: 0 0 var(--app-space-tree-label);
|
|
508
376
|
color: var(--app-color-text-muted);
|
|
509
|
-
font-size: var(--app-font-size-
|
|
510
|
-
|
|
511
|
-
|
|
377
|
+
font-size: var(--app-font-size-group);
|
|
378
|
+
line-height: calc(var(--app-font-size-dense) * var(--app-line-height-tight));
|
|
379
|
+
text-box: trim-start cap alphabetic;
|
|
512
380
|
}
|
|
513
381
|
.wg_navigationToc__group {
|
|
514
|
-
margin: 0 0
|
|
515
|
-
padding-inline-end: calc(var(--app-size-tree-toggle) + var(--app-space-inline));
|
|
382
|
+
margin: 0 0 var(--app-space-tree-label);
|
|
516
383
|
color: var(--app-color-text-muted);
|
|
517
384
|
font-size: var(--app-font-size-group);
|
|
518
385
|
line-height: calc(var(--app-font-size-dense) * var(--app-line-height-tight));
|
|
519
|
-
|
|
520
|
-
.wg_navigationToc__groupSection {
|
|
521
|
-
position: relative;
|
|
522
|
-
display: flow-root;
|
|
386
|
+
text-box: trim-start cap alphabetic;
|
|
523
387
|
}
|
|
524
388
|
.wg_navigationToc__groupSection--named {
|
|
525
|
-
margin-top: var(--app-space-
|
|
389
|
+
margin-top: var(--app-space-tree-group);
|
|
526
390
|
}
|
|
527
391
|
.wg_navigationToc__list {
|
|
528
|
-
margin: 0
|
|
392
|
+
margin: 0;
|
|
529
393
|
padding: 0;
|
|
530
394
|
list-style: none;
|
|
531
395
|
}
|
|
532
396
|
.wg_navigationToc__link {
|
|
533
|
-
position: relative;
|
|
534
397
|
display: block;
|
|
535
|
-
padding: var(--app-space-tree-row) 0
|
|
398
|
+
padding: var(--app-space-tree-row) 0;
|
|
536
399
|
color: var(--app-color-text);
|
|
537
400
|
font-size: var(--app-font-size-dense);
|
|
538
401
|
line-height: var(--app-line-height-tight);
|
|
539
402
|
text-decoration: none;
|
|
540
|
-
&::before {
|
|
541
|
-
position: absolute;
|
|
542
|
-
top: calc(0.5lh + var(--app-space-tree-row));
|
|
543
|
-
left: 0;
|
|
544
|
-
width: var(--app-space-tree-indent);
|
|
545
|
-
border-top: 1px solid var(--app-color-border-soft);
|
|
546
|
-
content: "";
|
|
547
|
-
pointer-events: none;
|
|
548
|
-
}
|
|
549
403
|
&:where(:hover) {
|
|
550
404
|
color: var(--app-color-text-strong);
|
|
551
405
|
text-decoration: underline;
|
|
552
406
|
}
|
|
553
|
-
&:where(:hover)::before {
|
|
554
|
-
border-top-color: currentcolor;
|
|
555
|
-
}
|
|
556
407
|
&:where(:focus-visible) {
|
|
557
408
|
outline: none;
|
|
558
409
|
color: var(--app-color-text-strong);
|
|
559
410
|
text-decoration: underline;
|
|
560
411
|
}
|
|
561
|
-
&:where(:focus-visible)::before {
|
|
562
|
-
border-top-color: currentcolor;
|
|
563
|
-
}
|
|
564
412
|
}
|
|
565
413
|
.wg_navigationToc__link--active {
|
|
566
414
|
color: var(--app-color-text-strong);
|
|
567
415
|
font-weight: var(--app-font-weight-active);
|
|
568
|
-
&::before {
|
|
569
|
-
border-top-color: currentcolor;
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
.wg_navigationToc__item {
|
|
573
|
-
display: flow-root;
|
|
574
|
-
position: relative;
|
|
575
|
-
&:has(> .wg_navigationBranchToggle__root) > .wg_navigationToc__link {
|
|
576
|
-
padding-inline-end: calc(var(--app-size-tree-toggle) + var(--app-space-inline));
|
|
577
|
-
}
|
|
578
|
-
&::before {
|
|
579
|
-
position: absolute;
|
|
580
|
-
top: 0;
|
|
581
|
-
bottom: 0;
|
|
582
|
-
left: 0;
|
|
583
|
-
border-left: 1px solid var(--app-color-border-soft);
|
|
584
|
-
content: "";
|
|
585
|
-
pointer-events: none;
|
|
586
|
-
}
|
|
587
|
-
&:where(:last-child)::before {
|
|
588
|
-
bottom: auto;
|
|
589
|
-
height: calc(0.5lh + var(--app-space-tree-row));
|
|
590
|
-
}
|
|
591
|
-
&::after {
|
|
592
|
-
position: absolute;
|
|
593
|
-
top: 0;
|
|
594
|
-
left: 0;
|
|
595
|
-
height: calc(0.5lh + var(--app-space-tree-row));
|
|
596
|
-
border-left: 1px solid transparent;
|
|
597
|
-
content: "";
|
|
598
|
-
pointer-events: none;
|
|
599
|
-
}
|
|
600
|
-
&:where(:hover)::after {
|
|
601
|
-
border-left-color: var(--app-color-text-strong);
|
|
602
|
-
}
|
|
603
|
-
&:where(:has(:focus-visible))::after {
|
|
604
|
-
border-left-color: var(--app-color-text-strong);
|
|
605
|
-
}
|
|
606
|
-
&:where(:has(~ .wg_navigationToc__item:hover))::before {
|
|
607
|
-
border-left-color: var(--app-color-text-strong);
|
|
608
|
-
}
|
|
609
|
-
&:where(:has(~ .wg_navigationToc__item :focus-visible))::before {
|
|
610
|
-
border-left-color: var(--app-color-text-strong);
|
|
611
|
-
}
|
|
612
|
-
&:where(:hover) > .wg_navigationToc__link::before {
|
|
613
|
-
border-top-color: var(--app-color-text-strong);
|
|
614
|
-
}
|
|
615
|
-
&:where(:has(:focus-visible)) > .wg_navigationToc__link::before {
|
|
616
|
-
border-top-color: var(--app-color-text-strong);
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
.wg_navigationToc__item--trail {
|
|
620
|
-
&::before {
|
|
621
|
-
border-left-color: var(--app-color-text-strong);
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
.wg_navigationToc__item--current {
|
|
625
|
-
&::after {
|
|
626
|
-
border-left-color: var(--app-color-text-strong);
|
|
627
|
-
}
|
|
628
|
-
& > .wg_navigationToc__link::before {
|
|
629
|
-
border-top-color: var(--app-color-text-strong);
|
|
630
|
-
}
|
|
631
416
|
}
|
|
632
417
|
.wg_navigationToc__sub {
|
|
633
418
|
margin: var(--app-space-tree-row) 0 4px var(--app-space-tree-indent);
|
|
634
419
|
padding: 0;
|
|
635
420
|
list-style: none;
|
|
636
421
|
}
|
|
637
|
-
.wg_navigationToc__subItem {
|
|
638
|
-
position: relative;
|
|
639
|
-
&::before {
|
|
640
|
-
position: absolute;
|
|
641
|
-
top: 0;
|
|
642
|
-
bottom: 0;
|
|
643
|
-
left: 0;
|
|
644
|
-
border-left: 1px solid var(--app-color-border-soft);
|
|
645
|
-
content: "";
|
|
646
|
-
pointer-events: none;
|
|
647
|
-
}
|
|
648
|
-
&:where(:last-child)::before {
|
|
649
|
-
bottom: auto;
|
|
650
|
-
height: calc(0.5lh + var(--app-space-tree-row));
|
|
651
|
-
}
|
|
652
|
-
&::after {
|
|
653
|
-
position: absolute;
|
|
654
|
-
top: 0;
|
|
655
|
-
left: 0;
|
|
656
|
-
height: calc(0.5lh + var(--app-space-tree-row));
|
|
657
|
-
border-left: 1px solid transparent;
|
|
658
|
-
content: "";
|
|
659
|
-
pointer-events: none;
|
|
660
|
-
}
|
|
661
|
-
&:where(:hover)::after {
|
|
662
|
-
border-left-color: var(--app-color-text-strong);
|
|
663
|
-
}
|
|
664
|
-
&:where(:has(:focus-visible))::after {
|
|
665
|
-
border-left-color: var(--app-color-text-strong);
|
|
666
|
-
}
|
|
667
|
-
&:where(:has(~ .wg_navigationToc__subItem:hover))::before {
|
|
668
|
-
border-left-color: var(--app-color-text-strong);
|
|
669
|
-
}
|
|
670
|
-
&:where(:has(~ .wg_navigationToc__subItem :focus-visible))::before {
|
|
671
|
-
border-left-color: var(--app-color-text-strong);
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
.wg_navigationToc__subItem--trail {
|
|
675
|
-
&::before {
|
|
676
|
-
border-left-color: var(--app-color-text-strong);
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
.wg_navigationToc__subItem--current {
|
|
680
|
-
&::after {
|
|
681
|
-
border-left-color: var(--app-color-text-strong);
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
422
|
.wg_navigationToc__subLink {
|
|
685
|
-
position: relative;
|
|
686
423
|
display: block;
|
|
687
|
-
padding: var(--app-space-tree-row) 0
|
|
424
|
+
padding: var(--app-space-tree-row) 0;
|
|
688
425
|
color: var(--app-color-text);
|
|
689
426
|
font-size: var(--app-font-size-detail);
|
|
690
427
|
line-height: var(--app-line-height-tight);
|
|
691
428
|
text-decoration: none;
|
|
692
|
-
&::before {
|
|
693
|
-
position: absolute;
|
|
694
|
-
top: calc(0.5lh + var(--app-space-tree-row));
|
|
695
|
-
left: 0;
|
|
696
|
-
width: var(--app-space-tree-indent);
|
|
697
|
-
border-top: 1px solid var(--app-color-border-soft);
|
|
698
|
-
content: "";
|
|
699
|
-
pointer-events: none;
|
|
700
|
-
}
|
|
701
429
|
&:where(:hover) {
|
|
702
430
|
color: var(--app-color-text-strong);
|
|
703
431
|
text-decoration: underline;
|
|
704
432
|
}
|
|
705
|
-
&:where(:hover)::before {
|
|
706
|
-
border-top-color: currentcolor;
|
|
707
|
-
}
|
|
708
433
|
&:where(:focus-visible) {
|
|
709
434
|
outline: none;
|
|
710
435
|
color: var(--app-color-text-strong);
|
|
711
436
|
text-decoration: underline;
|
|
712
437
|
}
|
|
713
|
-
&:where(:focus-visible)::before {
|
|
714
|
-
border-top-color: currentcolor;
|
|
715
|
-
}
|
|
716
438
|
}
|
|
717
439
|
.wg_navigationToc__subLink--active {
|
|
718
440
|
color: var(--app-color-text-strong);
|
|
719
441
|
font-weight: var(--app-font-weight-active);
|
|
720
|
-
&::before {
|
|
721
|
-
border-top-color: currentcolor;
|
|
722
|
-
}
|
|
723
442
|
}
|
|
724
443
|
|
|
725
444
|
/* src/component/widget/navigation/wg-navigation.css */
|
|
@@ -1022,15 +741,12 @@
|
|
|
1022
741
|
--app-color-verified-soft: light-dark(#edf5ed, #1d2c20);
|
|
1023
742
|
--app-color-unverified: light-dark(#855700, #dfb26c);
|
|
1024
743
|
--app-color-unverified-soft: light-dark(#faf2df, #30291c);
|
|
1025
|
-
--app-font-
|
|
1026
|
-
"
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
--app-font-mono: "JetBrains Mono Variable", var(--app-font-sans);
|
|
1031
|
-
--app-font-brand: "Architects Daughter", var(--app-font-sans);
|
|
744
|
+
--app-font-mono:
|
|
745
|
+
"Monoplex KR",
|
|
746
|
+
ui-monospace,
|
|
747
|
+
monospace;
|
|
748
|
+
--app-font-brand: "Architects Daughter", var(--app-font-mono);
|
|
1032
749
|
--app-font-size-group: 11px;
|
|
1033
|
-
--app-font-size-label: 12px;
|
|
1034
750
|
--app-font-size-detail: 12px;
|
|
1035
751
|
--app-font-size-dense: 12px;
|
|
1036
752
|
--app-font-size-body: 12px;
|
|
@@ -1044,10 +760,9 @@
|
|
|
1044
760
|
--app-font-weight-title: 600;
|
|
1045
761
|
--app-line-height-title: 1.5;
|
|
1046
762
|
--app-line-height-heading: 1.5;
|
|
1047
|
-
--app-line-height-tight: 1.
|
|
763
|
+
--app-line-height-tight: 1.4;
|
|
1048
764
|
--app-line-height-code: 1.65;
|
|
1049
765
|
--app-line-height-body: 1.7;
|
|
1050
|
-
--app-letter-spacing-label: 0;
|
|
1051
766
|
--app-letter-spacing-brand: 0;
|
|
1052
767
|
--app-letter-spacing-heading: -0.01em;
|
|
1053
768
|
--app-letter-spacing-title: -0.015em;
|
|
@@ -1056,8 +771,9 @@
|
|
|
1056
771
|
--app-space-block: 14px;
|
|
1057
772
|
--app-space-group: 20px;
|
|
1058
773
|
--app-space-section: 32px;
|
|
1059
|
-
--app-space-tree-row:
|
|
1060
|
-
--app-space-tree-
|
|
774
|
+
--app-space-tree-row: 0px;
|
|
775
|
+
--app-space-tree-group: 16px;
|
|
776
|
+
--app-space-tree-label: 2px;
|
|
1061
777
|
--app-space-tree-indent: 12px;
|
|
1062
778
|
--app-space-page-top: 28px;
|
|
1063
779
|
--app-space-gutter: 28px;
|
|
@@ -1071,7 +787,6 @@
|
|
|
1071
787
|
--app-size-menu-button: 44px;
|
|
1072
788
|
--app-size-drawer: 320px;
|
|
1073
789
|
--app-size-navigation-fade: 28px;
|
|
1074
|
-
--app-size-tree-toggle: 24px;
|
|
1075
790
|
--app-space-anchor: 80px;
|
|
1076
791
|
--app-radius-pill: 0;
|
|
1077
792
|
--app-radius-card: 0;
|
|
@@ -1118,7 +833,7 @@
|
|
|
1118
833
|
grid-template: "nav main outline" 1fr / calc(var(--app-size-sidebar) + var(--app-space-sidebar-gap)) minmax(0, var(--app-size-main)) calc(var(--app-size-sidebar) + var(--app-space-sidebar-gap));
|
|
1119
834
|
background: var(--app-color-ground);
|
|
1120
835
|
color: var(--app-color-text);
|
|
1121
|
-
font-family: var(--app-font-
|
|
836
|
+
font-family: var(--app-font-mono);
|
|
1122
837
|
font-size: var(--app-font-size-body);
|
|
1123
838
|
line-height: var(--app-line-height-body);
|
|
1124
839
|
word-break: keep-all;
|