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 d93350e76c7e..7d7e59aadf96 100644 --- a/packages/docusaurus-theme-classic/src/theme/Heading/styles.module.css +++ b/packages/docusaurus-theme-classic/src/theme/Heading/styles.module.css @@ -5,10 +5,6 @@ * LICENSE file in the root directory of this source tree. */ -.enhancedAnchor:target:before { - content: ''; - display: block; - height: var(--ifm-navbar-height); - margin: calc(var(--ifm-navbar-height) * -1) 0 0; - visibility: hidden; +.enhancedAnchor { + top: calc(var(--ifm-navbar-height) * -1); }