-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcropimage.css
152 lines (129 loc) · 5.04 KB
/
cropimage.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
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
/** ---------------------------------------------------------------------------
* CropImage Plugin stylesheet
* ---------------------------------------------------------------------------
* Version: 1.2.1
* Author: Fabrice K.E.M
* Created: 10/06/2018
* Updated: 27/06/2024
*/
.R-container div,
.R-container canvas { position:absolute;margin:0;box-sizing:unset; }
.R-container{
position: relative;
margin:0 auto;width:100%;height:100%;
overflow:hidden;background-image: url('./transgraphic.png');
-webkit-user-select:none;
-moz-user-select:none;
-ms-user-select:none;
-o-user-select:none;
user-select:none;
}
.R-container.custom { background: none; }
/**---------------------------------------------------------------------------------------------------------**/
.R-container .R-error {
position:absolute;
z-index: 3;
width: 100%;
height: 100%;
left:0;top:0;
display: flex;
align-items: center;
justify-content: center;
font-family:tahoma;
text-align:center;
color:rgb(230, 230, 230);
background-color: black;
font-size:1.1em;
}
.R-container .R-adapter{ overflow:hidden; }
.R-container .R-cover{ z-index:1;left:0;right:0;top:0;bottom:0; }
.R-container .R-cropper{ z-index:2;background:rgba(255, 255, 255, .9);border: none; }
.R-container .R-cropper .R-grid{ width: 100%; height: 100%; overflow: hidden; }
.R-container .R-cropper.circle,
.R-container .R-cropper.circle canvas,
.R-container .R-cropper.circle .R-grid{ border-radius:50%; }
.R-container .R-cropper.border { border:2px solid rgba(255, 255, 255, .9); }
/**---------------------------------------------------------------------------------------------------------**/
.R-col-1, .R-col-2, .R-col-3{ z-index:2;width:33.33333%;height:100%; }
.R-raw-1, .R-raw-2, .R-raw-3{ z-index:2;width:100%;height:33.33333%; }
.R-col-1{ border-right:1px dashed rgba(255, 255, 255, .4); }
.R-col-2{ left: 33.53333%;border-right:1px dashed rgba(255, 255, 255, .4); }
.R-col-3{ left: 67.16666%; }
.R-raw-1{ border-bottom:1px dashed rgba(255, 255, 255, .4); }
.R-raw-2{ top: 33.53333%;border-bottom:1px dashed rgba(255, 255, 255, .4) }
.R-raw-3{ top: 67.16666%; }
/**---------------------------------------------------------------------------------------------------------**/
.R-corner-lt, .R-corner-rt, .R-corner-rb, .R-corner-lb{
z-index:3;
width:20px;height:20px;
border:3px solid rgba(255, 255, 255, .5);
transition:300ms;
cursor: grab;
}
.R-corner-lt{ left:5px;top:5px;border-width:3px 0 0 3px; }
.R-corner-rt{ right:5px;top:5px;border-width:3px 3px 0 0; }
.R-corner-rb{ right:5px;bottom:5px;border-width:0 3px 3px 0; }
.R-corner-lb{ left:5px;bottom:5px;border-width:0 0 3px 3px; }
.R-container .R-cropper.circle .R-corner-lt{ left:18%;top:18%;border-width:3px 0 0 3px;border-radius:10px 0 0 0; }
.R-container .R-cropper.circle .R-corner-rt{ right:18%;top:18%;border-width:3px 3px 0 0;border-radius:0 10px 0 0; }
.R-container .R-cropper.circle .R-corner-rb{ right:18%;bottom:18%;border-width:0 3px 3px 0;border-radius:0 0 10px 0; }
.R-container .R-cropper.circle .R-corner-lb{ left:18%;bottom:18%;border-width:0 0 3px 3px;border-radius:0 0 0 10px; }
.R-corner-lt:hover
.R-corner-lt:active{ border-width:3px 0 0 3px; }
.R-corner-rt:hover,
.R-corner-rt:active{ border-width:3px 3px 0 0; }
.R-corner-rb:hover,
.R-corner-rb:active{ border-width:0 3px 3px 0; }
.R-corner-lb:hover,
.R-corner-lb:active{ border-width:0 0 3px 3px; }
.R-corner-lt:hover,
.R-corner-lt:active,
.R-corner-rt:hover,
.R-corner-rt:active,
.R-corner-rb:hover,
.R-corner-rb:active,
.R-corner-lb:hover,
.R-corner-lb:active{ width:25px;height:25px; }
/**---------------------------------------------------------------------------------------------------------**/
.R-side-left, .R-side-top, .R-side-right, .R-side-bottom{
z-index:4;
width:15px;height:15px;
border:2px solid rgba(255, 255, 255, .9);
background:rgb(220, 220, 220);
border-radius:50%;
transition:300ms;
cursor: grab;
}
.R-side-left{ left:-10px;top:47%; }
.R-side-top{ left:46.5%;top:-10px; }
.R-side-right{ right:-10px;top:47%; }
.R-side-bottom{ left:46.5%;bottom:-10px; }
.R-side-left:hover,
.R-side-left:active,
.R-side-top:hover,
.R-side-top:active,
.R-side-right:hover,
.R-side-right:active,
.R-side-bottom:hover,
.R-side-bottom:active{ width:20px;height:20px;box-shadow:0 0 0 10px rgba(230, 230, 230, .3) }
.R-side-left:hover{ left:-13px;top:46.5%; }
.R-side-top:hover{ left:46%;top:-13px; }
.R-side-right:hover{ right:-13px;top:46.5%; }
.R-side-bottom:hover{ left:46%;bottom:-13px; }
.R-corner-lt:active,
.R-corner-rt:active,
.R-corner-rb:active,
.R-corner-lb:active,
.R-side-left:active,
.R-side-top:active,
.R-side-right:active,
.R-side-bottom:active { cursor: grabbing; }
/**---------------------------------------------------------------------------------------------------------**/
@media (max-width: 767px){
}
@media (min-width: 768px) and (max-width: 991px){
}
@media (min-width: 992px) and (max-width: 1199px){
}
@media (min-width: 1200px){
}