show hide metadata dim

This commit is contained in:
ari committed 2021-12-16 17:19:59 -05:00
1 parent 997c793c36
commit 3cfb8151eb
7 files changed
+78 -49

No files matched your search

@@ -1,26 +1,45 @@
import { createAppUseStyles } from "styles/theme";
export const useEditorStyles = createAppUseStyles(theme => ({
root: {
export const useEditorStyles = createAppUseStyles<{
closeInfo: boolean;
horizontalMode: boolean;
}>(theme => ({
root: ({horizontalMode}) => ({
height: '100%',
width: '100%',
color: theme.primaryAccent,
display: 'flex',
flexDirection: 'row',
},
flexDirection: horizontalMode ? 'column' : 'row',
}),
dag: {
borderWidth: 1,
borderStyle: 'solid',
borderColor: theme.secondaryAccent,
width: '100%',
},
infoBox: {
infoBox: ({closeInfo}) => ({
width: closeInfo ? 0 : 'auto',
paddingLeft: '10px',
paddingRight: '10px',
display: 'flex',
display: closeInfo ? 'none' : 'flex',
flexDirection: 'column',
justifyContent: 'flex-start',
overflow: 'auto',
},
paddingTop: 5,
paddingBottom: 10,
position: 'relative',
}),
infoIcon: ({closeInfo, horizontalMode}) => ({
position: 'absolute',
top: horizontalMode ? '90%' : 10,
left: horizontalMode ? "3%" : closeInfo ? "2.5%" :"20%",
zIndex: 10,
background: theme.secondary,
"&:hover": {
background: theme.secondaryAccent,
borderRadius: 100,
cursor: 'pointer',
}
})
}))