Skip to content

Commit

Permalink
Update heading.js (#706)
Browse files Browse the repository at this point in the history
Increase margin and padding of headings
  • Loading branch information
nsolerieu authored Jan 30, 2024
1 parent 20b9445 commit c527e48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions theme/src/components/heading.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import styled from 'styled-components'
import {HEADER_HEIGHT} from './header'

const StyledHeading = styled(Heading)`
margin-top: ${themeGet('space.4')};
margin-bottom: ${themeGet('space.3')};
margin-top: ${themeGet('space.8')};
margin-bottom: ${themeGet('space.4')};
scroll-margin-top: ${HEADER_HEIGHT + 24}px;
line-height: ${themeGet('lineHeights.condensed')};
Expand Down Expand Up @@ -58,13 +58,13 @@ function MarkdownHeading({children, ...props}) {
}

const StyledH1 = styled(StyledHeading).attrs({as: 'h1'})`
padding-bottom: ${themeGet('space.2')};
padding-bottom: ${themeGet('space.3')};
font-size: ${themeGet('fontSizes.7')};
border-bottom: 1px solid ${themeGet('colors.border.default')};
`

const StyledH2 = styled(StyledHeading).attrs({as: 'h2'})`
padding-bottom: ${themeGet('space.2')};
padding-bottom: ${themeGet('space.3')};
font-size: ${themeGet('fontSizes.4')};
border-bottom: 1px solid ${themeGet('colors.border.default')};
font-weight: ${themeGet('fontWeights.semibold')};
Expand Down

0 comments on commit c527e48

Please sign in to comment.