Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions source/_sass/custom/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down
Loading