Skip to content

Commit a5995ae

Browse files
committed
nav: home-link glyph to inline SVG (Feather-style house)
1 parent 04bc395 commit a5995ae

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

scripts/walkthrough.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ async function generate(
602602
) {
603603
html = html.replace(
604604
'<div class="part-nav">',
605-
'<div class="part-nav"><a class="wt-home-link" href="/" aria-label="Back to the walkthrough index" title="Back to index"></a>',
605+
'<div class="part-nav"><a class="wt-home-link" href="/" aria-label="Back to the walkthrough index" title="Back to index"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 9.5 12 3l9 6.5V20a2 2 0 0 1-2 2h-4v-7h-6v7H5a2 2 0 0 1-2-2z"/></svg></a>',
606606
)
607607
}
608608

walkthrough-overrides.css

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -704,12 +704,16 @@ body.wt-ready .topbar-actions {
704704
.topbar .part-nav a.wt-home-link {
705705
border-color: rgba(255, 255, 255, 0.55) !important;
706706
margin-right: 8px;
707-
/* ⌂ (U+2302) renders small at body size — bump the glyph alone so
708-
* it carries the same visual weight as the numbered part pills. */
709-
font-size: 18px;
710-
line-height: 1;
711-
padding-top: 2px;
712-
padding-bottom: 2px;
707+
/* Tighten padding so the inline SVG icon sits at the same visual
708+
* height as the numbered pill labels — the icon's 16px square
709+
* otherwise runs taller than the text row. */
710+
display: inline-flex;
711+
align-items: center;
712+
padding-top: 4px;
713+
padding-bottom: 4px;
714+
}
715+
.topbar .part-nav a.wt-home-link svg {
716+
display: block;
713717
}
714718
/* "Parts:" label prepended by walkthrough-drag.js once the topbar has
715719
* mounted. Eight numbered pills read as repetitive "Part 1 Part 2 Part

0 commit comments

Comments
 (0)