Skip to content

Commit 8cd8a91

Browse files
committed
fix(docs): nav.nav-menu.nav-tree-only uses --ftn-global-rail-top
- Add nav-tree-only class; keep ftn- alias - Selectors include nav.nav-menu.nav-tree-only without requiring body.ftn-body so padding wins over default .nav-menu Made-with: Cursor
1 parent 307f5ed commit 8cd8a91

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

site/supplemental-ui/css/site-ftn-docs.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -699,8 +699,12 @@ html.dark-theme .ftn-bc-menu-item a.is-current {
699699
pointer-events: none;
700700
}
701701

702-
/* ——— Nav: same *global* top as main row; sides use --ftn-global-rail-hpad ——— */
703-
body.ftn-body .nav .nav-menu.ftn-nav-tree-only {
702+
/* ——— Nav: insets = global rails (same token as .ftn-article .content’s global part).
703+
Use nav.nav-menu.nav-tree-only so we win over the bundle’s .nav-menu (no body.ftn-body req). ——— */
704+
body.ftn-body .nav nav.nav-menu.nav-tree-only,
705+
body.ftn-body .nav nav.nav-menu.ftn-nav-tree-only,
706+
nav.nav-menu.nav-tree-only,
707+
nav.nav-menu.ftn-nav-tree-only {
704708
padding: var(--ftn-global-rail-top) var(--ftn-global-rail-hpad) 0.5rem var(--ftn-global-rail-hpad);
705709
box-sizing: border-box;
706710
}
@@ -739,6 +743,7 @@ html.dark-theme .nav .ftn-nav-component-title a {
739743
min-height: 0;
740744
}
741745

746+
.nav-tree-only .nav-menu-toggle,
742747
.ftn-nav-tree-only .nav-menu-toggle {
743748
display: none !important;
744749
}

site/supplemental-ui/partials/nav-menu.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="nav-panel-menu is-active" data-panel="menu">
2-
<nav class="nav-menu ftn-nav-tree-only" aria-label="In this section">
2+
<nav class="nav-menu nav-tree-only ftn-nav-tree-only" aria-label="In this section">
33
<button class="nav-menu-toggle" aria-label="Toggle expand and collapse of all item groups" style="display: none"></button>
44
{{#with @root.page.componentVersion}}
55
<p class="ftn-nav-component-title"><a href="{{{relativize ./url}}}">{{./title}}</a></p>

0 commit comments

Comments
 (0)