diff --git a/source/_sass/custom/custom.scss b/source/_sass/custom/custom.scss index 08229fde..f685f33b 100644 --- a/source/_sass/custom/custom.scss +++ b/source/_sass/custom/custom.scss @@ -283,8 +283,9 @@ body::before { .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 + // (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.75rem; font-weight: 650; @@ -347,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