Browse Source

[Beta] Fix scroll margin

main
Dan Abramov 2 years ago
parent
commit
2fc297f3e1
  1. 9
      beta/src/styles/index.css

9
beta/src/styles/index.css

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

Loading…
Cancel
Save