import { Theme, createStyles, makeStyles } from '@material-ui/core/styles' const drawerWidth = 240 const useStyles = makeStyles((theme: Theme) => createStyles({ root: { display: 'flex', }, appBar: { transition: theme.transitions.create(['margin', 'width'], { easing: theme.transitions.easing.sharp, duration: theme.transitions.duration.leavingScreen, }), }, appBarShift: { width: `calc(100% - ${drawerWidth}px)`, marginLeft: drawerWidth, transition: theme.transitions.create(['margin', 'width'], { easing: theme.transitions.easing.easeOut, duration: theme.transitions.duration.enteringScreen, }), }, menuButton: { marginRight: theme.spacing(2), }, hide: { display: 'none', }, drawer: { width: drawerWidth, flexShrink: 0, }, drawerPaper: { width: drawerWidth, }, drawerHeader: { display: 'flex', alignItems: 'center', padding: theme.spacing(0, 1), // necessary for content to be below app bar ...theme.mixins.toolbar, justifyContent: 'flex-start', }, content: { flexGrow: 1, overflowX: 'hidden', paddingLeft: theme.spacing(0), paddingRight: theme.spacing(0), transition: theme.transitions.create('margin', { easing: theme.transitions.easing.sharp, duration: theme.transitions.duration.leavingScreen, }), marginLeft: -drawerWidth, }, contentShift: { transition: theme.transitions.create('margin', { easing: theme.transitions.easing.easeOut, duration: theme.transitions.duration.enteringScreen, }), marginLeft: 0, }, image: { marginRight: '8px' }, menu: { display: 'flex', justifyContent: 'justify-center', flexDirection: 'row', marginLeft: '5em', position: 'absolute', right: 0 }, toolbar: { marginRight: '2em' } }), ) export default useStyles