doc/css: Add scroll-margin-top to h2 html element

Add "scroll-margin-top: 4em;" to the h2 html element's definition in
custom.css. This moves the text under all h2 html elements out of the
way of the sticky-header-style top bar, which previously obscured the
text.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
This commit is contained in:
Zac Dover 2023-01-07 02:24:39 +10:00
parent c439a11c70
commit af048ca911

View File

@ -2,6 +2,10 @@ dt {
scroll-margin-top: 3em;
}
h2 {
scroll-margin-top: 4em;
}
section {
scroll-margin-top: 4em;
}