Skip to content

Commit ae19086

Browse files
committed
added mobile editor components
1 parent bc3b2c5 commit ae19086

File tree

1 file changed

+90
-0
lines changed

1 file changed

+90
-0
lines changed
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
import styled from 'styled-components';
2+
import { prop, remSize } from '../../../../theme';
3+
4+
export const EditorContainer = styled.div`
5+
display: flex;
6+
flex-direction: column;
7+
height: 100%;
8+
padding-bottom: 5.5rem;
9+
transform: ${(props) =>
10+
props.expanded ? 'translateX(50%)' : 'translateX(0)'};
11+
12+
> header {
13+
display: flex;
14+
${prop('MobilePanel.secondary')}
15+
> span {
16+
display: flex;
17+
justify-content: center;
18+
align-items: center;
19+
padding: ${remSize(10)};
20+
font-weight: bold;
21+
${prop('MobilePanel.default')}
22+
}
23+
}
24+
25+
> section {
26+
display: flex;
27+
flex-direction: column;
28+
height: 100%;
29+
width: 100vw;
30+
overflow-y: auto;
31+
}
32+
`;
33+
34+
export const EditorHolder = styled.div`
35+
min-height: 100%;
36+
`;
37+
38+
export const PreviewWrapper = styled.div`
39+
display: ${(props) => (props.show ? 'block' : 'none')};
40+
position: relative;
41+
height: 100vh;
42+
min-width: 100%;
43+
44+
.preview-console {
45+
z-index: 1;
46+
}
47+
`;
48+
49+
export const EditorSidebarWrapper = styled.div`
50+
display: ${(props) => (props.show ? 'flex' : 'none')};
51+
height: 100%;
52+
position: relative;
53+
`;
54+
55+
export const FileDrawer = styled.div`
56+
height: 100%;
57+
width: 50vw;
58+
display: ${(props) => (props.show ? 'flex' : 'none')};
59+
flex-direction: column;
60+
position: absolute;
61+
/* z-index: 10; */
62+
background: ${prop('backgroundColor')};
63+
64+
> button[data-backdrop='filedrawer'] {
65+
position: absolute;
66+
background-color: #0005;
67+
height: 100%;
68+
width: 100%;
69+
z-index: 2;
70+
transform: translateX(100%);
71+
}
72+
73+
> nav {
74+
padding: ${remSize(14)};
75+
display: flex;
76+
justify-content: space-between;
77+
align-items: center;
78+
width: 100%;
79+
> h4 {
80+
font-weight: bold;
81+
font-size: ${remSize(15)};
82+
margin: 0;
83+
}
84+
> button {
85+
${prop('Button.primary.default')}
86+
height: ${remSize(25)};
87+
width: ${remSize(25)};
88+
}
89+
}
90+
`;

0 commit comments

Comments
 (0)