From d3228ce2466bfa79d0311c9fe4129be5ce791657 Mon Sep 17 00:00:00 2001 From: Blai Peidro Date: Fri, 4 Dec 2026 15:11:33 +0100 Subject: [PATCH 1/2] fix: a menu heading's room under it measured to look as its room over it --- source/_sass/custom/custom.scss | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/source/_sass/custom/custom.scss b/source/_sass/custom/custom.scss index 08229fde..8eb31dab 100644 --- a/source/_sass/custom/custom.scss +++ b/source/_sass/custom/custom.scss @@ -282,11 +282,13 @@ body::before { // line with the VERSION label, no rule under them .site-nav .nav-category { border-bottom: 0; - // as much room under a heading, to its group's first entry, as over it, from the entry before - // (half of the 1rem it had above moved under it : a folded group keeps its place). Padding, - // not a margin, under it, so it never collapses into the next heading's margin + // as much room under a heading, to its group's first entry, as over it, from the entry before. + // Measured between the letters : a heading's capitals have nothing below their line, the entry + // over the next heading ends in q, g or p reaching down, so the room under a heading is a + // little less (0.55rem) to look the same. Padding, not a margin, under it, so it never + // collapses into the next heading's margin margin-top: 0.5rem; - padding: 0.35rem 2rem 0.75rem; + padding: 0.35rem 2rem 0.55rem; font-weight: 650; color: $af-muted; font-size: calc(0.7rem + 1px) !important; From 201b3ede6d1bb4e1949bd330b1834af6476659bd Mon Sep 17 00:00:00 2001 From: Blai Peidro Date: Fri, 4 Dec 2026 15:14:15 +0100 Subject: [PATCH 2/2] fix: room added under an open menu group's last entry, the heading's own room kept --- source/_sass/custom/custom.scss | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/source/_sass/custom/custom.scss b/source/_sass/custom/custom.scss index 8eb31dab..f685f33b 100644 --- a/source/_sass/custom/custom.scss +++ b/source/_sass/custom/custom.scss @@ -282,13 +282,12 @@ body::before { // line with the VERSION label, no rule under them .site-nav .nav-category { border-bottom: 0; - // as much room under a heading, to its group's first entry, as over it, from the entry before. - // Measured between the letters : a heading's capitals have nothing below their line, the entry - // over the next heading ends in q, g or p reaching down, so the room under a heading is a - // little less (0.55rem) to look the same. Padding, not a margin, under it, so it never - // collapses into the next heading's margin + // as much room under a heading, to its group's first entry, as over it, from the entry before + // (half of the 1rem it had above moved under it : a folded group keeps its place ; an open + // group's list adds a little under its last entry, below). Padding, not a margin, under it, so + // it never collapses into the next heading's margin margin-top: 0.5rem; - padding: 0.35rem 2rem 0.55rem; + padding: 0.35rem 2rem 0.75rem; font-weight: 650; color: $af-muted; font-size: calc(0.7rem + 1px) !important; @@ -349,6 +348,13 @@ body::before { margin-left: calc(2rem + 1.6rem); } } + + // an open group's entries : a little room under the last one, so the next heading is as far + // from it as the group's heading is from its first entry (measured between the letters : the + // capitals of a heading have nothing below their line, an entry's q, g or p reaches down) + > .nav-list-item > .nav-list { + margin-bottom: 0.2rem; + } } // a group's entries closer together on a wide screen : rows of 1.6rem (the theme's 2rem left