-
Notifications
You must be signed in to change notification settings - Fork 10
/
jquery.drag-n-crop.css
110 lines (94 loc) · 2.4 KB
/
jquery.drag-n-crop.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
/*
DEFAULT CLASSES
*/
.dragncrop {
position: relative;
overflow: hidden;
}
.dragncrop img {
display: block;
}
/* TODO: cross-browser cursors */
.ui-draggable,
.dragncrop-overlay {
cursor:grab;
cursor:-moz-grab;
cursor:-webkit-grab;
}
.ui-draggable-dragging {
cursor:grabbing;
cursor:-moz-grabbing;
cursor:-webkit-grabbing;
}
.dragncrop-horizontal {
max-width: none;
height: 100%;
}
.dragncrop-vertical {
width: 100%;
max-height: none;
}
.dragncrop-containment {
position: absolute;
}
/*
OPTIONAL CLASSES
*/
/* Overlow */
.dragncrop-dragging.dragncrop-overflow {
overflow: visible;
}
/* Overlay */
.dragncrop-overlay {
position: absolute;
opacity: 0.5;
top: 0;
left: 0;
bottom: 0;
right: 0;
border-style: solid;
border-color: black;
border-width: 0;
}
.dragncrop-dragging .dragncrop-overlay {
z-index: 1;
}
/* Instruction */
.dragncrop-instruction {
position: absolute;
top: 40%;
opacity: 0.7;
background: black;
color: #DDD;
text-align: center;
border-radius: 6px;
line-height: 1;
box-sizing: border-box;
font-family: sans-serif;
z-index: 1;
font-size: 0.875em;
right: 15%;
left: 15%;
padding: 10px 12px;
}
.dragncrop-instruction-text {
color: #DDD;
text-align: center;
line-height: 1;
font-family: sans-serif;
font-size: 0.875em;
background-repeat: no-repeat;
background-position: 0 50%;
display: block;
padding-left: 20px
}
.dragncrop-horizontal + .dragncrop-instruction .dragncrop-instruction-text {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAqklEQVQ4T2NkoDJgpLJ5DKMGUh6i8DD8//+/ANC4XCCezMjI+IEYo7HpARsIldgNZJoAsSPQwANEGugAVLcfiM8BsTPIIYxohoHMWQDED4gxEKhGAYgToGohhgINBLnMhUgDCCnbCzLwFFCVKSGVRMrvg3l5D1CDMVTTQhK9HA/Vdx5IOyFHCsxQciIFYhgoUmBegUZOHpA/icRkg6JnNC8TmTjwKBv8YQgAitFBotB3lzcAAAAASUVORK5CYII=');
}
.dragncrop-vertical + .dragncrop-instruction .dragncrop-instruction-text {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAv0lEQVQ4T2NkQAL////vAXKDgDiQkZHxIrIcsWxGmEKgYXOA7GQo/z2QdiTHULCBaIbB7CDLUEagYQZAE84CMRMWb+0FutKFWO+C1MFcaAdkGwFxP1TzOSBdDMT3gQY+JNlAqLcdgPR+qGaSXQazFDlSRg0kLXZHwxCc/QZxsgG6DpT1DIF4AjS2QHkblPUekJz1oIUDKO/Ccw1S3iU5C+Irvj4ADXYgtUzEVcCSZRi8+IJ5EVoFgEptkl0GMwMA7BJsFXeMXW4AAAAASUVORK5CYII=');
}
.dragncrop:hover .dragncrop-instruction-autohide,
.dragncrop-dragging .dragncrop-instruction-autohide {
display: none;
}