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';
|
2017-11-22 14:13:33 +02:00
|
|
|
import is from 'styled-is';
|
2017-05-18 21:21:33 +03:00
|
|
|
|
2017-05-25 17:59:58 +03:00
|
|
|
export const H1 = NH1.extend`
|
2017-11-23 14:18:38 +02:00
|
|
|
color: ${props => props.theme.text};
|
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-11-23 14:18:38 +02:00
|
|
|
margin: 0;
|
2017-09-26 14:12:15 +03:00
|
|
|
|
2017-11-22 14:13:33 +02:00
|
|
|
${is('inline')`
|
|
|
|
display: inline-block;
|
|
|
|
`};
|
|
|
|
|
2017-09-26 19:07:45 +03:00
|
|
|
& + p,
|
|
|
|
& + small,
|
|
|
|
& + h1,
|
|
|
|
& + h2,
|
|
|
|
& + label,
|
|
|
|
& + h3,
|
|
|
|
& + h4,
|
|
|
|
& + h5,
|
|
|
|
& + div,
|
|
|
|
& + span {
|
2017-09-26 14:12:15 +03:00
|
|
|
margin-top: ${remcalc(24)};
|
|
|
|
}
|
2017-05-18 21:21:33 +03:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const H2 = styled.h2`
|
2017-11-23 14:18:38 +02:00
|
|
|
color: ${props => props.theme.text};
|
|
|
|
|
2017-09-26 14:12:15 +03:00
|
|
|
line-height: ${remcalc(30)};
|
2017-05-18 21:21:33 +03:00
|
|
|
font-size: ${remcalc(24)};
|
2017-11-23 14:18:38 +02:00
|
|
|
margin: 0;
|
2017-09-26 14:12:15 +03:00
|
|
|
|
2017-11-22 14:13:33 +02:00
|
|
|
${is('inline')`
|
|
|
|
display: inline-block;
|
|
|
|
`};
|
|
|
|
|
2017-09-26 19:07:45 +03:00
|
|
|
& + p,
|
|
|
|
& + small,
|
|
|
|
& + h1,
|
|
|
|
& + h2,
|
|
|
|
& + label,
|
|
|
|
& + h3,
|
|
|
|
& + h4,
|
|
|
|
& + h5,
|
|
|
|
& + div,
|
|
|
|
& + span {
|
2017-09-26 14:12:15 +03:00
|
|
|
margin-top: ${remcalc(24)};
|
|
|
|
}
|
2017-05-18 21:21:33 +03:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const H3 = styled.h3`
|
2017-11-23 14:18:38 +02:00
|
|
|
color: ${props => props.theme.text};
|
|
|
|
|
2017-09-26 14:12:15 +03:00
|
|
|
line-height: ${remcalc(26)};
|
|
|
|
font-size: ${remcalc(21)};
|
2017-11-23 14:18:38 +02:00
|
|
|
margin: 0;
|
2017-09-26 14:12:15 +03:00
|
|
|
|
2017-11-22 14:13:33 +02:00
|
|
|
${is('inline')`
|
|
|
|
display: inline-block;
|
|
|
|
`};
|
|
|
|
|
2017-09-26 19:07:45 +03:00
|
|
|
& + p,
|
|
|
|
& + small,
|
|
|
|
& + h1,
|
|
|
|
& + h2,
|
|
|
|
& + label,
|
|
|
|
& + h3,
|
|
|
|
& + h4,
|
|
|
|
& + h5,
|
|
|
|
& + div,
|
|
|
|
& + span {
|
2017-09-26 14:12:15 +03:00
|
|
|
margin-top: ${remcalc(24)};
|
|
|
|
}
|
|
|
|
`;
|
2017-05-18 21:21:33 +03:00
|
|
|
|
2017-09-26 19:07:45 +03:00
|
|
|
export const H4 = styled.h4`
|
2017-11-23 14:18:38 +02:00
|
|
|
color: ${props => props.theme.text};
|
|
|
|
|
|
|
|
font-weight: ${props => props.theme.font.weight.semibold};
|
2017-09-26 14:12:15 +03:00
|
|
|
line-height: ${remcalc(24)};
|
2017-05-18 21:21:33 +03:00
|
|
|
font-size: ${remcalc(15)};
|
2017-11-23 14:18:38 +02:00
|
|
|
margin: 0;
|
2017-09-26 14:12:15 +03:00
|
|
|
|
2017-11-22 14:13:33 +02:00
|
|
|
${is('inline')`
|
|
|
|
display: inline-block;
|
|
|
|
`};
|
|
|
|
|
2017-09-26 19:07:45 +03:00
|
|
|
& + p,
|
|
|
|
& + small,
|
|
|
|
& + h1,
|
|
|
|
& + h2,
|
|
|
|
& + label,
|
|
|
|
& + h3,
|
|
|
|
& + h4,
|
|
|
|
& + h5,
|
|
|
|
& + div,
|
|
|
|
& + span {
|
2017-09-26 14:12:15 +03:00
|
|
|
margin-top: ${remcalc(12)};
|
|
|
|
}
|
2017-05-18 21:21:33 +03:00
|
|
|
`;
|
2017-11-16 12:47:32 +02:00
|
|
|
|
|
|
|
export const H5 = styled.h4`
|
2017-11-23 14:18:38 +02:00
|
|
|
color: ${props => props.theme.text};
|
|
|
|
|
2017-11-16 12:47:32 +02:00
|
|
|
line-height: ${remcalc(24)};
|
|
|
|
font-size: ${remcalc(15)};
|
2017-11-23 14:18:38 +02:00
|
|
|
margin: 0;
|
2017-11-16 12:47:32 +02:00
|
|
|
|
2017-11-22 14:13:33 +02:00
|
|
|
${is('inline')`
|
|
|
|
display: inline-block;
|
|
|
|
`};
|
|
|
|
|
|
|
|
& + p,
|
|
|
|
& + small,
|
|
|
|
& + h1,
|
|
|
|
& + h2,
|
|
|
|
& + label,
|
|
|
|
& + h3,
|
|
|
|
& + h4,
|
|
|
|
& + h5,
|
|
|
|
& + div,
|
|
|
|
& + span {
|
|
|
|
margin-top: ${remcalc(12)};
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const H6 = styled.h6`
|
2017-11-23 14:18:38 +02:00
|
|
|
color: ${props => props.theme.text};
|
|
|
|
|
2017-11-22 14:13:33 +02:00
|
|
|
line-height: ${remcalc(18)};
|
|
|
|
font-size: ${remcalc(13)};
|
2017-11-23 14:18:38 +02:00
|
|
|
margin: 0;
|
2017-11-22 14:13:33 +02:00
|
|
|
|
|
|
|
${is('inline')`
|
|
|
|
display: inline-block;
|
|
|
|
`};
|
|
|
|
|
2017-11-16 12:47:32 +02:00
|
|
|
& + p,
|
|
|
|
& + small,
|
|
|
|
& + h1,
|
|
|
|
& + h2,
|
|
|
|
& + label,
|
|
|
|
& + h3,
|
|
|
|
& + h4,
|
|
|
|
& + h5,
|
|
|
|
& + div,
|
|
|
|
& + span {
|
|
|
|
margin-top: ${remcalc(12)};
|
|
|
|
}
|
|
|
|
`;
|