Website: update scroll-margin of headings on documentation pages. (#19098)

Changes:
- Updated the `scroll-margin-top` property of headings on documentation
pages to be consistent.
This commit is contained in:
Eric 2024-05-16 22:08:14 -05:00 committed by GitHub
parent 21b1aac24f
commit 162c9f0595
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -500,9 +500,6 @@
}
[purpose='content'] {
.markdown-heading {
scroll-margin-top: 140px;
}
hr {
margin: 0px;
padding: 0px;
@ -514,6 +511,7 @@
}
h1 {
padding-bottom: 16px;
scroll-margin-top: 104px;
}
h2 {
@ -521,10 +519,11 @@
margin-top: 32px;
padding-top: 52px;
padding-bottom: 24px;
scroll-margin-top: 80px;
&:first-of-type {
border-top: none;
padding-top: 24px;
scroll-margin-top: 108px;
margin-top: 0px;
}
}
@ -534,11 +533,13 @@
margin-top: 24px;
margin-bottom: 40px;
border-bottom: 1px dashed @core-fleet-black-25;
scroll-margin-top: 104px;
}
h4 {
padding-bottom: 24px;
margin-bottom: 0px;
scroll-margin-top: 104px;
}
h5 {
@ -546,6 +547,7 @@
font-weight: 700;
font-family: @main-font;
margin-bottom: 16px;
scroll-margin-top: 104px;
}
pre + hr + h3 {
padding-top: 0px;