mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-15 03:27:57 +01:00
81 lines
2.4 KiB
TypeScript
81 lines
2.4 KiB
TypeScript
|
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,
|
||
|
}),
|
||
|
},
|
||
|
menuButton: {
|
||
|
marginRight: 36,
|
||
|
},
|
||
|
hide: {
|
||
|
display: 'none',
|
||
|
},
|
||
|
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,
|
||
|
}),
|
||
|
},
|
||
|
drawerClose: {
|
||
|
transition: theme.transitions.create('width', {
|
||
|
easing: theme.transitions.easing.sharp,
|
||
|
duration: theme.transitions.duration.leavingScreen,
|
||
|
}),
|
||
|
overflowX: 'hidden',
|
||
|
width: theme.spacing(7) + 1,
|
||
|
[theme.breakpoints.up('sm')]: {
|
||
|
width: theme.spacing(9) + 1,
|
||
|
},
|
||
|
},
|
||
|
toolbar: {
|
||
|
display: 'flex',
|
||
|
alignItems: 'center',
|
||
|
justifyContent: 'flex-end',
|
||
|
padding: theme.spacing(0, 1),
|
||
|
// necessary for content to be below app bar
|
||
|
...theme.mixins.toolbar,
|
||
|
},
|
||
|
content: {
|
||
|
flexGrow: 1,
|
||
|
padding: theme.spacing(3),
|
||
|
},
|
||
|
listItemText: {
|
||
|
}
|
||
|
}),
|
||
|
);
|
||
|
|
||
|
export const ListItemTextStyled = withStyles({
|
||
|
root:
|
||
|
{
|
||
|
color: 'white',
|
||
|
}
|
||
|
})(ListItemText);
|