nicer styling for editor close/open

This commit is contained in:
ari committed 2021-12-24 11:31:58 -05:00
1 parent cc591f854f
commit 039c0631de
6 files changed
+65 -49

No files matched your search

@@ -18,28 +18,7 @@ export const useEditorStyles = createAppUseStyles<{
borderColor: theme.secondaryAccent,
width: '100%',
},
infoBox: ({closeInfo}) => ({
width: closeInfo ? 0 : 'auto',
paddingLeft: '10px',
paddingRight: '10px',
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',
}
infoIcon: ({horizontalMode}) => ({
bottom: horizontalMode ? '90%' : 10
})
}))