2021-01-25 19:39:53 +01:00
|
|
|
import { createStyles, ListItemText, Theme, withStyles } from "@material-ui/core";
|
|
|
|
import { makeStyles } from "@material-ui/core";
|
|
|
|
|
|
|
|
const drawerWidth = 300;
|
|
|
|
|
|
|
|
export const useStyles = makeStyles((theme: Theme) =>
|
|
|
|
createStyles({
|
|
|
|
root: {
|
|
|
|
display: 'flex',
|
|
|
|
},
|
|
|
|
appBar: {
|
|
|
|
zIndex: theme.zIndex.drawer + 1,
|
|
|
|
transition: theme.transitions.create(['width', 'margin'], {
|
|
|
|
easing: theme.transitions.easing.sharp,
|
|
|
|
duration: theme.transitions.duration.leavingScreen,
|
|
|
|
}),
|
|
|
|
background: '#ffffff',
|
|
|
|
|
|
|
|
},
|
|
|
|
appBarShift: {
|
|
|
|
marginLeft: drawerWidth,
|
|
|
|
width: `calc(100% - ${drawerWidth}px)`,
|
|
|
|
transition: theme.transitions.create(['width', 'margin'], {
|
|
|
|
easing: theme.transitions.easing.sharp,
|
|
|
|
duration: theme.transitions.duration.enteringScreen,
|
|
|
|
}),
|
|
|
|
},
|
2021-01-28 02:27:19 +01:00
|
|
|
newMapButton: {
|
|
|
|
marginRight: 10,
|
|
|
|
},
|
|
|
|
importButton: {
|
|
|
|
marginRight: 10,
|
|
|
|
},
|
|
|
|
rightButtonGroup: {
|
|
|
|
marginRight: 10,
|
|
|
|
flexGrow: 10,
|
2021-02-02 07:15:32 +01:00
|
|
|
textAlign: 'right',
|
|
|
|
minWidth: '200px'
|
2021-01-25 19:39:53 +01:00
|
|
|
},
|
|
|
|
drawer: {
|
|
|
|
width: drawerWidth,
|
|
|
|
flexShrink: 0,
|
|
|
|
whiteSpace: 'nowrap',
|
|
|
|
},
|
|
|
|
drawerOpen: {
|
|
|
|
background: '#ffa800',
|
|
|
|
width: drawerWidth,
|
|
|
|
transition: theme.transitions.create('width', {
|
|
|
|
easing: theme.transitions.easing.sharp,
|
|
|
|
duration: theme.transitions.duration.enteringScreen,
|
|
|
|
}),
|
|
|
|
},
|
|
|
|
toolbar: {
|
|
|
|
display: 'flex',
|
|
|
|
justifyContent: 'flex-end',
|
2021-02-01 03:04:50 +01:00
|
|
|
minHeight: '44px'
|
2021-01-25 19:39:53 +01:00
|
|
|
},
|
|
|
|
content: {
|
|
|
|
flexGrow: 1,
|
|
|
|
padding: theme.spacing(3),
|
|
|
|
}
|
|
|
|
}),
|
2021-02-01 03:04:50 +01:00
|
|
|
);
|