forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_SandboxModal.elements.js
More file actions
124 lines (102 loc) · 2.52 KB
/
_SandboxModal.elements.js
File metadata and controls
124 lines (102 loc) · 2.52 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
import styled, { css } from 'styled-components';
import { UserWithAvatar } from '@codesandbox/common/lib/components/UserWithAvatar';
import RightArrow from 'react-icons/lib/md/keyboard-arrow-right';
import LeftArrow from 'react-icons/lib/md/keyboard-arrow-left';
import Stats from '@codesandbox/common/lib/components/Stats';
export const Container = styled.div`
position: relative;
background-color: ${props => props.theme.background2};
display: flex;
flex-direction: column;
border-radius: 4px;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
`;
const ArrowStyles = css`
transition: 0.3s ease color;
top: 50%;
font-size: 48px;
color: rgba(255, 255, 255, 0.8);
cursor: pointer;
&:hover {
color: white;
}
`;
export const StyledRightArrow = styled(RightArrow)`
position: absolute;
right: -54px;
${ArrowStyles};
@media screen and (max-width: 800px) {
right: -40px;
}
`;
export const StyledLeftArrow = styled(LeftArrow)`
position: absolute;
left: -54px;
${ArrowStyles};
@media screen and (max-width: 800px) {
left: -40px;
}
`;
export const SandboxInfoContainer = styled.div`
display: flex;
@media screen and (max-width: 800px) {
flex-direction: column;
}
`;
export const StatsContainer = styled.div`
flex: 1;
padding: 1.5rem;
margin-top: 3px;
font-weight: 600;
color: ${props => props.theme.new.description};
`;
export const StyledStats = styled(Stats)`
margin-top: 11px;
`;
export const StatsHeader = styled.h2`
color: ${props => props.theme.new.title};
font-size: 1.25rem;
margin-top: 0 !important;
margin-bottom: 0;
font-weight: 700;
`;
export const Author = styled(UserWithAvatar)`
position: absolute;
left: 0.875rem;
bottom: 1.5rem;
color: ${props => props.theme.new.description};
font-weight: 600;
`;
export const SandboxInfo = styled.div`
padding: 1.5rem;
color: ${props => props.theme.new.title};
flex: 2;
min-height: 200px;
`;
export const Footer = styled.footer`
padding: 1rem 1.5rem;
padding-top: 10px;
`;
export const FooterInfo = styled.div`
display: flex;
justify-content: space-between;
position: relative;
`;
export const SandboxTitle = styled.h1`
font-size: 1.5rem;
color: ${props => props.theme.new.title};
font-weight: 800;
margin-bottom: 0.5rem;
`;
export const SandboxDescription = styled.p`
color: ${props => props.theme.new.title};
color: ${props => props.theme.new.description};
`;
export const TemplateLogo = styled.section`
display: flex;
align-items: center;
svg,
img {
margin-right: 10px;
}
`;