-
Notifications
You must be signed in to change notification settings - Fork 24
/
cropper.css
113 lines (103 loc) · 1.65 KB
/
cropper.css
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
.Cropper {
position: relative;
display: inline-block;
max-width:100%;
max-height:100%;
}
.box {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
.Cropper-box {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
cursor: move;
border: #fff solid 1px;
}
.Cropper-canvas {
visibility: hidden;
position: absolute;
}
.Cropper-image {
vertical-align: middle;
max-width: 100%;
position: relative;
transform: translate(-50%, -50%);
left: 50%;
}
.resize-handle {
position: absolute;
background-color: #ECEEEF;
border: #8295AB solid 1px;
width: 13px;
height: 13px;
z-index: 1;
}
.resize-handle-se {
bottom: 0;
right: 0;
cursor: nwse-resize;
transform: translate(50%, 50%);
}
.resize-handle-ne {
right: 0;
top: 0;
cursor: nesw-resize;
transform: translate(50%, -50%);
}
.resize-handle-sw {
bottom: 0;
left: 0;
cursor: nesw-resize;
transform: translate(-50%, 50%);
}
.resize-handle-nw {
top: 0;
bottom: 0;
cursor: nwse-resize;
transform: translate(-50%, -50%);
}
.DraggableResizable {
position: relative;
width: 100%;
height: 100%;
}
.DraggableResizable-controls {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
.DraggableResizable-top,
.DraggableResizable-left,
.DraggableResizable-bottom,
.DraggableResizable-right {
position: absolute;
background-color: rgba(0,0,0,.7);
}
.DraggableResizable-top {
top: 0;
left: 0;
right: 0;
}
.DraggableResizable-bottom {
bottom: 0;
left: 0;
right: 0;
}
.DraggableResizable-left {
left: 0;
}
.DraggableResizable-right {
right: 0;
}