Browse Source

Improve anchor link (#5721)

The current value is broken, the header has the `.h-16` class name which equals to 4rem.
main
Olivier Tassinari 2 years ago
committed by GitHub
parent
commit
50551f84c6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      beta/src/styles/index.css

2
beta/src/styles/index.css

@ -248,7 +248,7 @@ html.dark .code-step * {
}
.mdx-heading {
scroll-margin-top: 3em;
scroll-margin-top: calc(4rem + 20px);
/* Space for the anchor */
padding-right: 1em;
}

Loading…
Cancel
Save