-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathwepy-cropper.scss
174 lines (146 loc) · 2.82 KB
/
wepy-cropper.scss
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
.cropper_main_container {
position: fixed;
left: 0;
top: 0;
z-index: 100;
width: 750rpx;
height: 100vh;
background: #555;
overflow: hidden;
}
.cropper_main_container.hidden {
display: none;
}
.cropper_container {
position: absolute;
left: 0;
top: 0;
width: 100%;
}
/* button */
.cropper_toolbar {
position: absolute;
z-index: 100;
bottom: 0;
height: 50px;
background: black;
width: 100%;
line-height: 50px;
font-size: 15px;
text-align: center;
color: white;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.cropper_toolbar .button_item {
/* width: 70px; */
float: left;
width: 25%;
height: 50px;
-webkit-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
/* cancel_button */
/* .cancel_button {
position: absolute;
left: 0;
top: 0;
} */
/* original_button */
/* .original_button {
position: relative;
margin: 0 auto;
width: 70px;
height: 50px;
} */
.original_button .check_container {
position: relative;
float: left;
margin-top: 14px;
width: 18px;
height: 18px;
border: 1px solid white;
}
.original_button.checked {
background: #26ab28;
}
/* .original_button .check_container .check_border {
position: absolute;
left: 0;
top: 0;
width: 18px;
height: 18px;
border-radius: 50%;
border: 1px solid #fff;
overflow: hidden;
}
.original_button .check_container .check_center {
position: absolute;
left: 3px;
top: 3px;
width: 14px;
height: 14px;
border-radius: 50%;
overflow: hidden;
}
.original_button.checked .check_container .check_center {
background: #26ab28;
}
.original_button .check_text {
float: left;
width: 50px;
} */
/* rotate image */
/* .rotate_button {
position: absolute;
left: 50px;
top: 0;
} */
/* crop_image_button */
.crop_image_button {
/* position: absolute;
right: 0;
top: 0; */
color: #26ab28;
}
.crop_image_button.disable {
/* color: #038905; */
color: rgba(0, 0, 0, 0);
}
/* canvas */
.cropper_movable_area_container {
position: absolute;
}
.cropper_canvas_container {
position: absolute;
left: 0;
top: 0;
}
/* opacity:0隐藏,如果想看就设置为1,只能在测试机能看到,真机上canvas层级在最高层 */
.cropper_movable_area_container .move_item {
z-index: 100;
/* opacity: 0.7; */
opacity: 0;
background: white;
border-radius: 50%;
}
.cropper_canvas_container .canvas {
position: absolute;
left: 0;
top: 0;
/* opacity: 0; */
}
/* 因为display:none在真机上会造成无法截取图片,所以这里是通过移到显示区域外来达到隐藏效果的 */
.original_canvas {
position: absolute;
left: 750rpx;
top: 100vh;
}