cropper-rails 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.travis.yml +4 -0
- data/Gemfile +4 -0
- data/README.md +44 -0
- data/Rakefile +1 -0
- data/cropper-rails.gemspec +25 -0
- data/lib/cropper/cropper-rails.rb +1 -0
- data/lib/cropper/rails.rb +7 -0
- data/lib/cropper/rails/engine.rb +6 -0
- data/lib/cropper/rails/version.rb +5 -0
- data/vendor/assets/javascripts/.keep +0 -0
- data/vendor/assets/javascripts/cropper.js +2928 -0
- data/vendor/assets/stylesheets/.keep +0 -0
- data/vendor/assets/stylesheets/cropper.css +313 -0
- metadata +99 -0
File without changes
|
@@ -0,0 +1,313 @@
|
|
1
|
+
/*!
|
2
|
+
* Cropper v2.2.1
|
3
|
+
* https://github.com/fengyuanchen/cropper
|
4
|
+
*
|
5
|
+
* Copyright (c) 2014-2015 Fengyuan Chen and contributors
|
6
|
+
* Released under the MIT license
|
7
|
+
*
|
8
|
+
* Date: 2015-12-12T07:24:22.254Z
|
9
|
+
*/
|
10
|
+
.cropper-container {
|
11
|
+
position: relative;
|
12
|
+
font-size: 0;
|
13
|
+
line-height: 0;
|
14
|
+
direction: ltr !important;
|
15
|
+
-ms-touch-action: none;
|
16
|
+
touch-action: none;
|
17
|
+
-webkit-user-select: none;
|
18
|
+
-moz-user-select: none;
|
19
|
+
-ms-user-select: none;
|
20
|
+
user-select: none;
|
21
|
+
-webkit-tap-highlight-color: transparent;
|
22
|
+
-webkit-touch-callout: none;
|
23
|
+
}
|
24
|
+
|
25
|
+
.cropper-container img {
|
26
|
+
display: block;
|
27
|
+
image-orientation: 0deg !important;
|
28
|
+
min-width: 0 !important;
|
29
|
+
min-height: 0 !important;
|
30
|
+
max-width: none !important;
|
31
|
+
max-height: none !important;
|
32
|
+
width: 100%;
|
33
|
+
height: 100%;
|
34
|
+
}
|
35
|
+
|
36
|
+
.cropper-wrap-box,
|
37
|
+
.cropper-canvas,
|
38
|
+
.cropper-drag-box,
|
39
|
+
.cropper-crop-box,
|
40
|
+
.cropper-modal {
|
41
|
+
position: absolute;
|
42
|
+
top: 0;
|
43
|
+
right: 0;
|
44
|
+
bottom: 0;
|
45
|
+
left: 0;
|
46
|
+
}
|
47
|
+
|
48
|
+
.cropper-wrap-box {
|
49
|
+
overflow: hidden;
|
50
|
+
}
|
51
|
+
|
52
|
+
.cropper-drag-box {
|
53
|
+
background-color: #fff;
|
54
|
+
opacity: 0;
|
55
|
+
filter: alpha(opacity=0);
|
56
|
+
}
|
57
|
+
|
58
|
+
.cropper-modal {
|
59
|
+
background-color: #000;
|
60
|
+
opacity: 0.5;
|
61
|
+
filter: alpha(opacity=50);
|
62
|
+
}
|
63
|
+
|
64
|
+
.cropper-view-box {
|
65
|
+
display: block;
|
66
|
+
overflow: hidden;
|
67
|
+
outline: 1px solid #39f;
|
68
|
+
outline-color: rgba(51, 153, 255, 0.75);
|
69
|
+
width: 100%;
|
70
|
+
height: 100%;
|
71
|
+
}
|
72
|
+
|
73
|
+
.cropper-dashed {
|
74
|
+
position: absolute;
|
75
|
+
display: block;
|
76
|
+
border: 0 dashed #eee;
|
77
|
+
opacity: 0.5;
|
78
|
+
filter: alpha(opacity=50);
|
79
|
+
}
|
80
|
+
|
81
|
+
.cropper-dashed.dashed-h {
|
82
|
+
top: 33.33333%;
|
83
|
+
left: 0;
|
84
|
+
border-top-width: 1px;
|
85
|
+
border-bottom-width: 1px;
|
86
|
+
width: 100%;
|
87
|
+
height: 33.33333%;
|
88
|
+
}
|
89
|
+
|
90
|
+
.cropper-dashed.dashed-v {
|
91
|
+
top: 0;
|
92
|
+
left: 33.33333%;
|
93
|
+
border-right-width: 1px;
|
94
|
+
border-left-width: 1px;
|
95
|
+
width: 33.33333%;
|
96
|
+
height: 100%;
|
97
|
+
}
|
98
|
+
|
99
|
+
.cropper-center {
|
100
|
+
position: absolute;
|
101
|
+
top: 50%;
|
102
|
+
left: 50%;
|
103
|
+
display: block;
|
104
|
+
width: 0;
|
105
|
+
height: 0;
|
106
|
+
opacity: 0.75;
|
107
|
+
filter: alpha(opacity=75);
|
108
|
+
}
|
109
|
+
|
110
|
+
.cropper-center:before, .cropper-center:after {
|
111
|
+
position: absolute;
|
112
|
+
display: block;
|
113
|
+
background-color: #eee;
|
114
|
+
content: " ";
|
115
|
+
}
|
116
|
+
|
117
|
+
.cropper-center:before {
|
118
|
+
top: 0;
|
119
|
+
left: -3px;
|
120
|
+
width: 7px;
|
121
|
+
height: 1px;
|
122
|
+
}
|
123
|
+
|
124
|
+
.cropper-center:after {
|
125
|
+
top: -3px;
|
126
|
+
left: 0;
|
127
|
+
width: 1px;
|
128
|
+
height: 7px;
|
129
|
+
}
|
130
|
+
|
131
|
+
.cropper-face,
|
132
|
+
.cropper-line,
|
133
|
+
.cropper-point {
|
134
|
+
position: absolute;
|
135
|
+
display: block;
|
136
|
+
width: 100%;
|
137
|
+
height: 100%;
|
138
|
+
opacity: 0.1;
|
139
|
+
filter: alpha(opacity=10);
|
140
|
+
}
|
141
|
+
|
142
|
+
.cropper-face {
|
143
|
+
top: 0;
|
144
|
+
left: 0;
|
145
|
+
background-color: #fff;
|
146
|
+
}
|
147
|
+
|
148
|
+
.cropper-line {
|
149
|
+
background-color: #39f;
|
150
|
+
}
|
151
|
+
|
152
|
+
.cropper-line.line-e {
|
153
|
+
top: 0;
|
154
|
+
right: -3px;
|
155
|
+
width: 5px;
|
156
|
+
cursor: e-resize;
|
157
|
+
}
|
158
|
+
|
159
|
+
.cropper-line.line-n {
|
160
|
+
top: -3px;
|
161
|
+
left: 0;
|
162
|
+
height: 5px;
|
163
|
+
cursor: n-resize;
|
164
|
+
}
|
165
|
+
|
166
|
+
.cropper-line.line-w {
|
167
|
+
top: 0;
|
168
|
+
left: -3px;
|
169
|
+
width: 5px;
|
170
|
+
cursor: w-resize;
|
171
|
+
}
|
172
|
+
|
173
|
+
.cropper-line.line-s {
|
174
|
+
bottom: -3px;
|
175
|
+
left: 0;
|
176
|
+
height: 5px;
|
177
|
+
cursor: s-resize;
|
178
|
+
}
|
179
|
+
|
180
|
+
.cropper-point {
|
181
|
+
background-color: #39f;
|
182
|
+
width: 5px;
|
183
|
+
height: 5px;
|
184
|
+
opacity: 0.75;
|
185
|
+
filter: alpha(opacity=75);
|
186
|
+
}
|
187
|
+
|
188
|
+
.cropper-point.point-e {
|
189
|
+
top: 50%;
|
190
|
+
right: -3px;
|
191
|
+
margin-top: -3px;
|
192
|
+
cursor: e-resize;
|
193
|
+
}
|
194
|
+
|
195
|
+
.cropper-point.point-n {
|
196
|
+
top: -3px;
|
197
|
+
left: 50%;
|
198
|
+
margin-left: -3px;
|
199
|
+
cursor: n-resize;
|
200
|
+
}
|
201
|
+
|
202
|
+
.cropper-point.point-w {
|
203
|
+
top: 50%;
|
204
|
+
left: -3px;
|
205
|
+
margin-top: -3px;
|
206
|
+
cursor: w-resize;
|
207
|
+
}
|
208
|
+
|
209
|
+
.cropper-point.point-s {
|
210
|
+
bottom: -3px;
|
211
|
+
left: 50%;
|
212
|
+
margin-left: -3px;
|
213
|
+
cursor: s-resize;
|
214
|
+
}
|
215
|
+
|
216
|
+
.cropper-point.point-ne {
|
217
|
+
top: -3px;
|
218
|
+
right: -3px;
|
219
|
+
cursor: ne-resize;
|
220
|
+
}
|
221
|
+
|
222
|
+
.cropper-point.point-nw {
|
223
|
+
top: -3px;
|
224
|
+
left: -3px;
|
225
|
+
cursor: nw-resize;
|
226
|
+
}
|
227
|
+
|
228
|
+
.cropper-point.point-sw {
|
229
|
+
bottom: -3px;
|
230
|
+
left: -3px;
|
231
|
+
cursor: sw-resize;
|
232
|
+
}
|
233
|
+
|
234
|
+
.cropper-point.point-se {
|
235
|
+
right: -3px;
|
236
|
+
bottom: -3px;
|
237
|
+
cursor: se-resize;
|
238
|
+
width: 20px;
|
239
|
+
height: 20px;
|
240
|
+
opacity: 1;
|
241
|
+
filter: alpha(opacity=100);
|
242
|
+
}
|
243
|
+
|
244
|
+
.cropper-point.point-se:before {
|
245
|
+
position: absolute;
|
246
|
+
right: -50%;
|
247
|
+
bottom: -50%;
|
248
|
+
display: block;
|
249
|
+
content: " ";
|
250
|
+
background-color: #39f;
|
251
|
+
width: 200%;
|
252
|
+
height: 200%;
|
253
|
+
opacity: 0;
|
254
|
+
filter: alpha(opacity=0);
|
255
|
+
}
|
256
|
+
|
257
|
+
@media (min-width: 768px) {
|
258
|
+
.cropper-point.point-se {
|
259
|
+
width: 15px;
|
260
|
+
height: 15px;
|
261
|
+
}
|
262
|
+
}
|
263
|
+
|
264
|
+
@media (min-width: 992px) {
|
265
|
+
.cropper-point.point-se {
|
266
|
+
width: 10px;
|
267
|
+
height: 10px;
|
268
|
+
}
|
269
|
+
}
|
270
|
+
|
271
|
+
@media (min-width: 1200px) {
|
272
|
+
.cropper-point.point-se {
|
273
|
+
width: 5px;
|
274
|
+
height: 5px;
|
275
|
+
opacity: 0.75;
|
276
|
+
filter: alpha(opacity=75);
|
277
|
+
}
|
278
|
+
}
|
279
|
+
|
280
|
+
.cropper-invisible {
|
281
|
+
opacity: 0;
|
282
|
+
filter: alpha(opacity=0);
|
283
|
+
}
|
284
|
+
|
285
|
+
.cropper-bg {
|
286
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC");
|
287
|
+
}
|
288
|
+
|
289
|
+
.cropper-hide {
|
290
|
+
position: absolute;
|
291
|
+
display: block;
|
292
|
+
width: 0;
|
293
|
+
height: 0;
|
294
|
+
}
|
295
|
+
|
296
|
+
.cropper-hidden {
|
297
|
+
display: none !important;
|
298
|
+
}
|
299
|
+
|
300
|
+
.cropper-move {
|
301
|
+
cursor: move;
|
302
|
+
}
|
303
|
+
|
304
|
+
.cropper-crop {
|
305
|
+
cursor: crosshair;
|
306
|
+
}
|
307
|
+
|
308
|
+
.cropper-disabled .cropper-drag-box,
|
309
|
+
.cropper-disabled .cropper-face,
|
310
|
+
.cropper-disabled .cropper-line,
|
311
|
+
.cropper-disabled .cropper-point {
|
312
|
+
cursor: not-allowed;
|
313
|
+
}
|
metadata
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cropper-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.2.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Cristian Bica
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-12-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: railties
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.1.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.1.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.10'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.10'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
description: This gem wraps fengyuanchen's cropper to be used inside Rails applications.
|
56
|
+
email:
|
57
|
+
- cristian.bica@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
63
|
+
- ".travis.yml"
|
64
|
+
- Gemfile
|
65
|
+
- README.md
|
66
|
+
- Rakefile
|
67
|
+
- cropper-rails.gemspec
|
68
|
+
- lib/cropper/cropper-rails.rb
|
69
|
+
- lib/cropper/rails.rb
|
70
|
+
- lib/cropper/rails/engine.rb
|
71
|
+
- lib/cropper/rails/version.rb
|
72
|
+
- vendor/assets/javascripts/.keep
|
73
|
+
- vendor/assets/javascripts/cropper.js
|
74
|
+
- vendor/assets/stylesheets/.keep
|
75
|
+
- vendor/assets/stylesheets/cropper.css
|
76
|
+
homepage: https://github.com/cristianbica/cropper-rails
|
77
|
+
licenses: []
|
78
|
+
metadata: {}
|
79
|
+
post_install_message:
|
80
|
+
rdoc_options: []
|
81
|
+
require_paths:
|
82
|
+
- lib
|
83
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - ">="
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '0'
|
93
|
+
requirements: []
|
94
|
+
rubyforge_project:
|
95
|
+
rubygems_version: 2.4.5.1
|
96
|
+
signing_key:
|
97
|
+
specification_version: 4
|
98
|
+
summary: Fengyuanchen's Cropper with Rails assets pipeline.
|
99
|
+
test_files: []
|