Skip to content

Commit

Permalink
feat: change layout of h1, h2
Browse files Browse the repository at this point in the history
  • Loading branch information
OnCloud125252 committed Apr 8, 2024
1 parent 2dfb958 commit 78e1e25
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions styles/mdx.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,20 @@ span[data-rehype-pretty-code-figure]>code::after {
@apply border-b-2 p-1 shadow-none;
}

.prose :where(h1):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-bottom: 1.3rem !important;
}

.prose :where(h2):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0.5rem !important;
margin-bottom: 0.8rem !important;
}

.subheading-anchor {
@apply no-underline hover:underline;
}

blockquote>p::before,
blockquote>p::after {
display: none;
}

0 comments on commit 78e1e25

Please sign in to comment.