Skip to content

Commit 15f3492

Browse files
authored
Merge pull request #477 from kobotoolbox/dev-1099-fix-section-headers
Add scroll margin to h3 headers [DEV-1099]
2 parents c1e2fda + d4a77c8 commit 15f3492

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)