[Beta] Fix scroll margin

This commit is contained in:
Dan Abramov
2022-09-07 21:33:45 +01:00
parent 9914e5e025
commit 2fc297f3e1

View File

@@ -214,10 +214,17 @@ html.dark .code-step * {
}
.mdx-heading {
scroll-margin-top: 2.5em;
scroll-margin-top: 3em;
/* Space for the anchor */
padding-right: 1em;
}
@media (min-width: 1024px) {
.mdx-heading {
scroll-margin-top: 1em;
}
}
.mdx-heading:before {
height: 6rem;
margin-top: -6rem;