forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelements.js
More file actions
90 lines (76 loc) · 1.67 KB
/
elements.js
File metadata and controls
90 lines (76 loc) · 1.67 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
import styled from 'styled-components';
export const TweetsWrapper = styled.a`
display: block;
text-decoration: none;
position: absolute;
width: 520px;
background: ${props => props.theme.homepage.grey};
box-shadow: 0px 1rem 1rem rgba(4, 4, 4, 0.25);
border-radius: 4px;
margin-top: 5.5rem;
right: 7rem;
padding: 2.7rem 4.2rem;
@media screen and (max-width: 1260px) {
right: 0;
}
${props =>
props.right &&
`
left: auto;
right: -6.7rem;
`}
${props => props.theme.breakpoints.lg} {
position: relative;
right: auto;
left: auto;
width: 100%;
height: auto;
}
${props => props.theme.breakpoints.md} {
background: transparent;
padding: 0;
margin: 0;
margin-top: 4rem;
}
`;
export const Quote = styled.blockquote`
font-family: Roboto;
font-style: italic;
font-weight: normal;
font-size: 1.4375rem;
line-height: 32px;
color: ${props => props.theme.homepage.muted};
margin: 0;
margin-bottom: 2rem;
${props => props.theme.breakpoints.md} {
font-size: 1.2rem;
line-height: 1.5;
}
`;
export const Info = styled.p`
font-style: normal;
font-weight: 500;
font-size: 1rem;
line-height: 24px;
margin: 0;
color: ${props => props.theme.homepage.muted};
`;
export const Avatar = styled.img`
width: 64px;
height: 64px;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 50%;
margin-right: 1rem;
${props => props.theme.breakpoints.md} {
margin-bottom: 1rem;
margin-right: 0;
}
`;
export const Author = styled.footer`
display: flex;
align-items: center;
${props => props.theme.breakpoints.md} {
flex-direction: column;
text-align: center;
}
`;