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
90
91
92
93
94
95
|
import { darken } from '@material-ui/core/styles/colorManipulator';
const expand = {
bottom: 'auto',
right: 'auto',
left: '50%',
top: '50%',
transform: 'translateX(-50%) translateY(-50%)'
};
const styles = theme => ({
formTheme: {
background: darken(theme.palette.primary.dark, 0.2),
boxShadow: theme.shadows[7]
},
hideForm: {
display: 'none'
},
showForm: {
display: 'block'
},
btnOpt: {},
expandButton: {
[theme.breakpoints.down('sm')]: {
display: 'none'
}
},
floatingForm: {
position: 'fixed',
width: 500,
bottom: 10,
right: 10,
zIndex: 1300,
borderRadius: 3,
overflow: 'hidden',
[theme.breakpoints.down('sm')]: {
width: '95% !important',
...expand
},
'& header': {
color: theme.palette.common.white,
padding: '15px 20px',
'& $btnOpt': {
position: 'absolute',
right: 0,
top: 0,
'& > *': {
margin: '0 5px'
},
'& $expandButton': {
transform: 'rotate(270deg)'
},
'& svg': {
fill: theme.palette.common.white,
}
}
},
},
bodyForm: {
position: 'relative',
background: theme.palette.common.white,
padding: '15px 30px',
maxHeight: 900,
overflow: 'auto'
},
buttonArea: {
background: theme.palette.grey[100],
position: 'relative',
bottom: 0,
left: 0,
width: '100%',
textAlign: 'right',
padding: '10px 30px',
'& button': {
marginRight: 5
}
},
expanded: {
...expand
},
formOverlay: {
position: 'fixed',
background: theme.palette.grey[900],
opacity: 0.7,
width: '100%',
height: '100%',
top: 0,
left: 0,
zIndex: 1300,
},
large: {
width: 650
}
});
export default styles;
|