ported parts of node editor
This commit is contained in:
1 parent
0764feb432
commit
59542abad7
11 files changed
+227
-75
No files matched your search
@@ -0,0 +1,54 @@
|
||||
import Color from "chroma-js";
|
||||
import { createAppUseStyles } from "styles/theme";
|
||||
|
||||
export const useNodeEditorStyles = createAppUseStyles<{
|
||||
|
||||
}>(theme => ({
|
||||
root: {
|
||||
position: 'absolute',
|
||||
display: 'flex',
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
width: '100vw',
|
||||
height: '100vh',
|
||||
left: '0',
|
||||
top: '0',
|
||||
},
|
||||
background: {
|
||||
position: 'absolute',
|
||||
zIndex: 0,
|
||||
width: '100vw',
|
||||
height: '100vw',
|
||||
backgroundColor: Color(theme.secondary).alpha(0.5).hex(),
|
||||
},
|
||||
inner: {
|
||||
zIndex: 1,
|
||||
maxWidth: '80%',
|
||||
maxHeight: '60%',
|
||||
minHeight: '200px',
|
||||
minWidth: '200px',
|
||||
borderRadius: '20px',
|
||||
padding: '15px',
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
backgroundColor: theme.primary,
|
||||
borderSize: '1px',
|
||||
borderStyle: 'solid',
|
||||
borderColor: theme.primaryAccent,
|
||||
},
|
||||
title: {
|
||||
textAlign: 'center',
|
||||
padding: 10,
|
||||
fontWeight: 'bold',
|
||||
color: theme.secondaryAccent,
|
||||
},
|
||||
body: {
|
||||
flexGrow: 1
|
||||
},
|
||||
footer: {
|
||||
display: 'flex',
|
||||
flexDirection: 'row',
|
||||
justifyContent: 'space-between',
|
||||
alignItems: 'center',
|
||||
}
|
||||
}))
|
||||
Reference in new issue
Block a user