forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelements.ts
More file actions
47 lines (39 loc) · 896 Bytes
/
elements.ts
File metadata and controls
47 lines (39 loc) · 896 Bytes
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
import styled from 'styled-components';
import Centered from '@codesandbox/common/lib/components/flex/Centered';
export const Container = styled(Centered)`
height: 100%;
color: ${props =>
props.theme['editor.foreground'] || 'rgba(255, 255, 255, 0.9)'};
overflow: auto;
padding: 1rem;
`;
export const Title = styled.div`
font-size: 2rem;
margin-top: 3rem;
margin: 1rem 0;
`;
export const SubTitle = styled.div`
font-size: 1.5rem;
color: ${props =>
props.theme.light ? 'rgba(0, 0, 0, 0.7)' : 'rgba(255, 255, 255, 0.7)'};
`;
export const Image = styled.img`
margin-top: 2rem;
margin-bottom: 1rem;
max-width: 80%;
max-height: 70%;
`;
export const MaxWidth = styled.form`
display: flex;
justify-content: centered;
flex-direction: row;
width: 80%;
input {
flex: 4;
font-size: 1.5rem;
}
button {
flex: 1;
margin-left: 1rem;
}
`;