2017-05-18 21:21:33 +03:00
|
|
|
import styled from 'styled-components';
|
|
|
|
import { H1 as NH1 } from 'normalized-styled-components';
|
|
|
|
import remcalc from 'remcalc';
|
|
|
|
import typography from '../typography';
|
|
|
|
|
2017-05-25 17:59:58 +03:00
|
|
|
export const H1 = NH1.extend`
|
2017-09-26 14:12:15 +03:00
|
|
|
margin: 0;
|
|
|
|
${typography.color};
|
2017-05-18 21:21:33 +03:00
|
|
|
${typography.fontFamily};
|
2017-09-26 14:12:15 +03:00
|
|
|
${typography.normal};
|
2017-05-18 21:21:33 +03:00
|
|
|
|
|
|
|
font-size: ${remcalc(36)};
|
2017-09-26 14:12:15 +03:00
|
|
|
line-height: ${remcalc(45)};
|
2017-05-18 21:21:33 +03:00
|
|
|
font-style: normal;
|
|
|
|
font-stretch: normal;
|
2017-09-26 14:12:15 +03:00
|
|
|
|
|
|
|
+ p,
|
|
|
|
+ small,
|
|
|
|
+ h1,
|
|
|
|
+ h2,
|
|
|
|
+ label.
|
|
|
|
+ h3,
|
|
|
|
+ h4,
|
|
|
|
+ h5,
|
|
|
|
+ div {
|
|
|
|
margin-top: ${remcalc(24)};
|
|
|
|
}
|
2017-05-18 21:21:33 +03:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const H2 = styled.h2`
|
2017-09-26 14:12:15 +03:00
|
|
|
margin: 0;
|
|
|
|
${typography.color};
|
2017-05-18 21:21:33 +03:00
|
|
|
${typography.fontFamily};
|
2017-09-26 14:12:15 +03:00
|
|
|
${typography.normal};
|
|
|
|
line-height: ${remcalc(30)};
|
2017-05-18 21:21:33 +03:00
|
|
|
font-size: ${remcalc(24)};
|
2017-09-26 14:12:15 +03:00
|
|
|
|
|
|
|
+ p,
|
|
|
|
+ small,
|
|
|
|
+ h1,
|
|
|
|
+ h2,
|
|
|
|
+ label.
|
|
|
|
+ h3,
|
|
|
|
+ h4,
|
|
|
|
+ h5,
|
|
|
|
+ div {
|
|
|
|
margin-top: ${remcalc(24)};
|
|
|
|
}
|
2017-05-18 21:21:33 +03:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const H3 = styled.h3`
|
2017-09-26 14:12:15 +03:00
|
|
|
margin: 0;
|
|
|
|
${typography.color};
|
2017-05-18 21:21:33 +03:00
|
|
|
${typography.fontFamily};
|
2017-09-26 14:12:15 +03:00
|
|
|
${typography.normal};
|
|
|
|
line-height: ${remcalc(26)};
|
|
|
|
font-size: ${remcalc(21)};
|
|
|
|
|
|
|
|
+ p,
|
|
|
|
+ small,
|
|
|
|
+ h1,
|
|
|
|
+ h2,
|
|
|
|
+ label.
|
|
|
|
+ h3,
|
|
|
|
+ h4,
|
|
|
|
+ h5,
|
|
|
|
+ div {
|
|
|
|
margin-top: ${remcalc(24)};
|
|
|
|
}
|
|
|
|
`;
|
2017-05-18 21:21:33 +03:00
|
|
|
|
2017-09-26 14:12:15 +03:00
|
|
|
export const H4 = styled.h3`
|
|
|
|
margin: 0;
|
|
|
|
${typography.color};
|
|
|
|
${typography.fontFamily};
|
|
|
|
${typography.semibold};
|
|
|
|
line-height: ${remcalc(24)};
|
2017-05-18 21:21:33 +03:00
|
|
|
font-size: ${remcalc(15)};
|
2017-09-26 14:12:15 +03:00
|
|
|
|
|
|
|
+ p,
|
|
|
|
+ small,
|
|
|
|
+ h1,
|
|
|
|
+ h2,
|
|
|
|
+ label.
|
|
|
|
+ h3,
|
|
|
|
+ h4,
|
|
|
|
+ h5,
|
|
|
|
+ div {
|
|
|
|
margin-top: ${remcalc(12)};
|
|
|
|
}
|
2017-05-18 21:21:33 +03:00
|
|
|
`;
|