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
88 lines (72 loc) · 1.35 KB
/
_post.elements.js
File metadata and controls
88 lines (72 loc) · 1.35 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
import styled, { css } from 'styled-components';
export const PostContainer = styled.div`
${({ theme }) => css`
margin: auto;
color: ${props => props.theme.homepage.white};
overflow: hidden;
line-height: 1.7;
font-weight: 500;
font-size: 18px;
color: rgba(255, 255, 255, 0.9);
h1,
h2,
h3,
h4,
h5,
h6 {
color: ${props => props.theme.homepage.white};
font-weight: 800;
}
h2 {
margin-top: 3rem;
font-size: 28px;
}
h3 {
margin-top: 3.5rem;
margin-bottom: 1.5rem;
font-size: 26px;
}
h4 {
margin-top: 2rem;
margin-bottom: 0.5rem;
font-size: 20px;
font-weight: 600;
}
ul,
ol {
margin-bottom: 28px;
}
p {
margin-bottom: 28px;
word-break: break-word;
}
p,
li {
color: rgba(255, 255, 255, 0.8);
}
img {
display: block;
margin: 20px auto;
}
figcaption {
text-align: center;
color: rgba(255, 255, 255, 0.6);
}
a {
color: ${theme.shySecondary};
}
`};
`;
export const Image = styled.img`
display: block;
margin: 20px auto;
`;
export const MetaData = styled.aside`
align-items: center;
display: flex;
`;
export const AuthorContainer = styled.div`
align-items: center;
display: flex;
margin-bottom: 0.5rem;
`;