croppie_rails 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -5
- data/lib/croppie_rails/version.rb +1 -1
- data/vendor/assets/javascripts/croppie.js +1148 -1038
- data/vendor/assets/stylesheets/croppie.css +51 -46
- metadata +2 -2
@@ -1,53 +1,53 @@
|
|
1
1
|
.croppie-container {
|
2
|
-
|
2
|
+
padding: 30px;
|
3
3
|
}
|
4
4
|
.croppie-container .cr-image {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
z-index: -1;
|
6
|
+
position: absolute;
|
7
|
+
top: 0;
|
8
|
+
left: 0;
|
9
|
+
transform-origin: 0 0;
|
10
10
|
max-width: none;
|
11
11
|
}
|
12
12
|
|
13
13
|
.croppie-container .cr-boundary {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
position: relative;
|
15
|
+
overflow: hidden;
|
16
|
+
margin: 0 auto;
|
17
|
+
z-index: 1;
|
18
18
|
}
|
19
19
|
|
20
20
|
.croppie-container .cr-viewport {
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
21
|
+
position: absolute;
|
22
|
+
border: 2px solid #fff;
|
23
|
+
margin: auto;
|
24
|
+
top: 0;
|
25
|
+
bottom: 0;
|
26
|
+
right: 0;
|
27
|
+
left: 0;
|
28
|
+
box-shadow:0 0 0 899px rgba(0, 0, 0, 0.5);
|
29
|
+
z-index: 0;
|
30
30
|
}
|
31
31
|
.croppie-container .cr-vp-circle {
|
32
|
-
|
32
|
+
border-radius: 50%;
|
33
33
|
}
|
34
34
|
.croppie-container .cr-overlay {
|
35
|
-
|
36
|
-
|
37
|
-
|
35
|
+
z-index: 1;
|
36
|
+
position: absolute;
|
37
|
+
cursor: move;
|
38
38
|
}
|
39
39
|
.croppie-container .cr-slider-wrap {
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
40
|
+
width: 75%;
|
41
|
+
margin: 0 auto;
|
42
|
+
margin-top: 25px;
|
43
|
+
text-align: center;
|
44
44
|
}
|
45
45
|
.croppie-result {
|
46
|
-
|
47
|
-
|
46
|
+
position: relative;
|
47
|
+
overflow: hidden;
|
48
48
|
}
|
49
49
|
.croppie-result img {
|
50
|
-
|
50
|
+
position: absolute;
|
51
51
|
}
|
52
52
|
|
53
53
|
/*************************************/
|
@@ -140,23 +140,28 @@
|
|
140
140
|
}
|
141
141
|
/*******************************************/
|
142
142
|
|
143
|
-
|
144
|
-
/*
|
145
|
-
|
146
|
-
.
|
147
|
-
background: white;
|
148
|
-
width: 1px;
|
149
|
-
height: 1px;
|
150
|
-
content: '';
|
143
|
+
/***********************************/
|
144
|
+
/* Rotation Tools */
|
145
|
+
/***********************************/
|
146
|
+
.cr-rotate-controls {
|
151
147
|
position: absolute;
|
148
|
+
bottom: 5px;
|
149
|
+
left: 5px;
|
150
|
+
z-index: 1;
|
151
|
+
}
|
152
|
+
.cr-rotate-controls button {
|
153
|
+
border: 0;
|
154
|
+
background: none;
|
155
|
+
}
|
156
|
+
.cr-rotate-controls i:before {
|
157
|
+
display: inline-block;
|
158
|
+
font-style: normal;
|
159
|
+
font-weight: 900;
|
160
|
+
font-size: 22px;
|
152
161
|
}
|
153
|
-
.
|
154
|
-
|
155
|
-
height: 100%;
|
156
|
-
left: 50%;
|
162
|
+
.cr-rotate-l i:before {
|
163
|
+
content: '↺';
|
157
164
|
}
|
158
|
-
.
|
159
|
-
|
160
|
-
left: 0;
|
161
|
-
width: 100%;
|
165
|
+
.cr-rotate-r i:before {
|
166
|
+
content: '↻';
|
162
167
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: croppie_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luiz Picolo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|