ad2games-ui_components 2.3.0 → 2.4.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.
- checksums.yaml +4 -4
- data/Rakefile +1 -0
- data/app/cells/checkbox_list/checkbox_list_cell.rb +1 -0
- data/app/cells/datagrid_filter/datagrid_filter_cell.rb +1 -0
- data/app/cells/date_range/date_range.coffee +1 -1
- data/app/cells/date_range/date_range.yml +2 -1
- data/app/cells/date_range/date_range_cell.rb +10 -2
- data/app/cells/form_cell_base.rb +1 -0
- data/app/cells/hello_world/hello_world_cell.rb +1 -0
- data/app/cells/markdown_readonly/markdown_readonly_cell.rb +1 -0
- data/app/cells/markdown_textarea/markdown_textarea_cell.rb +1 -0
- data/app/cells/modal/modal_cell.rb +1 -0
- data/app/cells/select/select_cell.rb +4 -3
- data/app/helpers/ui_components/view_helper.rb +1 -0
- data/lib/generators/generate_component.thor +7 -5
- data/lib/tasks/release.rake +1 -0
- data/lib/tasks/styleguide.rake +2 -1
- data/lib/ui_components.rb +1 -0
- data/lib/ui_components/cell.rb +1 -0
- data/lib/ui_components/cell_attributes.rb +1 -0
- data/lib/ui_components/docu_cop.rb +2 -1
- data/lib/ui_components/engine.rb +5 -4
- data/lib/ui_components/form_helper.rb +1 -0
- data/lib/ui_components/version.rb +2 -1
- data/vendor/assets/bower_components/chosen/README.md +16 -4
- data/vendor/assets/bower_components/chosen/bower.json +1 -3
- data/vendor/assets/bower_components/chosen/chosen.css +83 -54
- data/vendor/assets/bower_components/chosen/chosen.jquery.js +183 -131
- data/vendor/assets/bower_components/chosen/package.json +2 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19244355dd4bc0e2c3555fe32649b945e98d8d63
|
4
|
+
data.tar.gz: 5eb0d733152cf58f023166368eb2ccced815fae9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60bce326184a25270e43e1970fb333864ae2f76521f57cf72b25ee552607b42b6cc322dbd818d597fa930ebefcff6d59511295ace85c30b1a8eb8e5ce961bb78
|
7
|
+
data.tar.gz: 27c73edec9231fb1f463c6fd81f3021cfe38d5c5470621ed66d854636c3789398823a76f7e5f189dd956f6d39dd78646665e9570cca70f5a22c3ce800fd92f80
|
data/Rakefile
CHANGED
@@ -37,7 +37,7 @@ $(document).on 'uic:domchange', (e) ->
|
|
37
37
|
|
38
38
|
options = _.extend({},
|
39
39
|
defaults,
|
40
|
-
_.pick($el.data(), ['dateLimit', 'ranges', 'submitOnChange', 'opens']),
|
40
|
+
_.pick($el.data(), ['dateLimit', 'ranges', 'submitOnChange', 'opens', 'minDate', 'maxDate']),
|
41
41
|
{ startDate: start_date, endDate: end_date })
|
42
42
|
|
43
43
|
options.ranges = _.mapObject(options.ranges, (v, k) -> _.map(v, (v) -> moment(v)))
|
@@ -1,4 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
class DateRangeCell < FormCellBase
|
3
4
|
attribute :form, mandatory: true, description: 'A form object.'
|
4
5
|
attribute :name, mandatory: true, description: 'The name attribute.'
|
@@ -15,6 +16,8 @@ class DateRangeCell < FormCellBase
|
|
15
16
|
"Accepts: 'right' (default), 'left', 'center'"
|
16
17
|
attribute :submit_on_change, description: 'Whether the enclosing form should be ' \
|
17
18
|
'automatically submitted on value change'
|
19
|
+
attribute :min_date, description: 'The earliest date a user may select'
|
20
|
+
attribute :max_date, description: 'The latest date a user may select'
|
18
21
|
|
19
22
|
def show
|
20
23
|
[
|
@@ -42,12 +45,17 @@ class DateRangeCell < FormCellBase
|
|
42
45
|
end
|
43
46
|
|
44
47
|
def data
|
45
|
-
options.slice(:ranges, :date_limit, :opens, :submit_on_change).merge(
|
46
|
-
start_date: start_date.to_s, end_date: end_date.to_s,
|
48
|
+
options.slice(:ranges, :date_limit, :opens, :submit_on_change).merge(dates).merge(
|
47
49
|
start: "##{id}_from", end: "##{id}_to"
|
48
50
|
)
|
49
51
|
end
|
50
52
|
|
53
|
+
def dates
|
54
|
+
%i[start_date end_date min_date max_date].each_with_object({}) do |attribute, hash|
|
55
|
+
hash[attribute] = public_send(attribute).to_s.presence
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
51
59
|
def id
|
52
60
|
"date_range_#{name_param}"
|
53
61
|
end
|
data/app/cells/form_cell_base.rb
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
class SelectCell < FormCellBase
|
3
|
-
DATA_ATTRIBUTES = %i
|
4
|
+
DATA_ATTRIBUTES = %i[
|
4
5
|
placeholder
|
5
6
|
error
|
6
7
|
width
|
7
8
|
remote_options
|
8
9
|
disable_search
|
9
|
-
|
10
|
+
].freeze
|
10
11
|
attribute :disabled, description: 'Whether or not the field is disabled.'
|
11
12
|
attribute :form, mandatory: true, description: 'A form object.'
|
12
13
|
attribute :name, mandatory: true, description: 'The name attribute.'
|
@@ -57,7 +58,7 @@ class SelectCell < FormCellBase
|
|
57
58
|
end
|
58
59
|
|
59
60
|
def css_class
|
60
|
-
classes = %w
|
61
|
+
classes = %w[form-control ui-components-select chosen]
|
61
62
|
classes << 'chosen-inline' if options[:inline]
|
62
63
|
classes << options[:classes] if options[:classes]
|
63
64
|
classes.join(' ')
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'thor/group'
|
2
4
|
require 'active_support/core_ext/string'
|
3
5
|
|
@@ -10,23 +12,23 @@ class GenerateComponent < Thor::Group
|
|
10
12
|
|
11
13
|
def create_cell
|
12
14
|
template 'cell.tt',
|
13
|
-
|
15
|
+
"app/cells/#{name}/#{name}_cell.rb"
|
14
16
|
end
|
15
17
|
|
16
18
|
def create_view
|
17
19
|
template 'view.tt',
|
18
|
-
|
20
|
+
"app/cells/#{name}/#{name}.slim"
|
19
21
|
end
|
20
22
|
|
21
23
|
def create_config
|
22
24
|
template 'config.tt',
|
23
|
-
|
25
|
+
"app/cells/#{name}/#{name}.yml"
|
24
26
|
end
|
25
27
|
|
26
28
|
def create_assets
|
27
29
|
template 'coffee.tt',
|
28
|
-
|
30
|
+
"app/cells/#{name}/#{name}.coffee"
|
29
31
|
template 'sass.tt',
|
30
|
-
|
32
|
+
"app/cells/#{name}/#{name}.scss"
|
31
33
|
end
|
32
34
|
end
|
data/lib/tasks/release.rake
CHANGED
data/lib/tasks/styleguide.rake
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
desc 'Run the styleguide on :port (defaults to 3999).'
|
3
|
-
task :styleguide, %i
|
4
|
+
task :styleguide, %i[port] do |_, args|
|
4
5
|
FileUtils.cd(UiComponents::Engine.root.join('spec', 'dummy')) do
|
5
6
|
port = args[:port] || 3999
|
6
7
|
exec "./bin/rails s -p #{port}"
|
data/lib/ui_components.rb
CHANGED
data/lib/ui_components/cell.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
module UiComponents
|
3
4
|
module DocuCop
|
4
5
|
extend ActiveSupport::Concern
|
@@ -24,7 +25,7 @@ module UiComponents
|
|
24
25
|
|
25
26
|
def documentation
|
26
27
|
file = Engine.root.join('app', 'cells', name, "#{name}.yml")
|
27
|
-
YAML.
|
28
|
+
YAML.safe_load(File.read(file)).deep_symbolize_keys
|
28
29
|
end
|
29
30
|
end
|
30
31
|
end
|
data/lib/ui_components/engine.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
module UiComponents
|
3
4
|
class Engine < ::Rails::Engine
|
4
5
|
initializer 'ui_components.assets.add_load_paths' do |app|
|
@@ -8,16 +9,16 @@ module UiComponents
|
|
8
9
|
end
|
9
10
|
|
10
11
|
initializer 'ui_components.assets.precompile' do |app|
|
11
|
-
app.config.assets.precompile += %w
|
12
|
-
styleguide.css
|
12
|
+
app.config.assets.precompile += %w[styleguide.js
|
13
|
+
styleguide.css]
|
13
14
|
app.config.assets.precompile +=
|
14
15
|
self.class.components_paths
|
15
16
|
.map(&:basename)
|
16
17
|
.map { |p| ["#{p}.js", "#{p}.css"] }
|
17
18
|
.flatten
|
18
19
|
|
19
|
-
app.config.assets.precompile += %w
|
20
|
-
chosen/chosen-sprite@2x.png
|
20
|
+
app.config.assets.precompile += %w[chosen/chosen-sprite.png
|
21
|
+
chosen/chosen-sprite@2x.png]
|
21
22
|
end
|
22
23
|
|
23
24
|
def self.components_paths
|
@@ -11,12 +11,24 @@ http://harvesthq.github.io/chosen/
|
|
11
11
|
For **downloads**, see:
|
12
12
|
https://github.com/harvesthq/chosen/releases/
|
13
13
|
|
14
|
-
###
|
14
|
+
### Package managers
|
15
15
|
|
16
|
-
Chosen is available
|
17
|
-
|
16
|
+
Chosen is available through [Bower](https://bower.io/) and [npm](https://www.npmjs.com),
|
17
|
+
_however, the package names are not the same_.
|
18
18
|
|
19
|
-
|
19
|
+
To install with Bower:
|
20
|
+
|
21
|
+
```
|
22
|
+
bower install chosen
|
23
|
+
```
|
24
|
+
|
25
|
+
To install with npm:
|
26
|
+
|
27
|
+
```
|
28
|
+
npm install chosen-js
|
29
|
+
```
|
30
|
+
|
31
|
+
The compiled files for these packages are automatically generated and stored in a [2nd Chosen repository](https://github.com/harvesthq/chosen-package). No pull requests will be accepted to that repository.
|
20
32
|
|
21
33
|
### Contributing to this project
|
22
34
|
|
@@ -2,9 +2,9 @@
|
|
2
2
|
Chosen, a Select Box Enhancer for jQuery and Prototype
|
3
3
|
by Patrick Filler for Harvest, http://getharvest.com
|
4
4
|
|
5
|
-
Version 1.
|
5
|
+
Version 1.7.0
|
6
6
|
Full source at https://github.com/harvesthq/chosen
|
7
|
-
Copyright (c) 2011-
|
7
|
+
Copyright (c) 2011-2017 Harvest http://getharvest.com
|
8
8
|
|
9
9
|
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
|
10
10
|
This file is generated by `grunt build`, do not edit it by hand.
|
@@ -17,31 +17,35 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
17
17
|
vertical-align: middle;
|
18
18
|
font-size: 13px;
|
19
19
|
-webkit-user-select: none;
|
20
|
-
|
21
|
-
|
20
|
+
-moz-user-select: none;
|
21
|
+
-ms-user-select: none;
|
22
|
+
user-select: none;
|
22
23
|
}
|
24
|
+
|
23
25
|
.chosen-container * {
|
24
|
-
-webkit-box-sizing: border-box;
|
25
|
-
-moz-box-sizing: border-box;
|
26
26
|
box-sizing: border-box;
|
27
27
|
}
|
28
|
+
|
28
29
|
.chosen-container .chosen-drop {
|
29
30
|
position: absolute;
|
30
31
|
top: 100%;
|
31
|
-
left: -9999px;
|
32
32
|
z-index: 1010;
|
33
33
|
width: 100%;
|
34
34
|
border: 1px solid #aaa;
|
35
35
|
border-top: 0;
|
36
36
|
background: #fff;
|
37
37
|
box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
|
38
|
+
clip: rect(0, 0, 0, 0);
|
38
39
|
}
|
40
|
+
|
39
41
|
.chosen-container.chosen-with-drop .chosen-drop {
|
40
|
-
|
42
|
+
clip: auto;
|
41
43
|
}
|
44
|
+
|
42
45
|
.chosen-container a {
|
43
46
|
cursor: pointer;
|
44
47
|
}
|
48
|
+
|
45
49
|
.chosen-container .search-choice .group-name, .chosen-container .chosen-single .group-name {
|
46
50
|
margin-right: 4px;
|
47
51
|
overflow: hidden;
|
@@ -50,6 +54,7 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
50
54
|
font-weight: normal;
|
51
55
|
color: #999999;
|
52
56
|
}
|
57
|
+
|
53
58
|
.chosen-container .search-choice .group-name:after, .chosen-container .chosen-single .group-name:after {
|
54
59
|
content: ":";
|
55
60
|
padding-left: 2px;
|
@@ -67,21 +72,19 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
67
72
|
border: 1px solid #aaa;
|
68
73
|
border-radius: 5px;
|
69
74
|
background-color: #fff;
|
70
|
-
background: -
|
71
|
-
background: -webkit-linear-gradient(#ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
72
|
-
background: -moz-linear-gradient(#ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
73
|
-
background: -o-linear-gradient(#ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
74
|
-
background: linear-gradient(#ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
75
|
+
background: linear-gradient(#fff 20%, #f6f6f6 50%, #eee 52%, #f4f4f4 100%);
|
75
76
|
background-clip: padding-box;
|
76
|
-
box-shadow: 0 0 3px
|
77
|
+
box-shadow: 0 0 3px #fff inset, 0 1px 1px rgba(0, 0, 0, 0.1);
|
77
78
|
color: #444;
|
78
79
|
text-decoration: none;
|
79
80
|
white-space: nowrap;
|
80
81
|
line-height: 24px;
|
81
82
|
}
|
83
|
+
|
82
84
|
.chosen-container-single .chosen-default {
|
83
85
|
color: #999;
|
84
86
|
}
|
87
|
+
|
85
88
|
.chosen-container-single .chosen-single span {
|
86
89
|
display: block;
|
87
90
|
overflow: hidden;
|
@@ -89,9 +92,11 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
89
92
|
text-overflow: ellipsis;
|
90
93
|
white-space: nowrap;
|
91
94
|
}
|
95
|
+
|
92
96
|
.chosen-container-single .chosen-single-with-deselect span {
|
93
97
|
margin-right: 38px;
|
94
98
|
}
|
99
|
+
|
95
100
|
.chosen-container-single .chosen-single abbr {
|
96
101
|
position: absolute;
|
97
102
|
top: 6px;
|
@@ -99,15 +104,18 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
99
104
|
display: block;
|
100
105
|
width: 12px;
|
101
106
|
height: 12px;
|
102
|
-
background: url(
|
107
|
+
background: url("chosen-sprite.png") -42px 1px no-repeat;
|
103
108
|
font-size: 1px;
|
104
109
|
}
|
110
|
+
|
105
111
|
.chosen-container-single .chosen-single abbr:hover {
|
106
112
|
background-position: -42px -10px;
|
107
113
|
}
|
114
|
+
|
108
115
|
.chosen-container-single.chosen-disabled .chosen-single abbr:hover {
|
109
116
|
background-position: -42px -10px;
|
110
117
|
}
|
118
|
+
|
111
119
|
.chosen-container-single .chosen-single div {
|
112
120
|
position: absolute;
|
113
121
|
top: 0;
|
@@ -116,12 +124,14 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
116
124
|
width: 18px;
|
117
125
|
height: 100%;
|
118
126
|
}
|
127
|
+
|
119
128
|
.chosen-container-single .chosen-single div b {
|
120
129
|
display: block;
|
121
130
|
width: 100%;
|
122
131
|
height: 100%;
|
123
|
-
background: url(
|
132
|
+
background: url("chosen-sprite.png") no-repeat 0px 2px;
|
124
133
|
}
|
134
|
+
|
125
135
|
.chosen-container-single .chosen-search {
|
126
136
|
position: relative;
|
127
137
|
z-index: 1010;
|
@@ -129,6 +139,7 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
129
139
|
padding: 3px 4px;
|
130
140
|
white-space: nowrap;
|
131
141
|
}
|
142
|
+
|
132
143
|
.chosen-container-single .chosen-search input[type="text"] {
|
133
144
|
margin: 1px 0;
|
134
145
|
padding: 4px 20px 4px 5px;
|
@@ -136,21 +147,22 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
136
147
|
height: auto;
|
137
148
|
outline: 0;
|
138
149
|
border: 1px solid #aaa;
|
139
|
-
background:
|
140
|
-
background: url('chosen-sprite.png') no-repeat 100% -20px;
|
150
|
+
background: url("chosen-sprite.png") no-repeat 100% -20px;
|
141
151
|
font-size: 1em;
|
142
152
|
font-family: sans-serif;
|
143
153
|
line-height: normal;
|
144
154
|
border-radius: 0;
|
145
155
|
}
|
156
|
+
|
146
157
|
.chosen-container-single .chosen-drop {
|
147
158
|
margin-top: -1px;
|
148
159
|
border-radius: 0 0 4px 4px;
|
149
160
|
background-clip: padding-box;
|
150
161
|
}
|
162
|
+
|
151
163
|
.chosen-container-single.chosen-container-single-nosearch .chosen-search {
|
152
164
|
position: absolute;
|
153
|
-
|
165
|
+
clip: rect(0, 0, 0, 0);
|
154
166
|
}
|
155
167
|
|
156
168
|
/* @end */
|
@@ -165,6 +177,7 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
165
177
|
max-height: 240px;
|
166
178
|
-webkit-overflow-scrolling: touch;
|
167
179
|
}
|
180
|
+
|
168
181
|
.chosen-container .chosen-results li {
|
169
182
|
display: none;
|
170
183
|
margin: 0;
|
@@ -174,37 +187,40 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
174
187
|
word-wrap: break-word;
|
175
188
|
-webkit-touch-callout: none;
|
176
189
|
}
|
190
|
+
|
177
191
|
.chosen-container .chosen-results li.active-result {
|
178
192
|
display: list-item;
|
179
193
|
cursor: pointer;
|
180
194
|
}
|
195
|
+
|
181
196
|
.chosen-container .chosen-results li.disabled-result {
|
182
197
|
display: list-item;
|
183
198
|
color: #ccc;
|
184
199
|
cursor: default;
|
185
200
|
}
|
201
|
+
|
186
202
|
.chosen-container .chosen-results li.highlighted {
|
187
203
|
background-color: #3875d7;
|
188
|
-
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #3875d7), color-stop(90%, #2a62bc));
|
189
|
-
background-image: -webkit-linear-gradient(#3875d7 20%, #2a62bc 90%);
|
190
|
-
background-image: -moz-linear-gradient(#3875d7 20%, #2a62bc 90%);
|
191
|
-
background-image: -o-linear-gradient(#3875d7 20%, #2a62bc 90%);
|
192
204
|
background-image: linear-gradient(#3875d7 20%, #2a62bc 90%);
|
193
205
|
color: #fff;
|
194
206
|
}
|
207
|
+
|
195
208
|
.chosen-container .chosen-results li.no-results {
|
196
209
|
color: #777;
|
197
210
|
display: list-item;
|
198
211
|
background: #f4f4f4;
|
199
212
|
}
|
213
|
+
|
200
214
|
.chosen-container .chosen-results li.group-result {
|
201
215
|
display: list-item;
|
202
216
|
font-weight: bold;
|
203
217
|
cursor: default;
|
204
218
|
}
|
219
|
+
|
205
220
|
.chosen-container .chosen-results li.group-option {
|
206
221
|
padding-left: 15px;
|
207
222
|
}
|
223
|
+
|
208
224
|
.chosen-container .chosen-results li em {
|
209
225
|
font-style: normal;
|
210
226
|
text-decoration: underline;
|
@@ -221,22 +237,21 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
221
237
|
height: auto;
|
222
238
|
border: 1px solid #aaa;
|
223
239
|
background-color: #fff;
|
224
|
-
background-image: -
|
225
|
-
background-image: -webkit-linear-gradient(#eeeeee 1%, #ffffff 15%);
|
226
|
-
background-image: -moz-linear-gradient(#eeeeee 1%, #ffffff 15%);
|
227
|
-
background-image: -o-linear-gradient(#eeeeee 1%, #ffffff 15%);
|
228
|
-
background-image: linear-gradient(#eeeeee 1%, #ffffff 15%);
|
240
|
+
background-image: linear-gradient(#eee 1%, #fff 15%);
|
229
241
|
cursor: text;
|
230
242
|
}
|
243
|
+
|
231
244
|
.chosen-container-multi .chosen-choices li {
|
232
245
|
float: left;
|
233
246
|
list-style: none;
|
234
247
|
}
|
248
|
+
|
235
249
|
.chosen-container-multi .chosen-choices li.search-field {
|
236
250
|
margin: 0;
|
237
251
|
padding: 0;
|
238
252
|
white-space: nowrap;
|
239
253
|
}
|
254
|
+
|
240
255
|
.chosen-container-multi .chosen-choices li.search-field input[type="text"] {
|
241
256
|
margin: 1px 0;
|
242
257
|
padding: 0;
|
@@ -250,7 +265,9 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
250
265
|
font-family: sans-serif;
|
251
266
|
line-height: normal;
|
252
267
|
border-radius: 0;
|
268
|
+
width: 25px;
|
253
269
|
}
|
270
|
+
|
254
271
|
.chosen-container-multi .chosen-choices li.search-choice {
|
255
272
|
position: relative;
|
256
273
|
margin: 3px 5px 3px 0;
|
@@ -259,22 +276,20 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
259
276
|
max-width: 100%;
|
260
277
|
border-radius: 3px;
|
261
278
|
background-color: #eeeeee;
|
262
|
-
background-image: -
|
263
|
-
background-image: -webkit-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
264
|
-
background-image: -moz-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
265
|
-
background-image: -o-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
266
|
-
background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
279
|
+
background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
|
267
280
|
background-size: 100% 19px;
|
268
281
|
background-repeat: repeat-x;
|
269
282
|
background-clip: padding-box;
|
270
|
-
box-shadow: 0 0 2px
|
283
|
+
box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
|
271
284
|
color: #333;
|
272
285
|
line-height: 13px;
|
273
286
|
cursor: default;
|
274
287
|
}
|
288
|
+
|
275
289
|
.chosen-container-multi .chosen-choices li.search-choice span {
|
276
290
|
word-wrap: break-word;
|
277
291
|
}
|
292
|
+
|
278
293
|
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
|
279
294
|
position: absolute;
|
280
295
|
top: 4px;
|
@@ -282,33 +297,35 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
282
297
|
display: block;
|
283
298
|
width: 12px;
|
284
299
|
height: 12px;
|
285
|
-
background: url(
|
300
|
+
background: url("chosen-sprite.png") -42px 1px no-repeat;
|
286
301
|
font-size: 1px;
|
287
302
|
}
|
303
|
+
|
288
304
|
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover {
|
289
305
|
background-position: -42px -10px;
|
290
306
|
}
|
307
|
+
|
291
308
|
.chosen-container-multi .chosen-choices li.search-choice-disabled {
|
292
309
|
padding-right: 5px;
|
293
310
|
border: 1px solid #ccc;
|
294
311
|
background-color: #e4e4e4;
|
295
|
-
background-image: -
|
296
|
-
background-image: -webkit-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
297
|
-
background-image: -moz-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
298
|
-
background-image: -o-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
299
|
-
background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
312
|
+
background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
|
300
313
|
color: #666;
|
301
314
|
}
|
315
|
+
|
302
316
|
.chosen-container-multi .chosen-choices li.search-choice-focus {
|
303
317
|
background: #d4d4d4;
|
304
318
|
}
|
319
|
+
|
305
320
|
.chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close {
|
306
321
|
background-position: -42px -10px;
|
307
322
|
}
|
323
|
+
|
308
324
|
.chosen-container-multi .chosen-results {
|
309
325
|
margin: 0;
|
310
326
|
padding: 0;
|
311
327
|
}
|
328
|
+
|
312
329
|
.chosen-container-multi .chosen-drop .result-selected {
|
313
330
|
display: list-item;
|
314
331
|
color: #ccc;
|
@@ -321,30 +338,29 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
321
338
|
border: 1px solid #5897fb;
|
322
339
|
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
323
340
|
}
|
341
|
+
|
324
342
|
.chosen-container-active.chosen-with-drop .chosen-single {
|
325
343
|
border: 1px solid #aaa;
|
326
|
-
-moz-border-radius-bottomright: 0;
|
327
344
|
border-bottom-right-radius: 0;
|
328
|
-
-moz-border-radius-bottomleft: 0;
|
329
345
|
border-bottom-left-radius: 0;
|
330
|
-
background-image: -
|
331
|
-
background-image: -webkit-linear-gradient(#eeeeee 20%, #ffffff 80%);
|
332
|
-
background-image: -moz-linear-gradient(#eeeeee 20%, #ffffff 80%);
|
333
|
-
background-image: -o-linear-gradient(#eeeeee 20%, #ffffff 80%);
|
334
|
-
background-image: linear-gradient(#eeeeee 20%, #ffffff 80%);
|
346
|
+
background-image: linear-gradient(#eee 20%, #fff 80%);
|
335
347
|
box-shadow: 0 1px 0 #fff inset;
|
336
348
|
}
|
349
|
+
|
337
350
|
.chosen-container-active.chosen-with-drop .chosen-single div {
|
338
351
|
border-left: none;
|
339
352
|
background: transparent;
|
340
353
|
}
|
354
|
+
|
341
355
|
.chosen-container-active.chosen-with-drop .chosen-single div b {
|
342
356
|
background-position: -18px 2px;
|
343
357
|
}
|
358
|
+
|
344
359
|
.chosen-container-active .chosen-choices {
|
345
360
|
border: 1px solid #5897fb;
|
346
361
|
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
347
362
|
}
|
363
|
+
|
348
364
|
.chosen-container-active .chosen-choices li.search-field input[type="text"] {
|
349
365
|
color: #222 !important;
|
350
366
|
}
|
@@ -355,9 +371,11 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
355
371
|
opacity: 0.5 !important;
|
356
372
|
cursor: default;
|
357
373
|
}
|
374
|
+
|
358
375
|
.chosen-disabled .chosen-single {
|
359
376
|
cursor: default;
|
360
377
|
}
|
378
|
+
|
361
379
|
.chosen-disabled .chosen-choices .search-choice .search-choice-close {
|
362
380
|
cursor: default;
|
363
381
|
}
|
@@ -367,64 +385,74 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
367
385
|
.chosen-rtl {
|
368
386
|
text-align: right;
|
369
387
|
}
|
388
|
+
|
370
389
|
.chosen-rtl .chosen-single {
|
371
390
|
overflow: visible;
|
372
391
|
padding: 0 8px 0 0;
|
373
392
|
}
|
393
|
+
|
374
394
|
.chosen-rtl .chosen-single span {
|
375
395
|
margin-right: 0;
|
376
396
|
margin-left: 26px;
|
377
397
|
direction: rtl;
|
378
398
|
}
|
399
|
+
|
379
400
|
.chosen-rtl .chosen-single-with-deselect span {
|
380
401
|
margin-left: 38px;
|
381
402
|
}
|
403
|
+
|
382
404
|
.chosen-rtl .chosen-single div {
|
383
405
|
right: auto;
|
384
406
|
left: 3px;
|
385
407
|
}
|
408
|
+
|
386
409
|
.chosen-rtl .chosen-single abbr {
|
387
410
|
right: auto;
|
388
411
|
left: 26px;
|
389
412
|
}
|
413
|
+
|
390
414
|
.chosen-rtl .chosen-choices li {
|
391
415
|
float: right;
|
392
416
|
}
|
417
|
+
|
393
418
|
.chosen-rtl .chosen-choices li.search-field input[type="text"] {
|
394
419
|
direction: rtl;
|
395
420
|
}
|
421
|
+
|
396
422
|
.chosen-rtl .chosen-choices li.search-choice {
|
397
423
|
margin: 3px 5px 3px 0;
|
398
424
|
padding: 3px 5px 3px 19px;
|
399
425
|
}
|
426
|
+
|
400
427
|
.chosen-rtl .chosen-choices li.search-choice .search-choice-close {
|
401
428
|
right: auto;
|
402
429
|
left: 4px;
|
403
430
|
}
|
404
|
-
|
405
|
-
.chosen-rtl .chosen-drop {
|
406
|
-
left: 9999px;
|
407
|
-
}
|
431
|
+
|
408
432
|
.chosen-rtl.chosen-container-single .chosen-results {
|
409
433
|
margin: 0 0 4px 4px;
|
410
434
|
padding: 0 4px 0 0;
|
411
435
|
}
|
436
|
+
|
412
437
|
.chosen-rtl .chosen-results li.group-option {
|
413
438
|
padding-right: 15px;
|
414
439
|
padding-left: 0;
|
415
440
|
}
|
441
|
+
|
416
442
|
.chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div {
|
417
443
|
border-right: none;
|
418
444
|
}
|
445
|
+
|
419
446
|
.chosen-rtl .chosen-search input[type="text"] {
|
420
447
|
padding: 4px 5px 4px 20px;
|
421
|
-
background:
|
422
|
-
background: url('chosen-sprite.png') no-repeat -30px -20px;
|
448
|
+
background: url("chosen-sprite.png") no-repeat -30px -20px;
|
423
449
|
direction: rtl;
|
424
450
|
}
|
451
|
+
|
425
452
|
.chosen-rtl.chosen-container-single .chosen-single div b {
|
426
453
|
background-position: 6px 2px;
|
427
454
|
}
|
455
|
+
|
428
456
|
.chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b {
|
429
457
|
background-position: -12px 2px;
|
430
458
|
}
|
@@ -439,9 +467,10 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
439
467
|
.chosen-container-multi .chosen-choices .search-choice .search-choice-close,
|
440
468
|
.chosen-container .chosen-results-scroll-down span,
|
441
469
|
.chosen-container .chosen-results-scroll-up span {
|
442
|
-
background-image: url(
|
470
|
+
background-image: url("chosen-sprite@2x.png") !important;
|
443
471
|
background-size: 52px 37px !important;
|
444
472
|
background-repeat: no-repeat !important;
|
445
473
|
}
|
446
474
|
}
|
475
|
+
|
447
476
|
/* @end */
|