bootstrap-colorpick-rails 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,221 @@
1
+ /*!
2
+ * Bootstrap Colorpicker v2.3.6
3
+ * https://itsjavi.com/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
+ .colorpicker-saturation {
11
+ width: 100px;
12
+ height: 100px;
13
+ background-image: image-url("saturation.png");
14
+ cursor: crosshair;
15
+ float: left;
16
+ }
17
+ .colorpicker-saturation i {
18
+ display: block;
19
+ height: 5px;
20
+ width: 5px;
21
+ border: 1px solid #000;
22
+ -webkit-border-radius: 5px;
23
+ -moz-border-radius: 5px;
24
+ border-radius: 5px;
25
+ position: absolute;
26
+ top: 0;
27
+ left: 0;
28
+ margin: -4px 0 0 -4px;
29
+ }
30
+ .colorpicker-saturation i b {
31
+ display: block;
32
+ height: 5px;
33
+ width: 5px;
34
+ border: 1px solid #fff;
35
+ -webkit-border-radius: 5px;
36
+ -moz-border-radius: 5px;
37
+ border-radius: 5px;
38
+ }
39
+ .colorpicker-hue,
40
+ .colorpicker-alpha {
41
+ width: 15px;
42
+ height: 100px;
43
+ float: left;
44
+ cursor: row-resize;
45
+ margin-left: 4px;
46
+ margin-bottom: 4px;
47
+ }
48
+ .colorpicker-hue i,
49
+ .colorpicker-alpha i {
50
+ display: block;
51
+ height: 1px;
52
+ background: #000;
53
+ border-top: 1px solid #fff;
54
+ position: absolute;
55
+ top: 0;
56
+ left: 0;
57
+ width: 100%;
58
+ margin-top: -1px;
59
+ }
60
+ .colorpicker-hue {
61
+ background-image: image-url("hue.png");
62
+ }
63
+ .colorpicker-alpha {
64
+ background-image: image-url("alpha.png");
65
+ display: none;
66
+ }
67
+ .colorpicker-saturation,
68
+ .colorpicker-hue,
69
+ .colorpicker-alpha {
70
+ background-size: contain;
71
+ }
72
+ .colorpicker {
73
+ padding: 4px;
74
+ min-width: 130px;
75
+ margin-top: 1px;
76
+ -webkit-border-radius: 4px;
77
+ -moz-border-radius: 4px;
78
+ border-radius: 4px;
79
+ z-index: 2500;
80
+ }
81
+ .colorpicker:before,
82
+ .colorpicker:after {
83
+ display: table;
84
+ content: "";
85
+ line-height: 0;
86
+ }
87
+ .colorpicker:after {
88
+ clear: both;
89
+ }
90
+ .colorpicker:before {
91
+ content: '';
92
+ display: inline-block;
93
+ border-left: 7px solid transparent;
94
+ border-right: 7px solid transparent;
95
+ border-bottom: 7px solid #ccc;
96
+ border-bottom-color: rgba(0, 0, 0, 0.2);
97
+ position: absolute;
98
+ top: -7px;
99
+ left: 6px;
100
+ }
101
+ .colorpicker:after {
102
+ content: '';
103
+ display: inline-block;
104
+ border-left: 6px solid transparent;
105
+ border-right: 6px solid transparent;
106
+ border-bottom: 6px solid #ffffff;
107
+ position: absolute;
108
+ top: -6px;
109
+ left: 7px;
110
+ }
111
+ .colorpicker div {
112
+ position: relative;
113
+ }
114
+ .colorpicker.colorpicker-with-alpha {
115
+ min-width: 140px;
116
+ }
117
+ .colorpicker.colorpicker-with-alpha .colorpicker-alpha {
118
+ display: block;
119
+ }
120
+ .colorpicker-color {
121
+ height: 10px;
122
+ margin-top: 5px;
123
+ clear: both;
124
+ background-image: image-url("alpha.png");
125
+ background-position: 0 100%;
126
+ }
127
+ .colorpicker-color div {
128
+ height: 10px;
129
+ }
130
+ .colorpicker-selectors {
131
+ display: none;
132
+ height: 10px;
133
+ margin-top: 5px;
134
+ clear: both;
135
+ }
136
+ .colorpicker-selectors i {
137
+ cursor: pointer;
138
+ float: left;
139
+ height: 10px;
140
+ width: 10px;
141
+ }
142
+ .colorpicker-selectors i + i {
143
+ margin-left: 3px;
144
+ }
145
+ .colorpicker-element .input-group-addon i,
146
+ .colorpicker-element .add-on i {
147
+ display: inline-block;
148
+ cursor: pointer;
149
+ height: 16px;
150
+ vertical-align: text-top;
151
+ width: 16px;
152
+ }
153
+ .colorpicker.colorpicker-inline {
154
+ position: relative;
155
+ display: inline-block;
156
+ float: none;
157
+ z-index: auto;
158
+ }
159
+ .colorpicker.colorpicker-horizontal {
160
+ width: 110px;
161
+ min-width: 110px;
162
+ height: auto;
163
+ }
164
+ .colorpicker.colorpicker-horizontal .colorpicker-saturation {
165
+ margin-bottom: 4px;
166
+ }
167
+ .colorpicker.colorpicker-horizontal .colorpicker-color {
168
+ width: 100px;
169
+ }
170
+ .colorpicker.colorpicker-horizontal .colorpicker-hue,
171
+ .colorpicker.colorpicker-horizontal .colorpicker-alpha {
172
+ width: 100px;
173
+ height: 15px;
174
+ float: left;
175
+ cursor: col-resize;
176
+ margin-left: 0px;
177
+ margin-bottom: 4px;
178
+ }
179
+ .colorpicker.colorpicker-horizontal .colorpicker-hue i,
180
+ .colorpicker.colorpicker-horizontal .colorpicker-alpha i {
181
+ display: block;
182
+ height: 15px;
183
+ background: #ffffff;
184
+ position: absolute;
185
+ top: 0;
186
+ left: 0;
187
+ width: 1px;
188
+ border: none;
189
+ margin-top: 0px;
190
+ }
191
+ .colorpicker.colorpicker-horizontal .colorpicker-hue {
192
+ background-image: image-url("hue-horizontal.png");
193
+ }
194
+ .colorpicker.colorpicker-horizontal .colorpicker-alpha {
195
+ background-image: image-url("alpha-horizontal.png");
196
+ }
197
+ .colorpicker.colorpicker-hidden {
198
+ display: none;
199
+ }
200
+ .colorpicker.colorpicker-visible {
201
+ display: block;
202
+ }
203
+ .colorpicker-inline.colorpicker-visible {
204
+ display: inline-block;
205
+ }
206
+ .colorpicker-right:before {
207
+ left: auto;
208
+ right: 6px;
209
+ }
210
+ .colorpicker-right:after {
211
+ left: auto;
212
+ right: 7px;
213
+ }
214
+ .colorpicker-no-arrow:before {
215
+ border-right: 0;
216
+ border-left: 0;
217
+ }
218
+ .colorpicker-no-arrow:after {
219
+ border-right: 0;
220
+ border-left: 0;
221
+ }
@@ -1,5 +1,5 @@
1
1
  module BootstrapColorpickerRails
2
2
  module Rails
3
- VERSION = "0.0.0"
3
+ VERSION = "0.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-colorpick-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Alessani
@@ -63,11 +63,13 @@ files:
63
63
  - Gemfile
64
64
  - README.md
65
65
  - Rakefile
66
+ - app/assets/images/alpha-horizontal.png
66
67
  - app/assets/images/alpha.png
68
+ - app/assets/images/hue-horizontal.png
67
69
  - app/assets/images/hue.png
68
70
  - app/assets/images/saturation.png
69
71
  - app/assets/javascripts/bootstrap-colorpicker.js
70
- - app/assets/stylesheets/bootstrap-colorpicker.css.scss
72
+ - app/assets/stylesheets/bootstrap-colorpicker.scss
71
73
  - bootstrap-colorpick-rails.gemspec
72
74
  - lib/bootstrap-colorpick-rails.rb
73
75
  - lib/bootstrap-colorpicker-rails.rb
@@ -1,127 +0,0 @@
1
- /*!
2
- * Colorpicker for Bootstrap
3
- *
4
- * Copyright 2012 Stefan Petre
5
- * Licensed under the Apache License v2.0
6
- * http://www.apache.org/licenses/LICENSE-2.0
7
- *
8
- */
9
- .colorpicker-saturation {
10
- width: 100px;
11
- height: 100px;
12
- background-image: image-url('saturation.png');
13
- cursor: crosshair;
14
- float: left;
15
- }
16
- .colorpicker-saturation i {
17
- display: block;
18
- height: 5px;
19
- width: 5px;
20
- border: 1px solid #000;
21
- -webkit-border-radius: 5px;
22
- -moz-border-radius: 5px;
23
- border-radius: 5px;
24
- position: absolute;
25
- top: 0;
26
- left: 0;
27
- margin: -4px 0 0 -4px;
28
- }
29
- .colorpicker-saturation i b {
30
- display: block;
31
- height: 5px;
32
- width: 5px;
33
- border: 1px solid #fff;
34
- -webkit-border-radius: 5px;
35
- -moz-border-radius: 5px;
36
- border-radius: 5px;
37
- }
38
- .colorpicker-hue, .colorpicker-alpha {
39
- width: 15px;
40
- height: 100px;
41
- float: left;
42
- cursor: row-resize;
43
- margin-left: 4px;
44
- margin-bottom: 4px;
45
- }
46
- .colorpicker-hue i, .colorpicker-alpha i {
47
- display: block;
48
- height: 1px;
49
- background: #000;
50
- border-top: 1px solid #fff;
51
- position: absolute;
52
- top: 0;
53
- left: 0;
54
- width: 100%;
55
- margin-top: -1px;
56
- }
57
- .colorpicker-hue {
58
- background-image: image-url('hue.png');
59
- }
60
- .colorpicker-alpha {
61
- background-image: image-url('alpha.png');
62
- display: none;
63
- }
64
- .colorpicker {
65
- *zoom: 1;
66
- top: 0;
67
- left: 0;
68
- padding: 4px;
69
- min-width: 120px;
70
- margin-top: 1px;
71
- -webkit-border-radius: 4px;
72
- -moz-border-radius: 4px;
73
- border-radius: 4px;
74
- }
75
- .colorpicker:before, .colorpicker:after {
76
- display: table;
77
- content: "";
78
- }
79
- .colorpicker:after {
80
- clear: both;
81
- }
82
- .colorpicker:before {
83
- content: '';
84
- display: inline-block;
85
- border-left: 7px solid transparent;
86
- border-right: 7px solid transparent;
87
- border-bottom: 7px solid #ccc;
88
- border-bottom-color: rgba(0, 0, 0, 0.2);
89
- position: absolute;
90
- top: -7px;
91
- left: 6px;
92
- }
93
- .colorpicker:after {
94
- content: '';
95
- display: inline-block;
96
- border-left: 6px solid transparent;
97
- border-right: 6px solid transparent;
98
- border-bottom: 6px solid #ffffff;
99
- position: absolute;
100
- top: -6px;
101
- left: 7px;
102
- }
103
- .colorpicker div {
104
- position: relative;
105
- }
106
- .colorpicker.alpha {
107
- min-width: 140px;
108
- }
109
- .colorpicker.alpha .colorpicker-alpha {
110
- display: block;
111
- }
112
- .colorpicker-color {
113
- height: 10px;
114
- margin-top: 5px;
115
- clear: both;
116
- background-image: image-url('alpha.png');
117
- background-position: 0 100%;
118
- }
119
- .colorpicker-color div {
120
- height: 10px;
121
- }
122
- .input-append.color .add-on i, .input-prepend.color .add-on i {
123
- display: block;
124
- cursor: pointer;
125
- width: 16px;
126
- height: 16px;
127
- }