Merge pull request #296 from the-programmers-hangout/ui-improve-headings-typography

ui: improve headings typography
This commit is contained in:
Jean-Philippe Sirois
2020-07-24 12:52:06 -04:00
committed by GitHub
+6 -6
View File
@@ -7,11 +7,11 @@ import {
} from "../../design/typography" } from "../../design/typography"
function modularScaleCSS(power: number) { function modularScaleCSS(power: number) {
const { fontSize, lineHeight } = modularScale(power) const { fontSize } = modularScale(power)
return css` return css`
font-size: ${fontSize}px; font-size: ${fontSize}px;
line-height: ${lineHeight}px; line-height: 1.4;
` `
} }
@@ -70,19 +70,19 @@ export const MarkdownWrapper = styled.div`
} }
h2 + h3 { h2 + h3 {
margin-top: 0; margin-top: ${BASE_LINE_HEIGHT}px;
} }
h3 + h4 { h3 + h4 {
margin-top: 0; margin-top: ${BASE_LINE_HEIGHT}px;
} }
h4 + h5 { h4 + h5 {
margin-top: 0; margin-top: ${BASE_LINE_HEIGHT}px;
} }
h5 + h6 { h5 + h6 {
margin-top: 0; margin-top: ${BASE_LINE_HEIGHT}px;
} }
h2 ~ h2::before { h2 ~ h2::before {