for-humanity 0.6.0 → 0.7.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.
- package/CHANGELOG.md +13 -0
- package/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/browser.js +9 -9
- package/dist/cli.css +39 -322
- package/dist/cli.js +123 -309
- package/package.json +4 -3
- package/src/asset/font/ibm-plex-sans-kr/IBMPlexSansKR-Regular.woff2 +0 -0
- package/src/asset/font/ibm-plex-sans-kr/IBMPlexSansKR-SemiBold.woff2 +0 -0
- package/src/asset/font/{pretendard → ibm-plex-sans-kr}/LICENSE.txt +4 -5
- package/src/asset/font/ibm-plex-sans-kr/ibm-plex-sans-kr.css +22 -0
- 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/_constant/navigation.ts +2 -2
- 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.css +1 -1
- package/src/component/widget/navigation/wg-navigation.tsx +10 -69
- package/src/component/widget/prose/wg-prose.css +7 -4
- package/src/component/widget/shell/wg-shell.css +7 -11
- package/src/constant/copy.ts +0 -5
- package/src/constant/font.ts +4 -9
- package/src/entry/browser/browser.tsx +1 -1
- package/src/entry/cli/cli.test.ts +6 -8
- package/src/entry/cli/cli.ts +7 -12
- 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 +21 -20
- 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/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
|
@@ -106,9 +106,8 @@
|
|
|
106
106
|
border-radius: var(--app-radius-inline);
|
|
107
107
|
background: var(--app-color-code);
|
|
108
108
|
color: var(--app-color-text-strong);
|
|
109
|
-
font-family:
|
|
109
|
+
font-family: inherit;
|
|
110
110
|
font-size: 1em;
|
|
111
|
-
font-variant-ligatures: none;
|
|
112
111
|
}
|
|
113
112
|
& pre {
|
|
114
113
|
overflow-x: auto;
|
|
@@ -119,8 +118,8 @@
|
|
|
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);
|
|
122
|
+
letter-spacing: 0;
|
|
124
123
|
}
|
|
125
124
|
& pre code {
|
|
126
125
|
padding: 0;
|
|
@@ -249,6 +248,7 @@
|
|
|
249
248
|
overflow-x: auto;
|
|
250
249
|
margin: var(--app-space-block) 0;
|
|
251
250
|
padding: var(--app-space-block) 0;
|
|
251
|
+
letter-spacing: 0;
|
|
252
252
|
& svg {
|
|
253
253
|
display: block;
|
|
254
254
|
max-width: 100%;
|
|
@@ -310,170 +310,44 @@
|
|
|
310
310
|
visibility: visible;
|
|
311
311
|
}
|
|
312
312
|
|
|
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
313
|
/* src/component/widget/navigation/_wg-navigation-nav-list.css */
|
|
341
314
|
.wg_navigationNavList__root {
|
|
342
|
-
margin: 0
|
|
315
|
+
margin: 0;
|
|
343
316
|
padding: 0;
|
|
344
317
|
list-style: none;
|
|
345
318
|
}
|
|
346
319
|
.wg_navigationNavList__branch {
|
|
347
|
-
position: relative;
|
|
348
320
|
display: block;
|
|
349
|
-
padding: var(--app-space-tree-row) 0
|
|
321
|
+
padding: var(--app-space-tree-row) 0;
|
|
350
322
|
color: var(--app-color-text-muted);
|
|
351
323
|
font-size: var(--app-font-size-group);
|
|
352
324
|
line-height: calc(var(--app-font-size-dense) * var(--app-line-height-tight));
|
|
353
325
|
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
326
|
}
|
|
364
327
|
.wg_navigationNavList__link {
|
|
365
|
-
position: relative;
|
|
366
328
|
display: block;
|
|
367
|
-
padding: var(--app-space-tree-row) 0
|
|
329
|
+
padding: var(--app-space-tree-row) 0;
|
|
368
330
|
color: var(--app-color-link);
|
|
369
331
|
font-size: var(--app-font-size-dense);
|
|
370
332
|
line-height: var(--app-line-height-tight);
|
|
371
333
|
text-decoration: none;
|
|
372
334
|
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
335
|
&:where(:hover) {
|
|
383
336
|
text-decoration: underline;
|
|
384
337
|
}
|
|
385
|
-
&:where(:hover)::before {
|
|
386
|
-
border-top-color: currentcolor;
|
|
387
|
-
}
|
|
388
338
|
&:where(:focus-visible) {
|
|
389
339
|
outline: none;
|
|
390
340
|
text-decoration: underline;
|
|
391
341
|
}
|
|
392
|
-
&:where(:focus-visible)::before {
|
|
393
|
-
border-top-color: currentcolor;
|
|
394
|
-
}
|
|
395
342
|
}
|
|
396
343
|
.wg_navigationNavList__link--active {
|
|
397
344
|
color: var(--app-color-link);
|
|
398
345
|
font-weight: var(--app-font-weight-active);
|
|
399
|
-
&::before {
|
|
400
|
-
border-top-color: currentcolor;
|
|
401
|
-
}
|
|
402
346
|
}
|
|
403
347
|
.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
348
|
& > .wg_navigationNavList__root {
|
|
447
349
|
margin-left: var(--app-space-tree-indent);
|
|
448
350
|
}
|
|
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
351
|
}
|
|
478
352
|
|
|
479
353
|
/* src/component/widget/navigation/_wg-navigation-nav.css */
|
|
@@ -484,19 +358,15 @@
|
|
|
484
358
|
.wg_navigationNav__docs {
|
|
485
359
|
display: flex;
|
|
486
360
|
flex-direction: column;
|
|
487
|
-
gap: var(--app-space-
|
|
361
|
+
gap: var(--app-space-tree-group);
|
|
488
362
|
}
|
|
489
363
|
.wg_navigationNav__group {
|
|
490
|
-
|
|
491
|
-
margin: 0 0 4px;
|
|
364
|
+
margin: 0 0 var(--app-space-tree-label);
|
|
492
365
|
color: var(--app-color-text-muted);
|
|
493
366
|
font-size: var(--app-font-size-group);
|
|
494
367
|
line-height: calc(var(--app-font-size-dense) * var(--app-line-height-tight));
|
|
495
368
|
text-box: trim-start cap alphabetic;
|
|
496
369
|
}
|
|
497
|
-
.wg_navigationNav__docGroup {
|
|
498
|
-
position: relative;
|
|
499
|
-
}
|
|
500
370
|
|
|
501
371
|
/* src/component/widget/navigation/_wg-navigation-toc.css */
|
|
502
372
|
.wg_navigationToc__root {
|
|
@@ -504,222 +374,73 @@
|
|
|
504
374
|
line-height: var(--app-line-height-tight);
|
|
505
375
|
}
|
|
506
376
|
.wg_navigationToc__label {
|
|
507
|
-
margin
|
|
377
|
+
margin: 0 0 var(--app-space-tree-label);
|
|
508
378
|
color: var(--app-color-text-muted);
|
|
509
|
-
font-size: var(--app-font-size-
|
|
510
|
-
|
|
511
|
-
|
|
379
|
+
font-size: var(--app-font-size-group);
|
|
380
|
+
line-height: calc(var(--app-font-size-dense) * var(--app-line-height-tight));
|
|
381
|
+
text-box: trim-start cap alphabetic;
|
|
512
382
|
}
|
|
513
383
|
.wg_navigationToc__group {
|
|
514
|
-
margin: 0 0
|
|
515
|
-
padding-inline-end: calc(var(--app-size-tree-toggle) + var(--app-space-inline));
|
|
384
|
+
margin: 0 0 var(--app-space-tree-label);
|
|
516
385
|
color: var(--app-color-text-muted);
|
|
517
386
|
font-size: var(--app-font-size-group);
|
|
518
387
|
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;
|
|
388
|
+
text-box: trim-start cap alphabetic;
|
|
523
389
|
}
|
|
524
390
|
.wg_navigationToc__groupSection--named {
|
|
525
|
-
margin-top: var(--app-space-
|
|
391
|
+
margin-top: var(--app-space-tree-group);
|
|
526
392
|
}
|
|
527
393
|
.wg_navigationToc__list {
|
|
528
|
-
margin: 0
|
|
394
|
+
margin: 0;
|
|
529
395
|
padding: 0;
|
|
530
396
|
list-style: none;
|
|
531
397
|
}
|
|
532
398
|
.wg_navigationToc__link {
|
|
533
|
-
position: relative;
|
|
534
399
|
display: block;
|
|
535
|
-
padding: var(--app-space-tree-row) 0
|
|
400
|
+
padding: var(--app-space-tree-row) 0;
|
|
536
401
|
color: var(--app-color-text);
|
|
537
402
|
font-size: var(--app-font-size-dense);
|
|
538
403
|
line-height: var(--app-line-height-tight);
|
|
539
404
|
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
405
|
&:where(:hover) {
|
|
550
406
|
color: var(--app-color-text-strong);
|
|
551
407
|
text-decoration: underline;
|
|
552
408
|
}
|
|
553
|
-
&:where(:hover)::before {
|
|
554
|
-
border-top-color: currentcolor;
|
|
555
|
-
}
|
|
556
409
|
&:where(:focus-visible) {
|
|
557
410
|
outline: none;
|
|
558
411
|
color: var(--app-color-text-strong);
|
|
559
412
|
text-decoration: underline;
|
|
560
413
|
}
|
|
561
|
-
&:where(:focus-visible)::before {
|
|
562
|
-
border-top-color: currentcolor;
|
|
563
|
-
}
|
|
564
414
|
}
|
|
565
415
|
.wg_navigationToc__link--active {
|
|
566
416
|
color: var(--app-color-text-strong);
|
|
567
417
|
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
418
|
}
|
|
632
419
|
.wg_navigationToc__sub {
|
|
633
420
|
margin: var(--app-space-tree-row) 0 4px var(--app-space-tree-indent);
|
|
634
421
|
padding: 0;
|
|
635
422
|
list-style: none;
|
|
636
423
|
}
|
|
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
424
|
.wg_navigationToc__subLink {
|
|
685
|
-
position: relative;
|
|
686
425
|
display: block;
|
|
687
|
-
padding: var(--app-space-tree-row) 0
|
|
426
|
+
padding: var(--app-space-tree-row) 0;
|
|
688
427
|
color: var(--app-color-text);
|
|
689
428
|
font-size: var(--app-font-size-detail);
|
|
690
429
|
line-height: var(--app-line-height-tight);
|
|
691
430
|
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
431
|
&:where(:hover) {
|
|
702
432
|
color: var(--app-color-text-strong);
|
|
703
433
|
text-decoration: underline;
|
|
704
434
|
}
|
|
705
|
-
&:where(:hover)::before {
|
|
706
|
-
border-top-color: currentcolor;
|
|
707
|
-
}
|
|
708
435
|
&:where(:focus-visible) {
|
|
709
436
|
outline: none;
|
|
710
437
|
color: var(--app-color-text-strong);
|
|
711
438
|
text-decoration: underline;
|
|
712
439
|
}
|
|
713
|
-
&:where(:focus-visible)::before {
|
|
714
|
-
border-top-color: currentcolor;
|
|
715
|
-
}
|
|
716
440
|
}
|
|
717
441
|
.wg_navigationToc__subLink--active {
|
|
718
442
|
color: var(--app-color-text-strong);
|
|
719
443
|
font-weight: var(--app-font-weight-active);
|
|
720
|
-
&::before {
|
|
721
|
-
border-top-color: currentcolor;
|
|
722
|
-
}
|
|
723
444
|
}
|
|
724
445
|
|
|
725
446
|
/* src/component/widget/navigation/wg-navigation.css */
|
|
@@ -937,7 +658,7 @@
|
|
|
937
658
|
scrollbar-color: auto;
|
|
938
659
|
}
|
|
939
660
|
}
|
|
940
|
-
@media (width <
|
|
661
|
+
@media (width < 1360px) {
|
|
941
662
|
.wg_navigation__tocRail {
|
|
942
663
|
display: none;
|
|
943
664
|
}
|
|
@@ -1022,15 +743,13 @@
|
|
|
1022
743
|
--app-color-verified-soft: light-dark(#edf5ed, #1d2c20);
|
|
1023
744
|
--app-color-unverified: light-dark(#855700, #dfb26c);
|
|
1024
745
|
--app-color-unverified-soft: light-dark(#faf2df, #30291c);
|
|
1025
|
-
--app-font-
|
|
1026
|
-
"
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
--app-font-
|
|
1031
|
-
--app-font-brand: "Architects Daughter", var(--app-font-sans);
|
|
746
|
+
--app-font-mono:
|
|
747
|
+
"Monoplex KR",
|
|
748
|
+
ui-monospace,
|
|
749
|
+
monospace;
|
|
750
|
+
--app-font-body: "IBM Plex Sans KR", var(--app-font-mono);
|
|
751
|
+
--app-font-brand: "Architects Daughter", var(--app-font-body);
|
|
1032
752
|
--app-font-size-group: 11px;
|
|
1033
|
-
--app-font-size-label: 12px;
|
|
1034
753
|
--app-font-size-detail: 12px;
|
|
1035
754
|
--app-font-size-dense: 12px;
|
|
1036
755
|
--app-font-size-body: 12px;
|
|
@@ -1044,34 +763,33 @@
|
|
|
1044
763
|
--app-font-weight-title: 600;
|
|
1045
764
|
--app-line-height-title: 1.5;
|
|
1046
765
|
--app-line-height-heading: 1.5;
|
|
1047
|
-
--app-line-height-tight: 1.
|
|
766
|
+
--app-line-height-tight: 1.4;
|
|
1048
767
|
--app-line-height-code: 1.65;
|
|
1049
768
|
--app-line-height-body: 1.7;
|
|
1050
|
-
--app-letter-spacing-
|
|
769
|
+
--app-letter-spacing-body: -0.03em;
|
|
1051
770
|
--app-letter-spacing-brand: 0;
|
|
1052
|
-
--app-letter-spacing-heading: -0.
|
|
1053
|
-
--app-letter-spacing-title: -0.
|
|
771
|
+
--app-letter-spacing-heading: -0.04em;
|
|
772
|
+
--app-letter-spacing-title: -0.045em;
|
|
1054
773
|
--app-space-inline: 6px;
|
|
1055
774
|
--app-space-stack: 10px;
|
|
1056
775
|
--app-space-block: 14px;
|
|
1057
776
|
--app-space-group: 20px;
|
|
1058
777
|
--app-space-section: 32px;
|
|
1059
|
-
--app-space-tree-row:
|
|
1060
|
-
--app-space-tree-
|
|
778
|
+
--app-space-tree-row: 0px;
|
|
779
|
+
--app-space-tree-group: 16px;
|
|
780
|
+
--app-space-tree-label: 2px;
|
|
1061
781
|
--app-space-tree-indent: 12px;
|
|
1062
782
|
--app-space-page-top: 28px;
|
|
1063
783
|
--app-space-gutter: 28px;
|
|
1064
784
|
--app-space-column: 32px;
|
|
1065
785
|
--app-space-sidebar-gap: 32px;
|
|
1066
|
-
--app-size-sidebar:
|
|
1067
|
-
--app-size-
|
|
1068
|
-
--app-size-page: calc(var(--app-size-main) + (var(--app-size-sidebar) + var(--app-space-sidebar-gap) + var(--app-space-gutter)) * 2);
|
|
786
|
+
--app-size-sidebar: 200px;
|
|
787
|
+
--app-size-page: 1920px;
|
|
1069
788
|
--app-size-brand: calc(var(--app-font-size-title) * var(--app-line-height-title) + var(--app-space-page-top) + var(--app-space-group));
|
|
1070
789
|
--app-size-mobile-header: 56px;
|
|
1071
790
|
--app-size-menu-button: 44px;
|
|
1072
791
|
--app-size-drawer: 320px;
|
|
1073
792
|
--app-size-navigation-fade: 28px;
|
|
1074
|
-
--app-size-tree-toggle: 24px;
|
|
1075
793
|
--app-space-anchor: 80px;
|
|
1076
794
|
--app-radius-pill: 0;
|
|
1077
795
|
--app-radius-card: 0;
|
|
@@ -1115,12 +833,13 @@
|
|
|
1115
833
|
max-width: var(--app-size-page);
|
|
1116
834
|
margin: 0 auto;
|
|
1117
835
|
padding: 0 var(--app-space-gutter);
|
|
1118
|
-
grid-template: "nav main outline" 1fr / calc(var(--app-size-sidebar) + var(--app-space-sidebar-gap)) minmax(0,
|
|
836
|
+
grid-template: "nav main outline" 1fr / calc(var(--app-size-sidebar) + var(--app-space-sidebar-gap)) minmax(0, 1fr) calc(var(--app-size-sidebar) + var(--app-space-sidebar-gap));
|
|
1119
837
|
background: var(--app-color-ground);
|
|
1120
838
|
color: var(--app-color-text);
|
|
1121
|
-
font-family: var(--app-font-
|
|
839
|
+
font-family: var(--app-font-body);
|
|
1122
840
|
font-size: var(--app-font-size-body);
|
|
1123
841
|
line-height: var(--app-line-height-body);
|
|
842
|
+
letter-spacing: var(--app-letter-spacing-body);
|
|
1124
843
|
word-break: keep-all;
|
|
1125
844
|
overflow-wrap: break-word;
|
|
1126
845
|
text-wrap: pretty;
|
|
@@ -1135,19 +854,17 @@
|
|
|
1135
854
|
.wg_shell__main {
|
|
1136
855
|
grid-area: main;
|
|
1137
856
|
min-width: 0;
|
|
1138
|
-
max-width: var(--app-size-main);
|
|
1139
857
|
border-inline: 1px solid var(--app-color-border-layout);
|
|
1140
858
|
padding-block: var(--app-size-brand) calc(100vh - var(--app-space-anchor));
|
|
1141
859
|
padding-inline: var(--app-space-column);
|
|
1142
860
|
}
|
|
1143
|
-
@media (width <
|
|
861
|
+
@media (width < 1360px) {
|
|
1144
862
|
.wg_shell__root {
|
|
1145
|
-
grid-template: "nav main
|
|
863
|
+
grid-template: "nav main" 1fr / calc(var(--app-size-sidebar) + var(--app-space-sidebar-gap)) minmax(0, 1fr);
|
|
1146
864
|
}
|
|
1147
865
|
}
|
|
1148
866
|
@media (width < 1024px) {
|
|
1149
867
|
.wg_shell__root {
|
|
1150
|
-
max-width: calc(var(--app-size-main) + var(--app-space-gutter) * 2);
|
|
1151
868
|
grid-template: "nav" auto "main" 1fr / minmax(0, 1fr);
|
|
1152
869
|
}
|
|
1153
870
|
.wg_shell__main {
|