bootstrap_colorpicker_rails 0.1.0

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.
@@ -0,0 +1,217 @@
1
+ /*!
2
+ * Bootstrap Colorpicker
3
+ * http://mjolnic.github.io/bootstrap-colorpicker/
4
+ *
5
+ * Originally written by (c) 2012 Stefan Petre
6
+ * Licensed under the Apache License v2.0
7
+ * http://www.apache.org/licenses/LICENSE-2.0.txt
8
+ *
9
+ */
10
+
11
+ .colorpicker-saturation {
12
+ float: left;
13
+ width: 100px;
14
+ height: 100px;
15
+ cursor: crosshair;
16
+ background-image: image-url('saturation.png');
17
+ }
18
+
19
+ .colorpicker-saturation i {
20
+ position: absolute;
21
+ top: 0;
22
+ left: 0;
23
+ display: block;
24
+ width: 5px;
25
+ height: 5px;
26
+ margin: -4px 0 0 -4px;
27
+ border: 1px solid #000;
28
+ -webkit-border-radius: 5px;
29
+ -moz-border-radius: 5px;
30
+ border-radius: 5px;
31
+ }
32
+
33
+ .colorpicker-saturation i b {
34
+ display: block;
35
+ width: 5px;
36
+ height: 5px;
37
+ border: 1px solid #fff;
38
+ -webkit-border-radius: 5px;
39
+ -moz-border-radius: 5px;
40
+ border-radius: 5px;
41
+ }
42
+
43
+ .colorpicker-hue,
44
+ .colorpicker-alpha {
45
+ float: left;
46
+ width: 15px;
47
+ height: 100px;
48
+ margin-bottom: 4px;
49
+ margin-left: 4px;
50
+ cursor: row-resize;
51
+ }
52
+
53
+ .colorpicker-hue i,
54
+ .colorpicker-alpha i {
55
+ position: absolute;
56
+ top: 0;
57
+ left: 0;
58
+ display: block;
59
+ width: 100%;
60
+ height: 1px;
61
+ margin-top: -1px;
62
+ background: #000;
63
+ border-top: 1px solid #fff;
64
+ }
65
+
66
+ .colorpicker-hue {
67
+ background-image: image-url('hue.png');
68
+ }
69
+
70
+ .colorpicker-alpha {
71
+ display: none;
72
+ background-image: image-url('alpha.png');
73
+ }
74
+
75
+ .colorpicker {
76
+ top: 0;
77
+ left: 0;
78
+ z-index: 2500;
79
+ min-width: 130px;
80
+ padding: 4px;
81
+ margin-top: 1px;
82
+ -webkit-border-radius: 4px;
83
+ -moz-border-radius: 4px;
84
+ border-radius: 4px;
85
+ *zoom: 1;
86
+ }
87
+
88
+ .colorpicker:before,
89
+ .colorpicker:after {
90
+ display: table;
91
+ line-height: 0;
92
+ content: "";
93
+ }
94
+
95
+ .colorpicker:after {
96
+ clear: both;
97
+ }
98
+
99
+ .colorpicker:before {
100
+ position: absolute;
101
+ top: -7px;
102
+ left: 6px;
103
+ display: inline-block;
104
+ border-right: 7px solid transparent;
105
+ border-bottom: 7px solid #ccc;
106
+ border-left: 7px solid transparent;
107
+ border-bottom-color: rgba(0, 0, 0, 0.2);
108
+ content: '';
109
+ }
110
+
111
+ .colorpicker:after {
112
+ position: absolute;
113
+ top: -6px;
114
+ left: 7px;
115
+ display: inline-block;
116
+ border-right: 6px solid transparent;
117
+ border-bottom: 6px solid #ffffff;
118
+ border-left: 6px solid transparent;
119
+ content: '';
120
+ }
121
+
122
+ .colorpicker div {
123
+ position: relative;
124
+ }
125
+
126
+ .colorpicker.colorpicker-with-alpha {
127
+ min-width: 140px;
128
+ }
129
+
130
+ .colorpicker.colorpicker-with-alpha .colorpicker-alpha {
131
+ display: block;
132
+ }
133
+
134
+ .colorpicker-color {
135
+ height: 10px;
136
+ margin-top: 5px;
137
+ clear: both;
138
+ background-image: image-url('alpha.png');
139
+ background-position: 0 100%;
140
+ }
141
+
142
+ .colorpicker-color div {
143
+ height: 10px;
144
+ }
145
+
146
+ .colorpicker-element .input-group-addon i,
147
+ .colorpicker-element .add-on i {
148
+ display: inline-block;
149
+ width: 16px;
150
+ height: 16px;
151
+ vertical-align: text-top;
152
+ cursor: pointer;
153
+ }
154
+
155
+ .colorpicker.colorpicker-inline {
156
+ position: relative;
157
+ z-index: auto;
158
+ display: inline-block;
159
+ float: none;
160
+ }
161
+
162
+ .colorpicker.colorpicker-horizontal {
163
+ width: 110px;
164
+ height: auto;
165
+ min-width: 110px;
166
+ }
167
+
168
+ .colorpicker.colorpicker-horizontal .colorpicker-saturation {
169
+ margin-bottom: 4px;
170
+ }
171
+
172
+ .colorpicker.colorpicker-horizontal .colorpicker-color {
173
+ width: 100px;
174
+ }
175
+
176
+ .colorpicker.colorpicker-horizontal .colorpicker-hue,
177
+ .colorpicker.colorpicker-horizontal .colorpicker-alpha {
178
+ float: left;
179
+ width: 100px;
180
+ height: 15px;
181
+ margin-bottom: 4px;
182
+ margin-left: 0;
183
+ cursor: col-resize;
184
+ }
185
+
186
+ .colorpicker.colorpicker-horizontal .colorpicker-hue i,
187
+ .colorpicker.colorpicker-horizontal .colorpicker-alpha i {
188
+ position: absolute;
189
+ top: 0;
190
+ left: 0;
191
+ display: block;
192
+ width: 1px;
193
+ height: 15px;
194
+ margin-top: 0;
195
+ background: #ffffff;
196
+ border: none;
197
+ }
198
+
199
+ .colorpicker.colorpicker-horizontal .colorpicker-hue {
200
+ background-image: image-url('hue-horizontal.png');
201
+ }
202
+
203
+ .colorpicker.colorpicker-horizontal .colorpicker-alpha {
204
+ background-image: image-url('alpha-horizontal.png');
205
+ }
206
+
207
+ .colorpicker.colorpicker-hidden {
208
+ display: none;
209
+ }
210
+
211
+ .colorpicker.colorpicker-visible {
212
+ display: block;
213
+ }
214
+
215
+ .colorpicker-inline.colorpicker-visible {
216
+ display: inline-block;
217
+ }
metadata ADDED
@@ -0,0 +1,105 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bootstrap_colorpicker_rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Pavel Shpak
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-01-11 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.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.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.7'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.7'
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: Rails integration for Bootstrap Colorpicker, with simpel_form input.
56
+ email:
57
+ - shpakvel@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - CHANGELOG.md
64
+ - Gemfile
65
+ - LICENSE.txt
66
+ - README.md
67
+ - Rakefile
68
+ - bootstrap_colorpicker_rails.gemspec
69
+ - lib/bootstrap_colorpicker_rails.rb
70
+ - lib/bootstrap_colorpicker_rails/engine.rb
71
+ - lib/bootstrap_colorpicker_rails/railtie.rb
72
+ - lib/bootstrap_colorpicker_rails/simple_form/colorpicker_input.rb
73
+ - lib/bootstrap_colorpicker_rails/version.rb
74
+ - vendor/assets/images/alpha-horizontal.png
75
+ - vendor/assets/images/alpha.png
76
+ - vendor/assets/images/hue-horizontal.png
77
+ - vendor/assets/images/hue.png
78
+ - vendor/assets/images/saturation.png
79
+ - vendor/assets/javascripts/bootstrap-colorpicker.js
80
+ - vendor/assets/stylesheets/bootstrap-colorpicker.css.scss
81
+ homepage: http://github.com/ShPakvel/bootstrap_colorpicker_rails
82
+ licenses:
83
+ - MIT
84
+ metadata: {}
85
+ post_install_message:
86
+ rdoc_options: []
87
+ require_paths:
88
+ - lib
89
+ required_ruby_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ required_rubygems_version: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ requirements: []
100
+ rubyforge_project:
101
+ rubygems_version: 2.4.5
102
+ signing_key:
103
+ specification_version: 4
104
+ summary: Rails integration for Bootstrap Colorpicker, with simpel_form input.
105
+ test_files: []