Improve anchor link (#5721)

The current value is broken, the header has the `.h-16` class name which equals to 4rem.
This commit is contained in:
Olivier Tassinari
2023-03-18 21:00:21 +01:00
committed by GitHub
parent 5dcfeb625c
commit 50551f84c6

View File

@@ -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;
}