forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_post.elements.js
More file actions
160 lines (134 loc) · 2.72 KB
/
_post.elements.js
File metadata and controls
160 lines (134 loc) · 2.72 KB
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
import styled, { css } from 'styled-components';
export const PostContainer = styled.div`
${({ theme }) => css`
color: ${props => props.theme.homepage.white};
font-size: 1.1rem;
line-height: 1.6rem;
font-weight: 300;
color: rgba(255, 255, 255, 0.75);
padding: 0;
h2,
h3,
h4,
h5,
h6 {
color: ${props => props.theme.homepage.white};
line-height: 1.2;
font-weight: 700;
}
h2 {
margin: 4rem 0 2rem 0;
font-size: 2rem;
letter-spacing: -1px;
}
h3 {
margin: 4rem 0 0.5rem 0;
font-size: 23px;
}
h4 {
margin: 3rem 0 0.5rem 0;
font-size: 19px;
font-weight: 600;
}
ul,
ol {
margin-bottom: 2rem;
}
p {
margin-bottom: 2rem;
}
img {
display: block;
margin: 20px auto;
}
figcaption {
text-align: center;
color: rgba(255, 255, 255, 0.6);
}
a {
color: ${theme.shySecondary};
text-decoration: none;
border-bottom: 1px solid rgba(255, 255, 255, 0);
transition: all 100ms ease-in 0s;
}
a:hover {
border-bottom: 1px solid;
border-color: ${theme.shySecondary};
}
`};
`;
export const Article = styled.article`
display: block;
padding: 1rem 0rem;
`;
export const Back = styled.div`
background: red;
`;
export const Header = styled.section`
text-align: center;
padding: 6rem 0 2.5em 0;
color: rgb(242, 242, 242);
margin-bottom: 2rem;
> a {
text-decoration: none;
color: #757575;
font-size: 1rem;
line-height: 4rem;
border-bottom: 1px solid transparent;
transition: all 100ms ease-in;
}
> a:hover {
color: #fff;
border-bottom: 1px solid #fff;
}
`;
export const PostTitle = styled.h1`
font-size: 2rem;
line-height: 3rem;
letter-spacing: -0.02rem;
@media screen and (min-width: 768px) {
font-size: 3rem;
font-weight: 700;
line-height: 5rem;
}
@media screen and (min-width: 960px) {
font-size: 4.5rem;
font-weight: 700;
line-height: 5.5rem;
}
`;
export const Image = styled.img`
width: 100%;
max-width: 960px;
display: block;
box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.5);
border: 1px solid #242424;
overflow: hidden;
border-radius: 0.5rem;
clip-path: inset(0px round 0.5rem);
margin: 0 auto;
`;
export const MetaData = styled.aside`
align-items: center;
`;
export const AuthorContainer = styled.div`
text-align: left;
height: 2.75rem;
width: 12rem;
margin: 2rem auto;
> h4 {
line-height: 22px;
margin: 0;
}
> date {
color: #757575;
font-size: 1rem;
line-height: 22px;
}
> img {
width: 2.75rem;
height: 2.75rem;
float: left;
margin-right: 1rem;
}
`;