forked from andyshora/angular-image-crop
-
Notifications
You must be signed in to change notification settings - Fork 1
/
image-crop-styles.css
69 lines (68 loc) · 1.77 KB
/
image-crop-styles.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
/* Some of these styles you can override, things like colors,
* however some styles are required for the structure, and are critical to this module behaving properly!
*/
/* Core component styles */
.ng-image-crop {
text-align: center;
margin: 0 auto;
position: relative;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
}
/* Each of the 3 steps in the process are contained within sections */
.ng-image-crop > section {
background: #ccc;
}
/* The cropping button */
.ng-image-crop button {
margin-top: 10px;
}
/* The dashed cropping guideline */
.ng-image-crop .cropping-guide {
display: block;
background: rgba(255, 255, 255, .3);
border: 2px dashed white;
position: absolute;
pointer-events: none;
}
/* The circular themed cropping guideline */
.ng-image-crop--circle .cropping-guide {
border-radius: 50%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
-ms-border-radius: 50%;
-o-border-radius: 50%;
}
/* The canvas where the user positions the image via dragging and zooming */
.ng-image-crop .cropping-canvas {
background: rgba(255, 255, 255, .3);
margin: 0 auto;
cursor: move;
}
/* The overlayed draggable zoom handle in the corner of the module */
.ng-image-crop .zoom-handle {
display: block;
position: absolute;
bottom: 1px;
left: 1px;
background: rgba(255,255,255,0.7);
width: 80px;
height: 80px;
cursor: move;
border-radius: 200px 50px;
}
/* The text within the zoom handle */
.ng-image-crop .zoom-handle > span {
color: rgba(0, 0, 0, 0.5);
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
-o-transform: rotate(-45deg);
transform: rotate(-45deg);
display: block;
position: relative;
top: 32px;
}