ad2games-ui_components 2.3.0 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 34b0306781bc0d18ec5457c4e5704c67fd2804f4
4
- data.tar.gz: 502e87978c28924e8fba1b3286c4998b0c39d235
3
+ metadata.gz: 19244355dd4bc0e2c3555fe32649b945e98d8d63
4
+ data.tar.gz: 5eb0d733152cf58f023166368eb2ccced815fae9
5
5
  SHA512:
6
- metadata.gz: 15767332dd275c94431e134ed3f0eb99935d5e294ef75f07b794cf9fb8f5ac9ea210dc220dd9920b45ea0428dd4e5395bb9c9468801d0bfea503ab5c9cae8ab5
7
- data.tar.gz: 2a9d30919d3563f80bcacda42dffa964ebf365cf8eb2c28b9a228e881b85e5b4995d7638fa0b449450f678e009e4b5e1b9b2d58ab03b77b4827e28c36bb41cdd
6
+ metadata.gz: 60bce326184a25270e43e1970fb333864ae2f76521f57cf72b25ee552607b42b6cc322dbd818d597fa930ebefcff6d59511295ace85c30b1a8eb8e5ce961bb78
7
+ data.tar.gz: 27c73edec9231fb1f463c6fd81f3021cfe38d5c5470621ed66d854636c3789398823a76f7e5f189dd956f6d39dd78646665e9570cca70f5a22c3ce800fd92f80
data/Rakefile CHANGED
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  begin
3
4
  require 'bundler/setup'
4
5
  rescue LoadError
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  class CheckboxListCell < UiComponents::Cell
3
4
  attribute :form, mandatory: true, description: 'A form object.'
4
5
  attribute :name, mandatory: true, description: 'The name attribute.'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  class DatagridFilterCell < FormCellBase
3
4
  attribute :form, mandatory: true, description: 'A form object.'
4
5
  attribute :filter, mandatory: true, description: 'A Datagrid filter object.'
@@ -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)))
@@ -4,4 +4,5 @@ examples:
4
4
  - bootstrap_form_for(:foo, url: '/') do |f|
5
5
  = ui_component 'date_range', form: f,
6
6
  name: 'foo',
7
- date_limit: { days: 7 }
7
+ date_limit: { days: 7 },
8
+ max_date: Date.current
@@ -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
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  class FormCellBase < UiComponents::Cell
3
4
  include ActionView::Helpers::FormOptionsHelper
4
5
 
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  class HelloWorldCell < UiComponents::Cell
3
4
  attribute :name, mandatory: true, description: 'A name.'
4
5
  end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  class MarkdownReadonlyCell < UiComponents::Cell
3
4
  attribute :content, mandatory: true, description: 'Markdown text.'
4
5
  end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  class MarkdownTextareaCell < FormCellBase
3
4
  attribute :name, mandatory: true, description: "The textarea's name attribute."
4
5
  attribute :form, mandatory: true, description: 'A Rails form object.'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  class ModalCell < UiComponents::Cell
3
4
  attribute :id, mandatory: true, description: 'The HTML id attribute.'
4
5
  attribute :content, mandatory: true, description: "The modal's content."
@@ -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
- ).freeze
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(form-control ui-components-select chosen)
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,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module UiComponents
3
4
  module ViewHelper
4
5
  def ui_component(name, options = {})
@@ -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
- "app/cells/#{name}/#{name}_cell.rb"
15
+ "app/cells/#{name}/#{name}_cell.rb"
14
16
  end
15
17
 
16
18
  def create_view
17
19
  template 'view.tt',
18
- "app/cells/#{name}/#{name}.slim"
20
+ "app/cells/#{name}/#{name}.slim"
19
21
  end
20
22
 
21
23
  def create_config
22
24
  template 'config.tt',
23
- "app/cells/#{name}/#{name}.yml"
25
+ "app/cells/#{name}/#{name}.yml"
24
26
  end
25
27
 
26
28
  def create_assets
27
29
  template 'coffee.tt',
28
- "app/cells/#{name}/#{name}.coffee"
30
+ "app/cells/#{name}/#{name}.coffee"
29
31
  template 'sass.tt',
30
- "app/cells/#{name}/#{name}.scss"
32
+ "app/cells/#{name}/#{name}.scss"
31
33
  end
32
34
  end
@@ -1,2 +1,3 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  task release: :'bower:install:production'
@@ -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(port) do |_, args|
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
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  Gem.loaded_specs['ad2games-ui_components'].dependencies.each do |gem|
3
4
  require gem.name if gem.runtime?
4
5
  end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require_relative '../../app/helpers/ui_components/view_helper'
3
4
 
4
5
  module UiComponents
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module UiComponents
3
4
  module CellAttributes
4
5
  extend ActiveSupport::Concern
@@ -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.load(File.read(file)).deep_symbolize_keys
28
+ YAML.safe_load(File.read(file)).deep_symbolize_keys
28
29
  end
29
30
  end
30
31
  end
@@ -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(styleguide.js
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(chosen/chosen-sprite.png
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
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module UiComponents
3
4
  class ValidatedOpenStruct < OpenStruct
4
5
  def self.validators_on(*)
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module UiComponents
3
- VERSION = '2.3.0'
4
+ VERSION = '2.4.0'
4
5
  end
@@ -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
- ### Bower Installation
14
+ ### Package managers
15
15
 
16
- Chosen is available for Bower installation:
17
- `bower install chosen`
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
- The compiled files for the Bower package are automatically generated and stored in a [2nd Chosen repository](https://github.com/harvesthq/bower-chosen). No pull requests will be accepted to that repository.
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
 
@@ -29,9 +29,7 @@
29
29
  "url": "https://github.com/koenpunt"
30
30
  }
31
31
  ],
32
- "dependencies": {
33
- "jquery": ">=1.4.4"
34
- },
32
+ "dependencies": {},
35
33
  "main": [
36
34
  "chosen.jquery.js",
37
35
  "chosen.css",
@@ -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.6.2
5
+ Version 1.7.0
6
6
  Full source at https://github.com/harvesthq/chosen
7
- Copyright (c) 2011-2016 Harvest http://getharvest.com
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
- -moz-user-select: none;
21
- user-select: none;
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
- left: 0;
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: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #ffffff), color-stop(50%, #f6f6f6), color-stop(52%, #eeeeee), color-stop(100%, #f4f4f4));
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 white inset, 0 1px 1px rgba(0, 0, 0, 0.1);
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('chosen-sprite.png') -42px 1px no-repeat;
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('chosen-sprite.png') no-repeat 0px 2px;
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: white url('chosen-sprite.png') no-repeat 100% -20px;
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
- left: -9999px;
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: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
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: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
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 white inset, 0 1px 0 rgba(0, 0, 0, 0.05);
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('chosen-sprite.png') -42px 1px no-repeat;
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: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
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: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #eeeeee), color-stop(80%, #ffffff));
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
- .chosen-rtl.chosen-container-single-nosearch .chosen-search,
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: white url('chosen-sprite.png') no-repeat -30px -20px;
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('chosen-sprite@2x.png') !important;
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 */