68 lines
1.7 KiB
TypeScript
68 lines
1.7 KiB
TypeScript
import { createAppUseStyles } from "styles/theme";
|
|
|
|
|
|
export const useEditorStyles = createAppUseStyles<{
|
|
closeInfo: boolean;
|
|
horizontalMode: boolean;
|
|
autoChanged: string;
|
|
}>(theme => ({
|
|
wrapper: {
|
|
display: 'flex',
|
|
flexDirection: 'column',
|
|
alignItems: "flex-end",
|
|
height: '100%',
|
|
width: '100%',
|
|
overflow: 'hidden',
|
|
},
|
|
root: ({ horizontalMode }) => ({
|
|
height: '100%',
|
|
width: '100%',
|
|
color: theme.primaryAccent,
|
|
display: 'flex',
|
|
flexDirection: horizontalMode ? 'column' : 'row',
|
|
}),
|
|
dag: {
|
|
borderWidth: 1,
|
|
borderStyle: 'solid',
|
|
borderColor: theme.secondaryAccent,
|
|
width: '100%',
|
|
},
|
|
infoIcon: ({ horizontalMode }) => ({
|
|
bottom: horizontalMode ? '90%' : 10
|
|
}),
|
|
zoom: {
|
|
backgroundColor: theme.secondary,
|
|
color: theme.secondaryAccent,
|
|
textAlign: 'center',
|
|
maxWidth: "3em",
|
|
},
|
|
zoomImg: {
|
|
|
|
},
|
|
toolbar: ({ autoChanged }) => ({
|
|
width: "100%",
|
|
height: autoChanged === 'changed' ? 'initial' : 0,
|
|
display: "flex",
|
|
flexDirection: "row",
|
|
justifyContent: 'space-between',
|
|
alignItems: "center",
|
|
padding: "0.5em",
|
|
borderBottom: autoChanged === 'changed' ? '1px solid var(--change)' : undefined,
|
|
borderLeft: autoChanged === 'changed' ? '1px solid var(--change)' : undefined,
|
|
}),
|
|
saveBtn: ({ autoChanged }) => ({
|
|
display: "flex",
|
|
opacity: autoChanged === "changed" ? 1 : 0,
|
|
height: autoChanged === "changed" ? undefined : 0,
|
|
fontSize: autoChanged === "changed" ? undefined : 0,
|
|
gap: '0.5em',
|
|
maxHeight: '1em',
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
borderColor: "var(--change) !important",
|
|
color: "var(--change) !important",
|
|
paddingTop: '1em !important',
|
|
paddingBottom: '1em !important',
|
|
}),
|
|
}))
|