Commit 61e0d36
committed
style(site): file-block header path as a proper section title + menu close on nav
Two fixes:
1. File path on each file-block header (e.g.
`src/package-url-builder.ts`) now renders at 22px / 600 —
a hero for the entire code+prose stack below it, not a tiny
13px line. Still monospace because it IS a file path, not
prose. Section count sibling bumped to 14px / --muted so
the metadata stays quiet next to it.
2. Section + files dropdowns close after the user picks an
entry from their panel. Delegated click handler on document
catches `.wt-sections-panel a` and `.wt-files-panel a`,
then sets .open = false on every open
.wt-sections-menu / .wt-files-menu. Without this, clicking
a link jumped the page but left the panel floating on top
of the content it just scrolled to.1 parent 8abe42f commit 61e0d36
2 files changed
Lines changed: 35 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
571 | 587 | | |
572 | 588 | | |
573 | 589 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1202 | 1202 | | |
1203 | 1203 | | |
1204 | 1204 | | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
1205 | 1210 | | |
1206 | 1211 | | |
1207 | | - | |
1208 | | - | |
| 1212 | + | |
| 1213 | + | |
1209 | 1214 | | |
| 1215 | + | |
1210 | 1216 | | |
1211 | 1217 | | |
1212 | 1218 | | |
1213 | | - | |
| 1219 | + | |
1214 | 1220 | | |
1215 | 1221 | | |
1216 | 1222 | | |
| |||
1686 | 1692 | | |
1687 | 1693 | | |
1688 | 1694 | | |
1689 | | - | |
1690 | | - | |
1691 | | - | |
1692 | | - | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
1693 | 1701 | | |
1694 | | - | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
1695 | 1706 | | |
1696 | 1707 | | |
1697 | 1708 | | |
| |||
0 commit comments