-
Notifications
You must be signed in to change notification settings - Fork 42
/
responsive.web.js
113 lines (94 loc) · 2.27 KB
/
responsive.web.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
import { Text, View } from "react-native";
import styled from "styled-components";
import {
breakpoints,
colours,
fontSizes,
lineHeight,
spacing
} from "@times-components/styleguide";
export const AuthorImageContainer = styled(View)`
border-radius: 50%;
height: 100px;
overflow: hidden;
width: 100px;
@media (min-width: ${breakpoints.medium}px) {
height: 118px;
width: 118px;
}
`;
export const DatePublicationContainer = styled(Text)`
flex-direction: row;
flex-wrap: wrap;
margin-top: ${spacing(3)};
@media (min-width: ${breakpoints.medium}px) {
margin-top: 0;
}
`;
export const FlagsContainer = styled(View)`
padding-top: ${spacing(1)};
padding-bottom: ${spacing(3)};
@media (min-width: ${breakpoints.medium}px) {
padding-top: 0;
}
`;
export const HeaderContainer = styled(View)`
order: 2;
@media (min-width: ${breakpoints.medium}px) {
width: 80.8%;
margin: 0 auto ${spacing(2)};
margin-left: auto;
margin-right: auto;
}
@media (min-width: ${breakpoints.wide}px) {
width: 56.2%;
}
`;
export const HeadlineContainer = styled(Text)`
@media (min-width: ${breakpoints.medium}px) {
font-size: ${fontSizes.articleHeadline}px;
line-height: 50px;
margin-bottom: ${spacing(1)};
}
`;
export const LabelContainer = styled(View)`
@media (min-width: ${breakpoints.wide}px) {
margin-top: 0px;
}
`;
export const Meta = styled(View)`
width: 100%;
@media (min-width: ${breakpoints.medium}px) {
margin-top: 0;
}
`;
export const MetaContainer = styled(View)`
align-items: center;
@media (min-width: ${breakpoints.medium}px) {
flex-direction: row;
flex-wrap: wrap;
}
`;
export const Separator = styled(View)`
display: none;
@media (min-width: ${breakpoints.medium}px) {
background-color: ${colours.functional.keyline};
display: flex;
height: ${spacing(3)};
margin: 0 ${spacing(2)};
width: 1px;
}
`;
export const StandfirstContainer = styled(Text)`
@media (min-width: ${breakpoints.medium}px) {
font-size: ${fontSizes.infoTitle}px;
line-height: ${lineHeight({
font: "bodyRegular",
fontSize: "infoTitle"
})}px;
margin-bottom: ${spacing(5)};
}
@media (min-width: ${breakpoints.wide}px) {
margin-bottom: ${spacing(4)};
}
`;