From 1fc719b738c33ed850ead62ffb1bd99c468c6be3 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sun, 7 Aug 2022 06:21:43 -0700 Subject: [PATCH] style(docs): add scroll-margin-top to anchored headings [ci skip] --- docs/src/global.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/src/global.css b/docs/src/global.css index c3fa1011..a685cb6c 100644 --- a/docs/src/global.css +++ b/docs/src/global.css @@ -250,6 +250,12 @@ html[theme="g90"] .code-override { margin-bottom: var(--cds-layout-01); } +.bx--col > h2, +.bx--col > h3, +.bx--col > h4 { + scroll-margin-top: 3rem; +} + .bx--col > p { margin-bottom: var(--cds-layout-02); }