From 410a9339bff5895d41ffc40b275b3ba2e538d4cf Mon Sep 17 00:00:00 2001 From: slorber Date: Thu, 26 Aug 2021 16:44:35 +0200 Subject: [PATCH] revert to previous offset --- .../src/theme/Heading/styles.module.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/docusaurus-theme-classic/src/theme/Heading/styles.module.css b/packages/docusaurus-theme-classic/src/theme/Heading/styles.module.css index 361a59957f3c..21900cd80c57 100644 --- a/packages/docusaurus-theme-classic/src/theme/Heading/styles.module.css +++ b/packages/docusaurus-theme-classic/src/theme/Heading/styles.module.css @@ -11,10 +11,10 @@ the browser does not scroll that anchor behind the navbar See https://twitter.com/JoshWComeau/status/1332015868725891076 */ .anchorWithStickyNavbar { - scroll-margin-top: calc(var(--ifm-navbar-height) + 0.8rem); - /* top: calc(var(--ifm-navbar-height) * -1 - 0.8rem); */ + scroll-margin-top: calc(var(--ifm-navbar-height) + 0.5rem); + /* top: calc(var(--ifm-navbar-height) * -1 - 0.5rem); */ } .anchorWithHideOnScrollNavbar { - scroll-margin-top: 0.8rem; + scroll-margin-top: 0.5rem; }