style(docs): add scroll-margin-top to anchored headings [ci skip]

This commit is contained in:
Eric Liu 2022-08-07 06:21:43 -07:00
commit 1fc719b738

View file

@ -250,6 +250,12 @@ html[theme="g90"] .code-override {
margin-bottom: var(--cds-layout-01); margin-bottom: var(--cds-layout-01);
} }
.bx--col > h2,
.bx--col > h3,
.bx--col > h4 {
scroll-margin-top: 3rem;
}
.bx--col > p { .bx--col > p {
margin-bottom: var(--cds-layout-02); margin-bottom: var(--cds-layout-02);
} }