-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Useable Mobile Editor 🎉 #2387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Useable Mobile Editor 🎉 #2387
Changes from 37 commits
953b772
be50580
bc3b2c5
ae19086
9181989
a847e3f
00724fd
822f247
c12f2d7
ad3fbbb
178c37c
1aff6da
0a2c755
c7b26d7
f274edd
3a25305
6f2f428
9f97e4e
c83c1cc
47db20a
5c3b40b
f0521ce
828e182
c1f41a4
29db062
7e03969
e70da37
0f9e496
5861053
52054dc
c508ee6
e51df1e
f33574e
7b26a79
67043d9
8d36f7e
f0490b8
2428625
7b309ed
2a2fa99
8745281
a3ad31a
62daa3c
640a293
3fed465
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
import styled from 'styled-components'; | ||
import { prop, remSize } from '../../../../theme'; | ||
|
||
export const EditorContainer = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
height: 100%; | ||
padding-bottom: 5rem; | ||
transform: ${(props) => | ||
props.expanded ? 'translateX(50%)' : 'translateX(0)'}; | ||
|
||
> header { | ||
display: flex; | ||
${prop('MobilePanel.secondary')} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like we’ve got a value with no property? Here and on line 21. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no this is to set the background color, it automatically does that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we can also change all the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right, I see what you’re saying. You put the “color:” part in the theme object. So it’s like a mixin rather than a color variable. |
||
> span { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
padding: ${remSize(10)}; | ||
font-weight: bold; | ||
${prop('MobilePanel.default')} | ||
} | ||
} | ||
|
||
> section { | ||
display: flex; | ||
flex-direction: column; | ||
height: 100%; | ||
width: 100vw; | ||
overflow-y: auto; | ||
} | ||
`; | ||
|
||
export const EditorHolder = styled.div` | ||
min-height: 100%; | ||
`; | ||
|
||
export const PreviewWrapper = styled.div` | ||
display: ${(props) => (props.show ? 'block' : 'none')}; | ||
position: relative; | ||
height: 100vh; | ||
min-width: 100%; | ||
|
||
.preview-console { | ||
z-index: 1; | ||
} | ||
`; | ||
|
||
export const EditorSidebarWrapper = styled.div` | ||
display: ${(props) => (props.show ? 'block' : 'none')}; | ||
height: 100%; | ||
position: relative; | ||
`; | ||
|
||
export const FileDrawer = styled.div` | ||
height: 100%; | ||
width: 50vw; | ||
display: flex; | ||
flex-direction: column; | ||
position: absolute; | ||
/* z-index: 10; */ | ||
background: ${prop('backgroundColor')}; | ||
|
||
> button[data-backdrop='filedrawer'] { | ||
position: absolute; | ||
background-color: #0005; | ||
height: 100%; | ||
width: 100%; | ||
z-index: 2; | ||
transform: translateX(100%); | ||
} | ||
|
||
@media (min-width: 770px) { | ||
width: 100%; | ||
> button[data-backdrop='filedrawer'] { | ||
display: none; | ||
} | ||
} | ||
`; |
Uh oh!
There was an error while loading. Please reload this page.