Skip to content

Commit e69f00c

Browse files
committed
nav: shrink home SVG to 14px so pill matches numbered-pill height
1 parent a5995ae commit e69f00c

2 files changed

Lines changed: 6 additions & 6 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"><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>',
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="14" height="14" fill="none" stroke="currentColor" stroke-width="2.25" 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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -701,16 +701,16 @@ body.wt-ready .topbar-actions {
701701
* reads as a distinct category ("root" vs "children"). Tooltip
702702
* (title attribute on the anchor) carries the label for keyboard /
703703
* screen-reader users; visual users read the glyph. */
704+
/* Home-link pill matches the numbered part-pill footprint exactly —
705+
* same padding (4px 10px from the upstream .part-nav rule) and the
706+
* inline-flex + line-height:1 combo makes the 14px SVG land in the
707+
* same pill height as the 12px text labels. */
704708
.topbar .part-nav a.wt-home-link {
705709
border-color: rgba(255, 255, 255, 0.55) !important;
706710
margin-right: 8px;
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. */
710711
display: inline-flex;
711712
align-items: center;
712-
padding-top: 4px;
713-
padding-bottom: 4px;
713+
line-height: 1;
714714
}
715715
.topbar .part-nav a.wt-home-link svg {
716716
display: block;

0 commit comments

Comments
 (0)