forked from processing/p5.js-web-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into project-og-title
- Loading branch information
Showing
53 changed files
with
2,170 additions
and
1,276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')} | ||
> 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; | ||
} | ||
} | ||
`; |
Oops, something went wrong.