jpicker-rails 0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +34 -0
- data/Rakefile +2 -0
- data/app/assets/images/jpicker/AlphaBar.png +0 -0
- data/app/assets/images/jpicker/Bars.png +0 -0
- data/app/assets/images/jpicker/Maps.png +0 -0
- data/app/assets/images/jpicker/NoColor.png +0 -0
- data/app/assets/images/jpicker/bar-opacity.png +0 -0
- data/app/assets/images/jpicker/map-opacity.png +0 -0
- data/app/assets/images/jpicker/mappoint.gif +0 -0
- data/app/assets/images/jpicker/picker.gif +0 -0
- data/app/assets/images/jpicker/preview-opacity.png +0 -0
- data/app/assets/images/jpicker/rangearrows.gif +0 -0
- data/app/assets/javascripts/jpicker.js +4 -0
- data/app/assets/javascripts/jpicker/jpicker-1.1.6.js +2086 -0
- data/app/assets/javascripts/jpicker/jpicker-pipeline.js.erb +2 -0
- data/app/assets/stylesheets/jpicker.css +4 -0
- data/app/assets/stylesheets/jpicker/jpicker-1.1.6.css +232 -0
- data/app/assets/stylesheets/jpicker/jpicker.css +17 -0
- data/jPicker-rails.gemspec +18 -0
- data/lib/jPicker-rails.rb +8 -0
- data/lib/jPicker-rails/version.rb +5 -0
- metadata +101 -0
@@ -0,0 +1,232 @@
|
|
1
|
+
.jPicker .Icon {
|
2
|
+
display: inline-block;
|
3
|
+
height: 24px; /* change this value if using a different sized color picker icon */
|
4
|
+
position: relative; /* make this element an absolute positioning container */
|
5
|
+
text-align: left; /* make the zero width children position to the left of container */
|
6
|
+
width: 25px; /* change this value if using a different sized color picker icon */
|
7
|
+
}
|
8
|
+
.jPicker .Icon span.Color, .jPicker .Icon span.Alpha {
|
9
|
+
background-position: 2px 2px;
|
10
|
+
display: block;
|
11
|
+
height: 100%;
|
12
|
+
left: 0px;
|
13
|
+
position: absolute;
|
14
|
+
top: 0px;
|
15
|
+
width: 100%;
|
16
|
+
}
|
17
|
+
.jPicker .Icon span.Image {
|
18
|
+
background-repeat: no-repeat;
|
19
|
+
cursor: pointer;
|
20
|
+
display: block;
|
21
|
+
height: 100%;
|
22
|
+
left: 0px;
|
23
|
+
position: absolute;
|
24
|
+
top: 0px;
|
25
|
+
width: 100%;
|
26
|
+
}
|
27
|
+
.jPicker.Container {
|
28
|
+
color: #000;
|
29
|
+
z-index: 10;
|
30
|
+
}
|
31
|
+
table.jPicker {
|
32
|
+
background-color: #efefef;
|
33
|
+
border: 1px outset #666;
|
34
|
+
font-family: Arial, Helvetica, Sans-Serif;
|
35
|
+
font-size: 12px !important;
|
36
|
+
margin: 0px;
|
37
|
+
padding: 5px;
|
38
|
+
width: 545px;
|
39
|
+
z-index: 20;
|
40
|
+
}
|
41
|
+
.jPicker .Move {
|
42
|
+
background-color: #dddddd;
|
43
|
+
border-color: #fff #666 #666 #fff;
|
44
|
+
border-style: solid;
|
45
|
+
border-width: 1px;
|
46
|
+
cursor: move;
|
47
|
+
height: 12px;
|
48
|
+
padding: 0px;
|
49
|
+
}
|
50
|
+
.jPicker .Title {
|
51
|
+
font-size: 11px !important;
|
52
|
+
font-weight: bold;
|
53
|
+
margin: -2px 0px 0px 0px;
|
54
|
+
padding: 10px 0px 0px 0px;
|
55
|
+
text-align: center;
|
56
|
+
width: 100%;
|
57
|
+
}
|
58
|
+
.jPicker div.Map {
|
59
|
+
border-bottom: 2px solid #fff;
|
60
|
+
border-left: 2px solid #9a9a9a;
|
61
|
+
border-right: 2px solid #fff;
|
62
|
+
border-top: 2px solid #9a9a9a;
|
63
|
+
cursor: crosshair;
|
64
|
+
height: 260px; /* IE 6 incorrectly draws border inside the width and height instead of outside - We will fix this to 256px later */
|
65
|
+
margin: 0px 10px 10px 10px;
|
66
|
+
overflow: hidden; /* hide the overdraw of the Color Map icon when at edge of viewing box */
|
67
|
+
padding: 0px;
|
68
|
+
position: relative; /* make this element an absolute positioning container */
|
69
|
+
width: 260px; /* IE 6 incorrectly draws border inside the width and height instead of outside - We will fix this to 256px later */
|
70
|
+
}
|
71
|
+
.jPicker div[class="Map"] {
|
72
|
+
height: 256px; /* correct to 256px for browsers that support the "[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */
|
73
|
+
width: 256px; /* correct to 256px for browsers that support the "[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */
|
74
|
+
}
|
75
|
+
.jPicker div.Bar {
|
76
|
+
border-bottom: 2px solid #fff;
|
77
|
+
border-left: 2px solid #9a9a9a;
|
78
|
+
border-right: 2px solid #fff;
|
79
|
+
border-top: 2px solid #9a9a9a;
|
80
|
+
cursor: n-resize;
|
81
|
+
height: 260px; /* IE 6 incorrectly draws border inside the width and height instead of outside - We will fix this to 256px later */
|
82
|
+
margin: 12px 10px 0px 5px;
|
83
|
+
overflow: hidden;
|
84
|
+
padding: 0px;
|
85
|
+
position: relative;
|
86
|
+
width: 24px; /* IE 6 incorrectly draws border inside the width and height instead of outside - We will fix this to 20px later */
|
87
|
+
}
|
88
|
+
.jPicker div[class="Bar"] {
|
89
|
+
height: 256px; /* correct to 256px for browsers that support the "[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */
|
90
|
+
width: 20px; /* correct to 20px for browsers that support the "[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */
|
91
|
+
}
|
92
|
+
.jPicker .Map .Map1, .jPicker .Map .Map2, .jPicker .Map .Map3, .jPicker .Bar .Map1, .jPicker .Bar .Map2, .jPicker .Bar .Map3, .jPicker .Bar .Map4, .jPicker .Bar .Map5, .jPicker .Bar .Map6 {
|
93
|
+
background-color: transparent;
|
94
|
+
background-image: none;
|
95
|
+
display: block;
|
96
|
+
left: 0px;
|
97
|
+
position: absolute;
|
98
|
+
top: 0px;
|
99
|
+
}
|
100
|
+
.jPicker .Map .Map1, .jPicker .Map .Map2, .jPicker .Map .Map3 {
|
101
|
+
height: 2596px;
|
102
|
+
width: 256px; /* must specify pixel width. IE7/8 Quirks mode ignores opacity for an absolutely positioned item in a relative container with "overflow: visible". The marker in the colorBar
|
103
|
+
would not be drawn if its overflow is set to hidden. */
|
104
|
+
}
|
105
|
+
.jPicker .Bar .Map1, .jPicker .Bar .Map2, .jPicker .Bar .Map3, .jPicker .Bar .Map4 {
|
106
|
+
height: 3896px;
|
107
|
+
width: 20px; /* must specify pixel width. IE7/8 Quirks mode ignores opacity for an absolutely positioned item in a relative container with "overflow: visible". The marker in the colorBar
|
108
|
+
would not be drawn if its overflow is set to hidden. */
|
109
|
+
}
|
110
|
+
.jPicker .Bar .Map5, .jPicker .Bar .Map6 {
|
111
|
+
height: 256px;
|
112
|
+
width: 20px; /* must specify pixel width. IE7/8 Quirks mode ignores opacity for an absolutely positioned item in a relative container with "overflow: visible". The marker in the colorBar
|
113
|
+
would not be drawn if its overflow is set to hidden. */
|
114
|
+
}
|
115
|
+
.jPicker .Map .Map1, .jPicker .Map .Map2, .jPicker .Bar .Map6 {
|
116
|
+
background-repeat: no-repeat;
|
117
|
+
}
|
118
|
+
.jPicker .Map .Map3, .jPicker .Bar .Map5 {
|
119
|
+
background-repeat: repeat;
|
120
|
+
}
|
121
|
+
.jPicker .Bar .Map1, .jPicker .Bar .Map2, .jPicker .Bar .Map3, .jPicker .Bar .Map4 {
|
122
|
+
background-repeat: repeat-x;
|
123
|
+
}
|
124
|
+
.jPicker .Map .Arrow {
|
125
|
+
display: block;
|
126
|
+
position: absolute;
|
127
|
+
}
|
128
|
+
.jPicker .Bar .Arrow {
|
129
|
+
display: block;
|
130
|
+
left: 0px; /* (arrow width / 2) - (element width / 2) - position arrows' center in elements' center */
|
131
|
+
position: absolute;
|
132
|
+
}
|
133
|
+
.jPicker .Preview {
|
134
|
+
font-size: 9px;
|
135
|
+
padding: 5px 0px 0px 0px;
|
136
|
+
text-align: center;
|
137
|
+
}
|
138
|
+
.jPicker .Preview div {
|
139
|
+
border: 2px inset #eee;
|
140
|
+
height: 62px;
|
141
|
+
margin: 0px auto;
|
142
|
+
padding: 0px;
|
143
|
+
width: 62px;
|
144
|
+
}
|
145
|
+
.jPicker .Preview div span {
|
146
|
+
border: 1px solid #000;
|
147
|
+
display: block;
|
148
|
+
height: 30px;
|
149
|
+
margin: 0px auto;
|
150
|
+
padding: 0px;
|
151
|
+
width: 60px;
|
152
|
+
}
|
153
|
+
.jPicker .Preview .Active {
|
154
|
+
border-bottom-width: 0px;
|
155
|
+
}
|
156
|
+
.jPicker .Preview .Current {
|
157
|
+
border-top-width: 0px;
|
158
|
+
cursor: pointer;
|
159
|
+
}
|
160
|
+
.jPicker input {
|
161
|
+
font-size: 13px;
|
162
|
+
}
|
163
|
+
.jPicker .Button {
|
164
|
+
text-align: center;
|
165
|
+
padding: 0px 4px;
|
166
|
+
width: 115px;
|
167
|
+
}
|
168
|
+
.jPicker .Button input {
|
169
|
+
padding: 2px 0px;
|
170
|
+
width: 100px;
|
171
|
+
}
|
172
|
+
.jPicker .Button .Ok {
|
173
|
+
margin: 12px 0px 5px 0px;
|
174
|
+
}
|
175
|
+
.jPicker td {
|
176
|
+
margin: 0px;
|
177
|
+
padding: 0px;
|
178
|
+
}
|
179
|
+
.jPicker td.Radio {
|
180
|
+
margin: 0px;
|
181
|
+
padding: 0px;
|
182
|
+
width: 31px;
|
183
|
+
}
|
184
|
+
.jPicker td.Radio input {
|
185
|
+
margin: 0px 5px 0px 0px;
|
186
|
+
padding: 0px;
|
187
|
+
}
|
188
|
+
.jPicker td.Text {
|
189
|
+
font-size: 12px !important;
|
190
|
+
height: 22px;
|
191
|
+
margin: 0px;
|
192
|
+
padding: 0px;
|
193
|
+
text-align: left;
|
194
|
+
width: 70px;
|
195
|
+
}
|
196
|
+
.jPicker tr.Hex td.Text {
|
197
|
+
width: 100px;
|
198
|
+
}
|
199
|
+
.jPicker td.Text input {
|
200
|
+
background-color: #fff;
|
201
|
+
border: 1px inset #aaa;
|
202
|
+
height: 19px;
|
203
|
+
margin: 0px 0px 0px 5px;
|
204
|
+
text-align: left;
|
205
|
+
width: 30px;
|
206
|
+
}
|
207
|
+
.jPicker td[class="Text"] input {
|
208
|
+
height: 15px;
|
209
|
+
}
|
210
|
+
.jPicker tr.Hex td.Text input.Hex {
|
211
|
+
width: 50px;
|
212
|
+
}
|
213
|
+
.jPicker tr.Hex td.Text input.AHex {
|
214
|
+
width: 20px;
|
215
|
+
}
|
216
|
+
.jPicker .Grid {
|
217
|
+
text-align: center;
|
218
|
+
width: 114px;
|
219
|
+
}
|
220
|
+
.jPicker .Grid span.QuickColor {
|
221
|
+
border: 1px inset #aaa;
|
222
|
+
cursor: pointer;
|
223
|
+
display: inline-block;
|
224
|
+
height: 15px;
|
225
|
+
line-height: 15px;
|
226
|
+
margin: 0px;
|
227
|
+
padding: 0px;
|
228
|
+
width: 19px;
|
229
|
+
}
|
230
|
+
.jPicker .Grid span[class="QuickColor"] {
|
231
|
+
width: 17px;
|
232
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
@media all
|
2
|
+
{
|
3
|
+
#jPicker { margin: 0px 8px; text-align: left; }
|
4
|
+
#jPicker ul { font-size: 15px; margin: 0px 0px 0px 15px; padding: 0px; }
|
5
|
+
#jPicker ul li { list-style: disc; padding: 2px 0px; }
|
6
|
+
#jPicker ul li ul { margin-bottom: 10px; }
|
7
|
+
#jPicker ul li ul li { list-style: circle; }
|
8
|
+
#jPicker p { font-size: 13px; padding: 0px 10px; }
|
9
|
+
#jPicker hr { clear: both; }
|
10
|
+
#jPicker h2.jPicker { font-size: 16px; padding: 20px 10px; }
|
11
|
+
#jPicker code { color: #8bd; font-size: 14px; font-weight: bold; }
|
12
|
+
#jPicker pre { background: #eee; border: 1px solid #000; color: #000; display: block; font-size: 11px; margin: 10px 5px; padding: 5px; }
|
13
|
+
#jPicker span { font-size: 13px; text-align: center; }
|
14
|
+
#jPicker a { color: #ff8050; }
|
15
|
+
#jPicker input { font-size: 13px; padding: 2px 5px; }
|
16
|
+
#jPicker h2 { font-size: 16px; margin: 10px 0px; }
|
17
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/jPicker-rails/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["Maxoos"]
|
6
|
+
gem.email = ["max.penson@gmail.com"]
|
7
|
+
gem.description = %q{jPicker for rails with asset pipline support}
|
8
|
+
gem.summary = %q{Simple gem to add jPicker jquery plugin to rails assets pipeline support.}
|
9
|
+
gem.homepage = "https://github.com/Maxoos/jPicker-rails"
|
10
|
+
gem.add_dependency "railties", ">= 3.1.0"
|
11
|
+
gem.add_dependency "jquery-rails"
|
12
|
+
gem.files = `git ls-files`.split($\)
|
13
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
14
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
15
|
+
gem.name = "jpicker-rails"
|
16
|
+
gem.require_paths = ["lib"]
|
17
|
+
gem.version = JPicker::Rails::VERSION
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jpicker-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '0.1'
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Maxoos
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-06-05 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: railties
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.1.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 3.1.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: jquery-rails
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
description: jPicker for rails with asset pipline support
|
47
|
+
email:
|
48
|
+
- max.penson@gmail.com
|
49
|
+
executables: []
|
50
|
+
extensions: []
|
51
|
+
extra_rdoc_files: []
|
52
|
+
files:
|
53
|
+
- .gitignore
|
54
|
+
- Gemfile
|
55
|
+
- LICENSE
|
56
|
+
- README.md
|
57
|
+
- Rakefile
|
58
|
+
- app/assets/images/jpicker/AlphaBar.png
|
59
|
+
- app/assets/images/jpicker/Bars.png
|
60
|
+
- app/assets/images/jpicker/Maps.png
|
61
|
+
- app/assets/images/jpicker/NoColor.png
|
62
|
+
- app/assets/images/jpicker/bar-opacity.png
|
63
|
+
- app/assets/images/jpicker/map-opacity.png
|
64
|
+
- app/assets/images/jpicker/mappoint.gif
|
65
|
+
- app/assets/images/jpicker/picker.gif
|
66
|
+
- app/assets/images/jpicker/preview-opacity.png
|
67
|
+
- app/assets/images/jpicker/rangearrows.gif
|
68
|
+
- app/assets/javascripts/jpicker.js
|
69
|
+
- app/assets/javascripts/jpicker/jpicker-1.1.6.js
|
70
|
+
- app/assets/javascripts/jpicker/jpicker-pipeline.js.erb
|
71
|
+
- app/assets/stylesheets/jpicker.css
|
72
|
+
- app/assets/stylesheets/jpicker/jpicker-1.1.6.css
|
73
|
+
- app/assets/stylesheets/jpicker/jpicker.css
|
74
|
+
- jPicker-rails.gemspec
|
75
|
+
- lib/jPicker-rails.rb
|
76
|
+
- lib/jPicker-rails/version.rb
|
77
|
+
homepage: https://github.com/Maxoos/jPicker-rails
|
78
|
+
licenses: []
|
79
|
+
post_install_message:
|
80
|
+
rdoc_options: []
|
81
|
+
require_paths:
|
82
|
+
- lib
|
83
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
85
|
+
requirements:
|
86
|
+
- - ! '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
91
|
+
requirements:
|
92
|
+
- - ! '>='
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
95
|
+
requirements: []
|
96
|
+
rubyforge_project:
|
97
|
+
rubygems_version: 1.8.24
|
98
|
+
signing_key:
|
99
|
+
specification_version: 3
|
100
|
+
summary: Simple gem to add jPicker jquery plugin to rails assets pipeline support.
|
101
|
+
test_files: []
|