jquery-minicolors-rails 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/README.md +15 -1
- data/app/inputs/minicolors_input.rb +1 -1
- data/lib/jquery-minicolors-rails/version.rb +1 -1
- data/vendor/assets/images/jquery-minicolors/jquery.minicolors.png +0 -0
- data/vendor/assets/javascripts/jquery-minicolors-simple_form.js +6 -0
- data/vendor/assets/javascripts/jquery-minicolors.js +851 -561
- data/vendor/assets/stylesheets/jquery-minicolors.css.erb +277 -64
- metadata +7 -23
- data/vendor/assets/images/jquery-minicolors/circle.gif +0 -0
- data/vendor/assets/images/jquery-minicolors/gradient.png +0 -0
- data/vendor/assets/images/jquery-minicolors/line.gif +0 -0
- data/vendor/assets/images/jquery-minicolors/rainbow.png +0 -0
- data/vendor/assets/images/jquery-minicolors/trigger.png +0 -0
- data/vendor/assets/javascripts/jquery-minicolors-simple_form.js.coffee +0 -2
@@ -1,65 +1,278 @@
|
|
1
|
-
.
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
vertical-align: middle;
|
6
|
-
margin: 0 .25em;
|
7
|
-
display: inline-block;
|
8
|
-
outline: none;
|
9
|
-
}
|
10
|
-
|
11
|
-
.miniColors-selector {
|
12
|
-
position: absolute;
|
13
|
-
width: 175px;
|
14
|
-
height: 150px;
|
15
|
-
background: #FFF;
|
16
|
-
border: solid 1px #BBB;
|
17
|
-
-moz-box-shadow: 0 0 6px rgba(0, 0, 0, .25);
|
18
|
-
-webkit-box-shadow: 0 0 6px rgba(0, 0, 0, .25);
|
19
|
-
box-shadow: 0 0 6px rgba(0, 0, 0, .25);
|
20
|
-
-moz-border-radius: 5px;
|
21
|
-
-webkit-border-radius: 5px;
|
22
|
-
border-radius: 5px;
|
23
|
-
padding: 5px;
|
24
|
-
z-index: 999999;
|
25
|
-
}
|
26
|
-
|
27
|
-
.miniColors-selector.black {
|
28
|
-
background: #000;
|
29
|
-
border-color: #000;
|
30
|
-
}
|
31
|
-
|
32
|
-
.miniColors-colors {
|
33
|
-
position: absolute;
|
34
|
-
top: 5px;
|
35
|
-
left: 5px;
|
36
|
-
width: 150px;
|
37
|
-
height: 150px;
|
38
|
-
background: url(<%= image_path('jquery-minicolors/gradient.png') %>) center no-repeat;
|
39
|
-
cursor: crosshair;
|
40
|
-
}
|
41
|
-
|
42
|
-
.miniColors-hues {
|
43
|
-
position: absolute;
|
44
|
-
top: 5px;
|
45
|
-
left: 160px;
|
46
|
-
width: 20px;
|
47
|
-
height: 150px;
|
48
|
-
background: url(<%= image_path('jquery-minicolors/rainbow.png') %>) center no-repeat;
|
49
|
-
cursor: crosshair;
|
50
|
-
}
|
51
|
-
|
52
|
-
.miniColors-colorPicker {
|
53
|
-
position: absolute;
|
54
|
-
width: 11px;
|
55
|
-
height: 11px;
|
56
|
-
background: url(<%= image_path('jquery-minicolors/circle.gif') %>) center no-repeat;
|
57
|
-
}
|
58
|
-
|
59
|
-
.miniColors-huePicker {
|
60
|
-
position: absolute;
|
61
|
-
left: -3px;
|
62
|
-
width: 26px;
|
63
|
-
height: 3px;
|
64
|
-
background: url(<%= image_path('jquery-minicolors/line.gif') %>) center no-repeat;
|
1
|
+
.minicolors {
|
2
|
+
position: relative;
|
3
|
+
display: inline-block;
|
4
|
+
z-index: 1;
|
65
5
|
}
|
6
|
+
|
7
|
+
.minicolors-focus {
|
8
|
+
z-index: 2;
|
9
|
+
}
|
10
|
+
|
11
|
+
.minicolors.minicolors-theme-default .minicolors-input {
|
12
|
+
margin: 0px;
|
13
|
+
margin-right: 3px;
|
14
|
+
border: solid 1px #CCC;
|
15
|
+
font: 14px sans-serif;
|
16
|
+
width: 65px;
|
17
|
+
height: 16px;
|
18
|
+
border-radius: 0;
|
19
|
+
box-shadow: inset 0 2px 4px rgba(0, 0, 0, .04);
|
20
|
+
padding: 2px;
|
21
|
+
margin-right: -1px;
|
22
|
+
}
|
23
|
+
|
24
|
+
.minicolors-theme-default.minicolors .minicolors-input {
|
25
|
+
vertical-align: middle;
|
26
|
+
outline: none;
|
27
|
+
}
|
28
|
+
|
29
|
+
.minicolors-theme-default.minicolors-swatch-left .minicolors-input {
|
30
|
+
margin-left: -1px;
|
31
|
+
margin-right: auto;
|
32
|
+
}
|
33
|
+
|
34
|
+
.minicolors-theme-default.minicolors-focus .minicolors-input,
|
35
|
+
.minicolors-theme-default.minicolors-focus .minicolors-swatch {
|
36
|
+
border-color: #999;
|
37
|
+
}
|
38
|
+
|
39
|
+
.minicolors-hidden {
|
40
|
+
position: absolute;
|
41
|
+
left: -9999em;
|
42
|
+
}
|
43
|
+
|
44
|
+
.minicolors-swatch {
|
45
|
+
position: relative;
|
46
|
+
width: 20px;
|
47
|
+
height: 20px;
|
48
|
+
text-align: left;
|
49
|
+
background: url(<%= image_path('jquery-minicolors/jquery.minicolors.png') %>) -80px 0;
|
50
|
+
border: solid 1px #CCC;
|
51
|
+
vertical-align: middle;
|
52
|
+
display: inline-block;
|
53
|
+
}
|
54
|
+
|
55
|
+
.minicolors-swatch SPAN {
|
56
|
+
position: absolute;
|
57
|
+
width: 100%;
|
58
|
+
height: 100%;
|
59
|
+
background: none;
|
60
|
+
box-shadow: inset 0 9px 0 rgba(255, 255, 255, .1);
|
61
|
+
display: inline-block;
|
62
|
+
}
|
63
|
+
|
64
|
+
/* Panel */
|
65
|
+
.minicolors-panel {
|
66
|
+
position: absolute;
|
67
|
+
top: 26px;
|
68
|
+
left: 0;
|
69
|
+
width: 173px;
|
70
|
+
height: 152px;
|
71
|
+
background: white;
|
72
|
+
border: solid 1px #CCC;
|
73
|
+
box-shadow: 0 0 20px rgba(0, 0, 0, .2);
|
74
|
+
display: none;
|
75
|
+
}
|
76
|
+
|
77
|
+
.minicolors-position-top .minicolors-panel {
|
78
|
+
top: -156px;
|
79
|
+
}
|
80
|
+
|
81
|
+
.minicolors-position-left .minicolors-panel {
|
82
|
+
left: -83px;
|
83
|
+
}
|
84
|
+
|
85
|
+
.minicolors-position-left.minicolors-with-opacity .minicolors-panel {
|
86
|
+
left: -104px;
|
87
|
+
}
|
88
|
+
|
89
|
+
.minicolors-with-opacity .minicolors-panel {
|
90
|
+
width: 194px;
|
91
|
+
}
|
92
|
+
|
93
|
+
.minicolors .minicolors-grid {
|
94
|
+
position: absolute;
|
95
|
+
top: 1px;
|
96
|
+
left: 1px;
|
97
|
+
width: 150px;
|
98
|
+
height: 150px;
|
99
|
+
background: url(<%= image_path('jquery-minicolors/jquery.minicolors.png') %>) -120px 0;
|
100
|
+
cursor: crosshair;
|
101
|
+
}
|
102
|
+
|
103
|
+
.minicolors .minicolors-grid-inner {
|
104
|
+
position: absolute;
|
105
|
+
top: 0;
|
106
|
+
left: 0;
|
107
|
+
width: 150px;
|
108
|
+
height: 150px;
|
109
|
+
background: none;
|
110
|
+
}
|
111
|
+
|
112
|
+
.minicolors-slider-saturation .minicolors-grid {
|
113
|
+
background-position: -420px 0;
|
114
|
+
}
|
115
|
+
|
116
|
+
.minicolors-slider-saturation .minicolors-grid-inner {
|
117
|
+
background: url(<%= image_path('jquery-minicolors/jquery.minicolors.png') %>) -270px 0;
|
118
|
+
}
|
119
|
+
|
120
|
+
.minicolors-slider-brightness .minicolors-grid {
|
121
|
+
background-position: -570px 0;
|
122
|
+
}
|
123
|
+
|
124
|
+
.minicolors-slider-brightness .minicolors-grid-inner {
|
125
|
+
background: black;
|
126
|
+
}
|
127
|
+
|
128
|
+
.minicolors-slider-wheel .minicolors-grid {
|
129
|
+
background-position: -720px 0;
|
130
|
+
}
|
131
|
+
|
132
|
+
.minicolors-slider,
|
133
|
+
.minicolors-opacity-slider {
|
134
|
+
position: absolute;
|
135
|
+
top: 1px;
|
136
|
+
left: 152px;
|
137
|
+
width: 20px;
|
138
|
+
height: 150px;
|
139
|
+
background: white url(<%= image_path('jquery-minicolors/jquery.minicolors.png') %>) 0 0;
|
140
|
+
cursor: crosshair;
|
141
|
+
}
|
142
|
+
|
143
|
+
.minicolors-slider-saturation .minicolors-slider {
|
144
|
+
background-position: -60px 0;
|
145
|
+
}
|
146
|
+
|
147
|
+
.minicolors-slider-brightness .minicolors-slider {
|
148
|
+
background-position: -20px 0;
|
149
|
+
}
|
150
|
+
|
151
|
+
.minicolors-slider-wheel .minicolors-slider {
|
152
|
+
background-position: -20px 0;
|
153
|
+
}
|
154
|
+
|
155
|
+
.minicolors-opacity-slider {
|
156
|
+
left: 173px;
|
157
|
+
background-position: -40px 0;
|
158
|
+
display: none;
|
159
|
+
}
|
160
|
+
|
161
|
+
.minicolors-with-opacity .minicolors-opacity-slider {
|
162
|
+
display: block;
|
163
|
+
}
|
164
|
+
|
165
|
+
/* Pickers */
|
166
|
+
.minicolors-grid .minicolors-picker {
|
167
|
+
position: absolute;
|
168
|
+
top: 70px;
|
169
|
+
left: 70px;
|
170
|
+
width: 10px;
|
171
|
+
height: 10px;
|
172
|
+
border: solid 1px black;
|
173
|
+
border-radius: 10px;
|
174
|
+
margin-top: -6px;
|
175
|
+
margin-left: -6px;
|
176
|
+
background: none;
|
177
|
+
}
|
178
|
+
|
179
|
+
.minicolors-grid .minicolors-picker SPAN {
|
180
|
+
position: absolute;
|
181
|
+
top: 0;
|
182
|
+
left: 0;
|
183
|
+
width: 6px;
|
184
|
+
height: 6px;
|
185
|
+
border-radius: 6px;
|
186
|
+
border: solid 2px white;
|
187
|
+
}
|
188
|
+
|
189
|
+
.minicolors-picker {
|
190
|
+
position: absolute;
|
191
|
+
top: 0;
|
192
|
+
left: 0;
|
193
|
+
width: 18px;
|
194
|
+
height: 2px;
|
195
|
+
background: white;
|
196
|
+
border: solid 1px black;
|
197
|
+
margin-top: -2px;
|
198
|
+
}
|
199
|
+
|
200
|
+
/* Inline controls */
|
201
|
+
.minicolors-inline .minicolors-input,
|
202
|
+
.minicolors-inline .minicolors-swatch {
|
203
|
+
display: none;
|
204
|
+
}
|
205
|
+
|
206
|
+
.minicolors-inline .minicolors-panel {
|
207
|
+
position: relative;
|
208
|
+
top: auto;
|
209
|
+
left: auto;
|
210
|
+
display: inline-block;
|
211
|
+
}
|
212
|
+
|
213
|
+
|
214
|
+
/*
|
215
|
+
* Bootstrap Theme (theme: 'bootstrap')
|
216
|
+
*
|
217
|
+
*/
|
218
|
+
|
219
|
+
/* Input styles */
|
220
|
+
.minicolors-theme-bootstrap .minicolors-input {
|
221
|
+
padding: 4px 6px;
|
222
|
+
padding-left: 30px;
|
223
|
+
background-color: white;
|
224
|
+
border: 1px solid #CCC;
|
225
|
+
border-radius: 3px;
|
226
|
+
color: #555;
|
227
|
+
font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
|
228
|
+
font-size: 14px;
|
229
|
+
height: 19px;
|
230
|
+
margin: 0px;
|
231
|
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
232
|
+
}
|
233
|
+
|
234
|
+
/* When the input has focus */
|
235
|
+
.minicolors-theme-bootstrap.minicolors-focus .minicolors-input {
|
236
|
+
border-color: #6fb8f1;
|
237
|
+
box-shadow: 0 0 10px #6fb8f1;
|
238
|
+
outline: none;
|
239
|
+
}
|
240
|
+
|
241
|
+
/* Swatch styles */
|
242
|
+
.minicolors-theme-bootstrap .minicolors-swatch {
|
243
|
+
position: absolute;
|
244
|
+
left: 4px;
|
245
|
+
top: 4px;
|
246
|
+
z-index: 2;
|
247
|
+
}
|
248
|
+
|
249
|
+
/* Handle swatch position (left = default / right) */
|
250
|
+
.minicolors-theme-bootstrap.minicolors-swatch-position-right .minicolors-input {
|
251
|
+
padding-left: 6px;
|
252
|
+
padding-right: 30px;
|
253
|
+
}
|
254
|
+
|
255
|
+
.minicolors-theme-bootstrap.minicolors-swatch-position-right .minicolors-swatch {
|
256
|
+
left: auto;
|
257
|
+
right: 4px;
|
258
|
+
}
|
259
|
+
|
260
|
+
/* Panel styles */
|
261
|
+
.minicolors-theme-bootstrap .minicolors-panel {
|
262
|
+
top: 28px;
|
263
|
+
z-index: 3;
|
264
|
+
}
|
265
|
+
|
266
|
+
/* Handle panel positions (top / left) */
|
267
|
+
.minicolors-theme-bootstrap.minicolors-position-top .minicolors-panel {
|
268
|
+
top: -154px;
|
269
|
+
}
|
270
|
+
|
271
|
+
.minicolors-theme-bootstrap.minicolors-position-left .minicolors-panel {
|
272
|
+
left: -63px;
|
273
|
+
}
|
274
|
+
|
275
|
+
/* Don't forget to adjust the left position in case the opacity slider is visible! */
|
276
|
+
.minicolors-theme-bootstrap.minicolors-position-left.minicolors-with-opacity .minicolors-panel {
|
277
|
+
left: -84px;
|
278
|
+
}
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery-minicolors-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Kostiantyn Kahanskyi
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-04-11 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rails
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,7 +27,6 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: jquery-rails
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ! '>='
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ! '>='
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -54,44 +49,33 @@ files:
|
|
54
49
|
- lib/jquery-minicolors-rails/engine.rb
|
55
50
|
- lib/jquery-minicolors-rails/version.rb
|
56
51
|
- lib/jquery-minicolors-rails.rb
|
57
|
-
- vendor/assets/images/jquery-minicolors/
|
58
|
-
- vendor/assets/
|
59
|
-
- vendor/assets/images/jquery-minicolors/line.gif
|
60
|
-
- vendor/assets/images/jquery-minicolors/rainbow.png
|
61
|
-
- vendor/assets/images/jquery-minicolors/trigger.png
|
62
|
-
- vendor/assets/javascripts/jquery-minicolors-simple_form.js.coffee
|
52
|
+
- vendor/assets/images/jquery-minicolors/jquery.minicolors.png
|
53
|
+
- vendor/assets/javascripts/jquery-minicolors-simple_form.js
|
63
54
|
- vendor/assets/javascripts/jquery-minicolors.js
|
64
55
|
- vendor/assets/stylesheets/jquery-minicolors.css.erb
|
65
56
|
- Rakefile
|
66
57
|
- README.md
|
67
58
|
homepage: https://github.com/kostia/jquery-minicolors-rails
|
68
59
|
licenses: []
|
60
|
+
metadata: {}
|
69
61
|
post_install_message:
|
70
62
|
rdoc_options: []
|
71
63
|
require_paths:
|
72
64
|
- lib
|
73
65
|
required_ruby_version: !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
66
|
requirements:
|
76
67
|
- - ! '>='
|
77
68
|
- !ruby/object:Gem::Version
|
78
69
|
version: '0'
|
79
|
-
segments:
|
80
|
-
- 0
|
81
|
-
hash: 4555260701166408700
|
82
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
84
71
|
requirements:
|
85
72
|
- - ! '>='
|
86
73
|
- !ruby/object:Gem::Version
|
87
74
|
version: '0'
|
88
|
-
segments:
|
89
|
-
- 0
|
90
|
-
hash: 4555260701166408700
|
91
75
|
requirements: []
|
92
76
|
rubyforge_project:
|
93
|
-
rubygems_version:
|
77
|
+
rubygems_version: 2.0.3
|
94
78
|
signing_key:
|
95
|
-
specification_version:
|
79
|
+
specification_version: 4
|
96
80
|
summary: Colorpicker-plugin for jQuery, integrated in Rails asset pipeline
|
97
81
|
test_files: []
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|