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';
|
2018-04-12 12:53:00 +03:00
|
|
|
import is from 'styled-is';
|
2017-05-18 21:21:33 +03:00
|
|
|
|
2018-03-28 15:51:34 +03:00
|
|
|
export const H1 = styled(NH1)`
|
2018-04-12 12:53:00 +03:00
|
|
|
margin: 0;
|
2018-01-19 19:37:31 +02:00
|
|
|
font-family: ${props => props.theme.font.families};
|
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;
|
2018-01-08 17:13:05 +02:00
|
|
|
font-stretch: normal;
|
2018-05-25 18:27:05 +03:00
|
|
|
font-weight: ${props => props.theme.font.weight.normal};
|
2018-04-06 17:53:44 +03:00
|
|
|
margin: 0;
|
2017-09-26 14:12:15 +03:00
|
|
|
|
2018-03-21 18:19:17 +02:00
|
|
|
${is('inline')`
|
2017-11-22 14:13:33 +02:00
|
|
|
display: inline-block;
|
|
|
|
`};
|
|
|
|
|
2018-03-21 18:19:17 +02:00
|
|
|
${is('small')`
|
2018-03-01 15:40:36 +02:00
|
|
|
font-size: ${remcalc(32)};
|
|
|
|
`};
|
|
|
|
|
2018-03-21 18:19:17 +02:00
|
|
|
${is('bold')`
|
2018-01-16 13:54:22 +02:00
|
|
|
font-weight: ${props => props.theme.font.weight.semibold};
|
|
|
|
`};
|
|
|
|
|
2018-03-21 18:19:17 +02:00
|
|
|
${is('white')`
|
2017-12-18 17:40:31 +02:00
|
|
|
-webkit-text-fill-color: currentcolor;
|
2017-12-18 16:31:35 +02:00
|
|
|
color: ${props => props.theme.white}
|
|
|
|
`};
|
2017-05-18 21:21:33 +03:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const H2 = styled.h2`
|
2018-04-12 12:53:00 +03:00
|
|
|
margin: 0;
|
2017-11-23 14:18:38 +02:00
|
|
|
color: ${props => props.theme.text};
|
2018-05-25 18:27:05 +03:00
|
|
|
font-weight: ${props => props.theme.font.weight.normal};
|
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-09-26 14:12:15 +03:00
|
|
|
|
2018-03-21 18:19:17 +02:00
|
|
|
${is('inline')`
|
2017-11-22 14:13:33 +02:00
|
|
|
display: inline-block;
|
|
|
|
`};
|
|
|
|
|
2018-03-21 18:19:17 +02:00
|
|
|
${is('small')`
|
2018-03-01 15:40:36 +02:00
|
|
|
font-size: ${remcalc(24)};
|
|
|
|
`};
|
|
|
|
|
2018-03-21 18:19:17 +02:00
|
|
|
${is('bold')`
|
2018-01-16 13:54:22 +02:00
|
|
|
font-weight: ${props => props.theme.font.weight.semibold};
|
|
|
|
`};
|
|
|
|
|
2018-03-21 18:19:17 +02:00
|
|
|
${is('white')`
|
2017-12-18 17:40:31 +02:00
|
|
|
-webkit-text-fill-color: currentcolor;
|
2017-12-18 16:31:35 +02:00
|
|
|
color: ${props => props.theme.white}
|
|
|
|
`};
|
2017-05-18 21:21:33 +03:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const H3 = styled.h3`
|
2018-04-12 12:53:00 +03:00
|
|
|
margin: 0;
|
2017-11-23 14:18:38 +02:00
|
|
|
color: ${props => props.theme.text};
|
2018-05-25 18:27:05 +03:00
|
|
|
font-weight: ${props => props.theme.font.weight.normal};
|
2017-09-26 14:12:15 +03:00
|
|
|
line-height: ${remcalc(26)};
|
|
|
|
font-size: ${remcalc(21)};
|
|
|
|
|
2018-03-21 18:19:17 +02:00
|
|
|
${is('inline')`
|
2017-11-22 14:13:33 +02:00
|
|
|
display: inline-block;
|
|
|
|
`};
|
|
|
|
|
2018-03-21 18:19:17 +02:00
|
|
|
${is('small')`
|
2018-03-01 15:40:36 +02:00
|
|
|
font-size: ${remcalc(18)};
|
|
|
|
`};
|
|
|
|
|
2018-03-21 18:19:17 +02:00
|
|
|
${is('bold')`
|
2018-01-16 13:54:22 +02:00
|
|
|
font-weight: ${props => props.theme.font.weight.semibold};
|
|
|
|
`};
|
|
|
|
|
2018-03-21 18:19:17 +02:00
|
|
|
${is('white')`
|
2017-12-18 17:40:31 +02:00
|
|
|
-webkit-text-fill-color: currentcolor;
|
2017-12-18 16:31:35 +02:00
|
|
|
color: ${props => props.theme.white}
|
|
|
|
`};
|
2017-09-26 14:12:15 +03:00
|
|
|
`;
|
2017-05-18 21:21:33 +03:00
|
|
|
|
2017-09-26 19:07:45 +03:00
|
|
|
export const H4 = styled.h4`
|
2018-04-12 12:53:00 +03:00
|
|
|
margin: 0;
|
2017-11-23 14:18:38 +02:00
|
|
|
color: ${props => props.theme.text};
|
2018-04-06 17:53:44 +03:00
|
|
|
font-weight: ${props => props.theme.font.weight.normal};
|
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-09-26 14:12:15 +03:00
|
|
|
|
2018-03-21 18:19:17 +02:00
|
|
|
${is('inline')`
|
2017-11-22 14:13:33 +02:00
|
|
|
display: inline-block;
|
|
|
|
`};
|
|
|
|
|
2018-05-23 19:29:04 +03:00
|
|
|
${is('bold')`
|
|
|
|
font-weight: ${props => props.theme.font.weight.semibold};
|
|
|
|
`};
|
|
|
|
|
2018-03-21 18:19:17 +02:00
|
|
|
${is('white')`
|
2017-12-18 17:40:31 +02:00
|
|
|
-webkit-text-fill-color: currentcolor;
|
2017-12-18 16:31:35 +02:00
|
|
|
color: ${props => props.theme.white}
|
|
|
|
`};
|
2017-05-18 21:21:33 +03:00
|
|
|
`;
|
2017-11-16 12:47:32 +02:00
|
|
|
|
|
|
|
export const H5 = styled.h4`
|
2018-04-12 12:53:00 +03:00
|
|
|
margin: 0;
|
2017-11-23 14:18:38 +02:00
|
|
|
color: ${props => props.theme.text};
|
2018-04-06 17:53:44 +03:00
|
|
|
font-weight: ${props => props.theme.font.weight.normal};
|
2017-11-16 12:47:32 +02:00
|
|
|
line-height: ${remcalc(24)};
|
|
|
|
font-size: ${remcalc(15)};
|
|
|
|
|
2018-03-21 18:19:17 +02:00
|
|
|
${is('inline')`
|
2017-11-22 14:13:33 +02:00
|
|
|
display: inline-block;
|
|
|
|
`};
|
|
|
|
|
2018-03-21 18:19:17 +02:00
|
|
|
${is('bold')`
|
2018-01-16 13:54:22 +02:00
|
|
|
font-weight: ${props => props.theme.font.weight.semibold};
|
|
|
|
`};
|
|
|
|
|
2018-03-21 18:19:17 +02:00
|
|
|
${is('white')`
|
2017-12-18 17:40:31 +02:00
|
|
|
-webkit-text-fill-color: currentcolor;
|
2017-12-18 16:31:35 +02:00
|
|
|
color: ${props => props.theme.white}
|
|
|
|
`};
|
2017-11-22 14:13:33 +02:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const H6 = styled.h6`
|
2018-04-12 12:53:00 +03:00
|
|
|
margin: 0;
|
2017-11-23 14:18:38 +02:00
|
|
|
color: ${props => props.theme.text};
|
2018-04-06 17:53:44 +03:00
|
|
|
font-weight: ${props => props.theme.font.weight.normal};
|
2017-11-22 14:13:33 +02:00
|
|
|
line-height: ${remcalc(18)};
|
|
|
|
font-size: ${remcalc(13)};
|
|
|
|
|
2018-03-21 18:19:17 +02:00
|
|
|
${is('inline')`
|
2017-11-22 14:13:33 +02:00
|
|
|
display: inline-block;
|
|
|
|
`};
|
|
|
|
|
2018-03-21 18:19:17 +02:00
|
|
|
${is('bold')`
|
2018-01-16 13:54:22 +02:00
|
|
|
font-weight: ${props => props.theme.font.weight.semibold};
|
|
|
|
`};
|
|
|
|
|
2018-03-21 18:19:17 +02:00
|
|
|
${is('white')`
|
2017-12-18 17:40:31 +02:00
|
|
|
-webkit-text-fill-color: currentcolor;
|
2017-12-18 16:31:35 +02:00
|
|
|
color: ${props => props.theme.white}
|
|
|
|
`};
|
2017-11-16 12:47:32 +02:00
|
|
|
`;
|