-
Notifications
You must be signed in to change notification settings - Fork 0
/
EasyCrop.ts
47 lines (45 loc) · 982 Bytes
/
EasyCrop.ts
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
import { Theme } from "@material-ui/core";
export const styles = (theme: Theme) => ({
cropContainer: {
position: 'relative',
width: '100%',
height: 200,
background: '#333',
[theme.breakpoints.up('sm')]: {
height: 400,
},
},
cropButton: {
flexShrink: 0,
marginLeft: 16,
},
controls: {
padding: 16,
display: 'flex',
flexDirection: 'column',
alignItems: 'stretch',
[theme.breakpoints.up('sm')]: {
flexDirection: 'row',
alignItems: 'center',
},
},
sliderContainer: {
display: 'flex',
flex: '1',
alignItems: 'center',
},
sliderLabel: {
[theme.breakpoints.down('xs')]: {
minWidth: 65,
},
},
slider: {
padding: '22px 0px',
marginLeft: 32,
[theme.breakpoints.up('sm')]: {
flexDirection: 'row',
alignItems: 'center',
margin: '0 16px',
},
},
})