Skip to content

Commit d4a77c8

Browse files
committed
Add scroll margin to h3 headers
1 parent c1e2fda commit d4a77c8

File tree

3 files changed

+45
-11
lines changed

3 files changed

+45
-11
lines changed

sass_source/sass/_general.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ h2 {
7979
font-size: 1.5em;
8080
}
8181

82-
section:has(h2:first-child) {
82+
section:has(h2:first-child),
83+
section:has(h3:first-child) {
8384
scroll-margin-top: 75px;
8485
}
8586

source/_static/css/kobo_theme.css

Lines changed: 42 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)