Apply scroll-margin-top to all elements with id attribute instead of only headings

This commit is contained in:
Sodbileg Gansukh 2021-01-27 17:06:11 +08:00
parent 52f763859a
commit 069280eea2
3 changed files with 6 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1256,6 +1256,10 @@ Usage (In Ghost editor):
margin-top: 1.2em;
}
.post-full-content [id] {
scroll-margin-top: 110px;
}
.post-full-content h1,
.post-full-content h2,
.post-full-content h3,
@ -1264,7 +1268,6 @@ Usage (In Ghost editor):
.post-full-content h6 {
color: color-mod(var(--darkgrey) l(-5%));
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
scroll-margin-top: 110px;
}
.post-full-content h1 {