Skip to content

Commit

Permalink
Hack: remove nested h1 styling to fix styling of other heading
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Aug 14, 2024
1 parent eaed187 commit 0a040af
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions packages/dom/src/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -192,44 +192,39 @@ h1 {
margin-block-end: .67em;
}

h2,
:is(article, aside, nav, section) h1 {
h2 {
display: block;
font-size: 1.5em;
font-weight: bold;
margin-block-start: .83em;
margin-block-end: .83em;
}

h3,
:is(article, aside, nav, section):is(article, aside, nav, section) h1 {
h3{
display: block;
font-size: 1.17em;
font-weight: bold;
margin-block-start: 1em;
margin-block-end: 1em;
}

h4,
:is(article, aside, nav, section):is(article, aside, nav, section):is(article, aside, nav, section) h1 {
h4 {
display: block;
font-size: 1.00em;
font-weight: bold;
margin-block-start: 1.33em;
margin-block-end: 1.33em;
}

h5,
:is(article, aside, nav, section):is(article, aside, nav, section):is(article, aside, nav, section):is(article, aside, nav, section) h1 {
h5 {
display: block;
font-size: 0.83em;
font-weight: bold;
margin-block-start: 1.67em;
margin-block-end: 1.67em;
}

h6,
:is(article, aside, nav, section):is(article, aside, nav, section):is(article, aside, nav, section):is(article, aside, nav, section):is(article, aside, nav, section) h1 {
h6 {
display: block;
font-size: 0.67em;
font-weight: bold;
Expand Down

0 comments on commit 0a040af

Please sign in to comment.