Skip to content

Commit

Permalink
increase margin for headings
Browse files Browse the repository at this point in the history
  • Loading branch information
zzq0826 committed Aug 11, 2023
1 parent a460551 commit da27e3b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/components/PageContent/PageContent.astro
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ const whatsNext = content.whatsnext

.content :global(h2) {
font-weight: 500;
margin-top: 30px;
margin-bottom: 20px;
}

@media (min-width: 50em) {
Expand All @@ -57,7 +55,10 @@ const whatsNext = content.whatsnext
}
.content :global(h2) {
font-weight: 600;
margin-top: 100px;
padding-top: 16px;
}
.content :global(h2:first-of-type) {
padding-top: 0;
}
.content :global(a) {
font-weight: 600;
Expand Down
5 changes: 3 additions & 2 deletions src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ nav ul {
.content :is(ul, ol) {
line-height: 1.25em;
margin-bottom: 0.7em;
margin-bottom: 16px;
}

.content :is(ul, ol) > li > :is(ul, ol) {
Expand Down Expand Up @@ -126,8 +127,8 @@ article > section iframe {

.main-section :is(h2, h3, h4) {
/* Override styles from design-system */
margin-top: 40px;
margin-bottom: 40px;
margin-top: 36px;
margin-bottom: 24px;
max-width: 100%;
}

Expand Down

0 comments on commit da27e3b

Please sign in to comment.