forked from bible-technology/scribe-scripture-editor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
useStyles.js
executable file
·89 lines (84 loc) · 1.73 KB
/
useStyles.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import * as React from 'react';
import { makeStyles, withStyles } from '@material-ui/core/styles';
import MuiDialogContent from '@material-ui/core/DialogContent';
import MuiDialogActions from '@material-ui/core/DialogActions';
import { Zoom } from '@material-ui/core';
const drawerWidth = 150;
export const useStyles = makeStyles((theme) => ({
root: {
display: 'flex',
marginBottom: 55,
},
grow: {
flexGrow: 1,
},
hide: {
display: 'none',
},
appBar: {
zIndex: theme.zIndex.drawer + 1,
},
menuButton: {
marginLeft: -12,
marginRight: 20,
},
drawer: {
width: drawerWidth,
flexShrink: 0,
},
drawerPaper: {
width: drawerWidth,
},
drawerContainer: {
overflow: 'auto',
},
drawerHeader: {
display: 'flex',
alignItems: 'center',
padding: '0 8px',
...theme.mixins.toolbar,
justifyContent: 'flex-end',
},
// RepositoryMenu and UserMenu
avatar: {
width: '35px',
height: '35px',
},
modal: {
position: 'absolute',
top: '10%',
left: '10%',
right: '10%',
maxHeight: '80%',
overflow: 'scroll',
},
dialogTitle: {
margin: 0,
padding: theme.spacing(2),
},
closeButton: {
position: 'absolute',
right: theme.spacing(1),
top: theme.spacing(1),
color: theme.palette.grey[500],
},
}));
export const DialogContent = withStyles((theme) => ({
root: {
padding: theme.spacing(2),
},
}))(MuiDialogContent);
export const DialogActions = withStyles((theme) => ({
root: {
margin: 0,
padding: theme.spacing(1),
},
}))(MuiDialogActions);
export const Transition = React.forwardRef((props, ref) => (
<Zoom
style={{ transitionDelay: '50ms' }}
direction="up"
ref={ref}
{...props}
/>
));