spectrum-rails 1.2.0 → 1.8.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  /***
2
- Spectrum Colorpicker v1.2.0
2
+ Spectrum Colorpicker v1.8.1
3
3
  https://github.com/bgrins/spectrum
4
4
  Author: Brian Grinstead
5
5
  License: MIT
@@ -20,18 +20,26 @@ License: MIT
20
20
  position: relative;
21
21
  }
22
22
 
23
+ /* Fix for * { box-sizing: border-box; } */
24
+ .sp-container,
25
+ .sp-container * {
26
+ -webkit-box-sizing: content-box;
27
+ -moz-box-sizing: content-box;
28
+ box-sizing: content-box;
29
+ }
30
+
23
31
  /* http://ansciath.tumblr.com/post/7347495869/css-aspect-ratio */
24
32
  .sp-top {
25
- position:relative;
26
- width: 100%;
27
- display:inline-block;
33
+ position:relative;
34
+ width: 100%;
35
+ display:inline-block;
28
36
  }
29
37
  .sp-top-inner {
30
- position:absolute;
31
- top:0;
32
- left:0;
33
- bottom:0;
34
- right:0;
38
+ position:absolute;
39
+ top:0;
40
+ left:0;
41
+ bottom:0;
42
+ right:0;
35
43
  }
36
44
  .sp-color {
37
45
  position: absolute;
@@ -126,6 +134,9 @@ License: MIT
126
134
  .sp-container.sp-buttons-disabled .sp-button-container {
127
135
  display: none;
128
136
  }
137
+ .sp-container.sp-palette-buttons-disabled .sp-palette-button-container {
138
+ display: none;
139
+ }
129
140
  .sp-palette-only .sp-picker-container {
130
141
  display: none;
131
142
  }
@@ -166,6 +177,7 @@ License: MIT
166
177
  background: -o-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
167
178
  background: -webkit-gradient(linear, left top, left bottom, from(#ff0000), color-stop(0.17, #ffff00), color-stop(0.33, #00ff00), color-stop(0.5, #00ffff), color-stop(0.67, #0000ff), color-stop(0.83, #ff00ff), to(#ff0000));
168
179
  background: -webkit-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
180
+ background: linear-gradient(to bottom, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
169
181
  }
170
182
 
171
183
  /* IE filters do not support multiple color stops.
@@ -213,15 +225,15 @@ License: MIT
213
225
  .sp-fill { padding-top: 60%; }
214
226
  }
215
227
  .sp-dragger {
216
- border-radius: 5px;
217
- height: 5px;
218
- width: 5px;
219
- border: 1px solid #fff;
220
- background: #000;
221
- cursor: pointer;
222
- position:absolute;
223
- top:0;
224
- left: 0;
228
+ border-radius: 5px;
229
+ height: 5px;
230
+ width: 5px;
231
+ border: 1px solid #fff;
232
+ background: #000;
233
+ cursor: pointer;
234
+ position:absolute;
235
+ top:0;
236
+ left: 0;
225
237
  }
226
238
  .sp-slider {
227
239
  position: absolute;
@@ -247,20 +259,17 @@ See http://bgrins.github.io/spectrum/themes/ for instructions.
247
259
  border: solid 1px #f0c49B;
248
260
  padding: 0;
249
261
  }
250
- .sp-container, .sp-container button, .sp-container input, .sp-color, .sp-hue, .sp-clear
251
- {
262
+ .sp-container, .sp-container button, .sp-container input, .sp-color, .sp-hue, .sp-clear {
252
263
  font: normal 12px "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
253
264
  -webkit-box-sizing: border-box;
254
265
  -moz-box-sizing: border-box;
255
266
  -ms-box-sizing: border-box;
256
267
  box-sizing: border-box;
257
268
  }
258
- .sp-top
259
- {
269
+ .sp-top {
260
270
  margin-bottom: 3px;
261
271
  }
262
- .sp-color, .sp-hue, .sp-clear
263
- {
272
+ .sp-color, .sp-hue, .sp-clear {
264
273
  border: solid 1px #666;
265
274
  }
266
275
 
@@ -274,43 +283,43 @@ See http://bgrins.github.io/spectrum/themes/ for instructions.
274
283
  width: 100%;
275
284
  }
276
285
  .sp-input {
277
- font-size: 12px !important;
278
- border: 1px inset;
279
- padding: 4px 5px;
280
- margin: 0;
281
- width: 100%;
282
- background:transparent;
283
- border-radius: 3px;
284
- color: #222;
286
+ font-size: 12px !important;
287
+ border: 1px inset;
288
+ padding: 4px 5px;
289
+ margin: 0;
290
+ width: 100%;
291
+ background:transparent;
292
+ border-radius: 3px;
293
+ color: #222;
285
294
  }
286
295
  .sp-input:focus {
287
296
  border: 1px solid orange;
288
297
  }
289
- .sp-input.sp-validation-error
290
- {
298
+ .sp-input.sp-validation-error {
291
299
  border: 1px solid red;
292
300
  background: #fdd;
293
301
  }
294
- .sp-picker-container , .sp-palette-container
295
- {
302
+ .sp-picker-container , .sp-palette-container {
296
303
  float:left;
297
304
  position: relative;
298
305
  padding: 10px;
299
306
  padding-bottom: 300px;
300
307
  margin-bottom: -290px;
301
308
  }
302
- .sp-picker-container
303
- {
309
+ .sp-picker-container {
304
310
  width: 172px;
305
311
  border-left: solid 1px #fff;
306
312
  }
307
313
 
308
314
  /* Palettes */
309
- .sp-palette-container
310
- {
315
+ .sp-palette-container {
311
316
  border-right: solid 1px #ccc;
312
317
  }
313
318
 
319
+ .sp-palette-only .sp-palette-container {
320
+ border: 0;
321
+ }
322
+
314
323
  .sp-palette .sp-thumb-el {
315
324
  display: block;
316
325
  position:relative;
@@ -324,14 +333,12 @@ See http://bgrins.github.io/spectrum/themes/ for instructions.
324
333
  .sp-palette .sp-thumb-el:hover, .sp-palette .sp-thumb-el.sp-thumb-active {
325
334
  border-color: orange;
326
335
  }
327
- .sp-thumb-el
328
- {
336
+ .sp-thumb-el {
329
337
  position:relative;
330
338
  }
331
339
 
332
340
  /* Initial */
333
- .sp-initial
334
- {
341
+ .sp-initial {
335
342
  float: left;
336
343
  border: solid 1px #333;
337
344
  }
@@ -349,6 +356,7 @@ See http://bgrins.github.io/spectrum/themes/ for instructions.
349
356
  }
350
357
 
351
358
  /* Buttons */
359
+ .sp-palette-button-container,
352
360
  .sp-button-container {
353
361
  float: right;
354
362
  }
@@ -383,8 +391,7 @@ See http://bgrins.github.io/spectrum/themes/ for instructions.
383
391
  float:left;
384
392
  font-size:10px;
385
393
  }
386
- .sp-preview
387
- {
394
+ .sp-preview {
388
395
  position:relative;
389
396
  width:25px;
390
397
  height: 20px;
@@ -394,43 +401,40 @@ See http://bgrins.github.io/spectrum/themes/ for instructions.
394
401
  z-index: 0;
395
402
  }
396
403
 
397
- .sp-palette
398
- {
404
+ .sp-palette {
399
405
  *width: 220px;
400
406
  max-width: 220px;
401
407
  }
402
- .sp-palette .sp-thumb-el
403
- {
408
+ .sp-palette .sp-thumb-el {
404
409
  width:16px;
405
410
  height: 16px;
406
411
  margin:2px 1px;
407
412
  border: solid 1px #d0d0d0;
408
413
  }
409
414
 
410
- .sp-container
411
- {
415
+ .sp-container {
412
416
  padding-bottom:0;
413
417
  }
414
418
 
415
419
 
416
420
  /* Buttons: http://hellohappy.org/css3-buttons/ */
417
421
  .sp-container button {
418
- background-color: #eeeeee;
419
- background-image: -webkit-linear-gradient(top, #eeeeee, #cccccc);
420
- background-image: -moz-linear-gradient(top, #eeeeee, #cccccc);
421
- background-image: -ms-linear-gradient(top, #eeeeee, #cccccc);
422
- background-image: -o-linear-gradient(top, #eeeeee, #cccccc);
423
- background-image: linear-gradient(to bottom, #eeeeee, #cccccc);
424
- border: 1px solid #ccc;
425
- border-bottom: 1px solid #bbb;
426
- border-radius: 3px;
427
- color: #333;
428
- font-size: 14px;
429
- line-height: 1;
430
- padding: 5px 4px;
431
- text-align: center;
432
- text-shadow: 0 1px 0 #eee;
433
- vertical-align: middle;
422
+ background-color: #eeeeee;
423
+ background-image: -webkit-linear-gradient(top, #eeeeee, #cccccc);
424
+ background-image: -moz-linear-gradient(top, #eeeeee, #cccccc);
425
+ background-image: -ms-linear-gradient(top, #eeeeee, #cccccc);
426
+ background-image: -o-linear-gradient(top, #eeeeee, #cccccc);
427
+ background-image: linear-gradient(to bottom, #eeeeee, #cccccc);
428
+ border: 1px solid #ccc;
429
+ border-bottom: 1px solid #bbb;
430
+ border-radius: 3px;
431
+ color: #333;
432
+ font-size: 14px;
433
+ line-height: 1;
434
+ padding: 5px 4px;
435
+ text-align: center;
436
+ text-shadow: 0 1px 0 #eee;
437
+ vertical-align: middle;
434
438
  }
435
439
  .sp-container button:hover {
436
440
  background-color: #dddddd;
@@ -453,8 +457,7 @@ See http://bgrins.github.io/spectrum/themes/ for instructions.
453
457
  -o-box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
454
458
  box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
455
459
  }
456
- .sp-cancel
457
- {
460
+ .sp-cancel {
458
461
  font-size: 11px;
459
462
  color: #d93f3f !important;
460
463
  margin:0;
@@ -464,43 +467,36 @@ See http://bgrins.github.io/spectrum/themes/ for instructions.
464
467
  text-decoration:none;
465
468
 
466
469
  }
467
- .sp-cancel:hover
468
- {
470
+ .sp-cancel:hover {
469
471
  color: #d93f3f !important;
470
472
  text-decoration: underline;
471
473
  }
472
474
 
473
475
 
474
- .sp-palette span:hover, .sp-palette span.sp-thumb-active
475
- {
476
+ .sp-palette span:hover, .sp-palette span.sp-thumb-active {
476
477
  border-color: #000;
477
478
  }
478
479
 
479
- .sp-preview, .sp-alpha, .sp-thumb-el
480
- {
480
+ .sp-preview, .sp-alpha, .sp-thumb-el {
481
481
  position:relative;
482
482
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);
483
483
  }
484
- .sp-preview-inner, .sp-alpha-inner, .sp-thumb-inner
485
- {
484
+ .sp-preview-inner, .sp-alpha-inner, .sp-thumb-inner {
486
485
  display:block;
487
486
  position:absolute;
488
487
  top:0;left:0;bottom:0;right:0;
489
488
  }
490
489
 
491
- .sp-palette .sp-thumb-inner
492
- {
490
+ .sp-palette .sp-thumb-inner {
493
491
  background-position: 50% 50%;
494
492
  background-repeat: no-repeat;
495
493
  }
496
494
 
497
- .sp-palette .sp-thumb-light.sp-thumb-active .sp-thumb-inner
498
- {
495
+ .sp-palette .sp-thumb-light.sp-thumb-active .sp-thumb-inner {
499
496
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIVJREFUeNpiYBhsgJFMffxAXABlN5JruT4Q3wfi/0DsT64h8UD8HmpIPCWG/KemIfOJCUB+Aoacx6EGBZyHBqI+WsDCwuQ9mhxeg2A210Ntfo8klk9sOMijaURm7yc1UP2RNCMbKE9ODK1HM6iegYLkfx8pligC9lCD7KmRof0ZhjQACDAAceovrtpVBRkAAAAASUVORK5CYII=);
500
497
  }
501
498
 
502
- .sp-palette .sp-thumb-dark.sp-thumb-active .sp-thumb-inner
503
- {
499
+ .sp-palette .sp-thumb-dark.sp-thumb-active .sp-thumb-inner {
504
500
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAMdJREFUOE+tkgsNwzAMRMugEAahEAahEAZhEAqlEAZhEAohEAYh81X2dIm8fKpEspLGvudPOsUYpxE2BIJCroJmEW9qJ+MKaBFhEMNabSy9oIcIPwrB+afvAUFoK4H0tMaQ3XtlrggDhOVVMuT4E5MMG0FBbCEYzjYT7OxLEvIHQLY2zWwQ3D+9luyOQTfKDiFD3iUIfPk8VqrKjgAiSfGFPecrg6HN6m/iBcwiDAo7WiBeawa+Kwh7tZoSCGLMqwlSAzVDhoK+6vH4G0P5wdkAAAAASUVORK5CYII=);
505
501
  }
506
502
 
@@ -508,4 +504,4 @@ See http://bgrins.github.io/spectrum/themes/ for instructions.
508
504
  background-repeat:no-repeat;
509
505
  background-position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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAP8ALAAAAAAUABQAAAihAP9FoPCvoMGDBy08+EdhQAIJCCMybCDAAYUEARBAlFiQQoMABQhKUJBxY0SPICEYHBnggEmDKAuoPMjS5cGYMxHW3IiT478JJA8M/CjTZ0GgLRekNGpwAsYABHIypcAgQMsITDtWJYBR6NSqMico9cqR6tKfY7GeBCuVwlipDNmefAtTrkSzB1RaIAoXodsABiZAEFB06gIBWC1mLVgBa0AAOw==);
511
- }
507
+ }
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spectrum-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
5
- prerelease:
4
+ version: 1.8.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Kevin Trotter
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-12-02 00:00:00.000000000 Z
11
+ date: 2021-02-18 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: railties
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '3.1'
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
29
26
  version: '3.1'
30
27
  description: A ruby gem that uses the Rails asset pipeline to include the Spectrum
@@ -35,35 +32,34 @@ executables: []
35
32
  extensions: []
36
33
  extra_rdoc_files: []
37
34
  files:
38
- - lib/spectrum-rails/version.rb
35
+ - LICENSE
36
+ - README.md
39
37
  - lib/spectrum-rails.rb
38
+ - lib/spectrum-rails/version.rb
39
+ - vendor/assets/javascripts/spectrum-min.js
40
40
  - vendor/assets/javascripts/spectrum.js
41
41
  - vendor/assets/stylesheets/spectrum.css
42
- - LICENSE
43
- - README.md
44
42
  homepage: https://github.com/cskevint/spectrum-rails
45
43
  licenses:
46
44
  - MIT
45
+ metadata: {}
47
46
  post_install_message:
48
47
  rdoc_options: []
49
48
  require_paths:
50
49
  - lib
51
50
  required_ruby_version: !ruby/object:Gem::Requirement
52
- none: false
53
51
  requirements:
54
- - - ! '>='
52
+ - - ">="
55
53
  - !ruby/object:Gem::Version
56
54
  version: '0'
57
55
  required_rubygems_version: !ruby/object:Gem::Requirement
58
- none: false
59
56
  requirements:
60
- - - ! '>='
57
+ - - ">="
61
58
  - !ruby/object:Gem::Version
62
59
  version: '0'
63
60
  requirements: []
64
- rubyforge_project:
65
- rubygems_version: 1.8.24
61
+ rubygems_version: 3.0.3
66
62
  signing_key:
67
- specification_version: 3
63
+ specification_version: 4
68
64
  summary: Includes javascript and css files for the Spectrum jQuery plugin.
69
65
  test_files: []