Skip to content

Commit

Permalink
fix: mdx h4 don't have scroll margin
Browse files Browse the repository at this point in the history
  • Loading branch information
rsipakov authored Jan 8, 2022
1 parent 9fd11e2 commit 605d920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/styles/mdx.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
border-image: linear-gradient(to right, #00ff9480, #00e0f380, #00c4fd80) 1;
}

.mdx.prose :where(h1, h2, h3, 4) {
.mdx.prose :where(h1, h2, h3, h4) {
scroll-margin-top: 100px;
position: relative;
display: block;
Expand Down

1 comment on commit 605d920

@vercel
Copy link

@vercel vercel bot commented on 605d920 Jan 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.