selectize-rails 0.8.5 → 0.9.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: 83e805fa623f010e488f7d9f752b5e53bb58ccca
4
- data.tar.gz: eb0b8b83577f5938df7590c484070148899a5c70
3
+ metadata.gz: 6084efa3505aee7491d92ddc9257dad81af35c98
4
+ data.tar.gz: d25b3273492258005777c08e92c924898abca061
5
5
  SHA512:
6
- metadata.gz: 118382c5d79b39be6d46413a1516d309f4947962d67801ba9ec16f8a6d2f6a4f25aa6070ee2f03244e8b3657982c8c55603224187bab359259bb2cf637f2f1ab
7
- data.tar.gz: c95ad1b729cba0c274b720d6bee7e4df8b165a4d1364dffb49ee05644c7cc8ae81654cc3458061d3efe3bab728f471246b3c1f48321ee8f123fe2c4152e11c43
6
+ metadata.gz: 4a6ac0856376192c34f3032f86fddcd8c56cf7a84398c7d419571b7db03deb83cb419440fa23d5779ee019c3542144374d1414e62fb84499c3775276f3d727a4
7
+ data.tar.gz: db5015e446beadf99e036bb52ef2cf5bd911daac0238c3538cb3a65a6ecd1b52231641efad0a3fd916c6aa54ce2873d6b18f184b444f9c17b8cf27c1744f5355
data/CHANGELOG.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  | Version | Notes |
4
4
  | -------:| ----------------------------------------------------------- |
5
+ | 0.9.0 | Update to v0.9.0 of selectize.js |
5
6
  | 0.8.5 | Update to v0.8.5 of selectize.js |
6
7
  | 0.8.4 | Update to v0.8.4 of selectize.js |
7
8
  | 0.8.3 | Update to v0.8.3 of selectize.js |
data/README.md CHANGED
@@ -30,7 +30,7 @@ In your `application.css`, include the following:
30
30
 
31
31
  ### Themes
32
32
 
33
- To include additional theme's you can replace the `selectize.default` for on of the [theme files](https://github.com/brianreavis/selectize.js/tree/master/dist/css)
33
+ To include additional theme's you can replace the `selectize.default` for one of the [theme files](https://github.com/brianreavis/selectize.js/tree/master/dist/css)
34
34
 
35
35
 
36
36
  ## Examples
@@ -41,11 +41,11 @@ See the [demo page of Brian Reavis](http://brianreavis.github.io/selectize.js/)
41
41
 
42
42
  | Version | Notes |
43
43
  | -------:| ----------------------------------------------------------- |
44
+ | 0.9.0 | Update to v0.9.0 of selectize.js |
44
45
  | 0.8.5 | Update to v0.8.5 of selectize.js |
45
46
  | 0.8.4 | Update to v0.8.4 of selectize.js |
46
47
  | 0.8.3 | Update to v0.8.3 of selectize.js |
47
48
  | 0.8.1 | Update to v0.8.1 of selectize.js |
48
- | 0.8.0 | Update to v0.8.0 of selectize.js |
49
49
 
50
50
  [older](CHANGELOG.md)
51
51
 
@@ -1,5 +1,5 @@
1
1
  module Selectize
2
2
  module Rails
3
- VERSION = "0.8.5"
3
+ VERSION = "0.9.0"
4
4
  end
5
5
  end
@@ -427,14 +427,16 @@
427
427
  var DIACRITICS = {
428
428
  'a': '[aÀÁÂÃÄÅàáâãäå]',
429
429
  'c': '[cÇçćĆčČ]',
430
- 'd': '[dđĐ]',
431
- 'e': '[eÈÉÊËèéêë]',
430
+ 'd': '[dđĐďĎ]',
431
+ 'e': '[eÈÉÊËèéêëěĚ]',
432
432
  'i': '[iÌÍÎÏìíîï]',
433
- 'n': '[nÑñ]',
433
+ 'n': '[nÑñňŇ]',
434
434
  'o': '[oÒÓÔÕÕÖØòóôõöø]',
435
+ 'r': '[rřŘ]',
435
436
  's': '[sŠš]',
436
- 'u': '[uÙÚÛÜùúûü]',
437
- 'y': '[yŸÿý]',
437
+ 't': '[tťŤ]',
438
+ 'u': '[uÙÚÛÜùúûüůŮ]',
439
+ 'y': '[yŸÿýÝ]',
438
440
  'z': '[zŽž]'
439
441
  };
440
442
 
@@ -583,7 +585,7 @@
583
585
  }));
584
586
 
585
587
  /**
586
- * selectize.js (v0.8.5)
588
+ * selectize.js (v0.9.0)
587
589
  * Copyright (c) 2013 Brian Reavis & contributors
588
590
  *
589
591
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -604,6 +606,8 @@
604
606
  (function(root, factory) {
605
607
  if (typeof define === 'function' && define.amd) {
606
608
  define('selectize', ['jquery','sifter','microplugin'], factory);
609
+ } else if (typeof exports === 'object') {
610
+ module.exports = factory(require('jquery'), require('sifter'), require('microplugin'));
607
611
  } else {
608
612
  root.Selectize = factory(root.jQuery, root.Sifter, root.MicroPlugin);
609
613
  }
@@ -689,8 +693,10 @@
689
693
  var KEY_ESC = 27;
690
694
  var KEY_LEFT = 37;
691
695
  var KEY_UP = 38;
696
+ var KEY_P = 80;
692
697
  var KEY_RIGHT = 39;
693
698
  var KEY_DOWN = 40;
699
+ var KEY_N = 78;
694
700
  var KEY_BACKSPACE = 8;
695
701
  var KEY_DELETE = 46;
696
702
  var KEY_SHIFT = 16;
@@ -701,6 +707,7 @@
701
707
  var TAG_SELECT = 1;
702
708
  var TAG_INPUT = 2;
703
709
 
710
+
704
711
  var isset = function(object) {
705
712
  return typeof object !== 'undefined';
706
713
  };
@@ -947,6 +954,10 @@
947
954
  * @returns {int}
948
955
  */
949
956
  var measureString = function(str, $parent) {
957
+ if (!str) {
958
+ return 0;
959
+ }
960
+
950
961
  var $test = $('<test>').css({
951
962
  position: 'absolute',
952
963
  top: -99999,
@@ -980,6 +991,8 @@
980
991
  * @param {object} $input
981
992
  */
982
993
  var autoGrow = function($input) {
994
+ var currentWidth = null;
995
+
983
996
  var update = function(e) {
984
997
  var value, keyCode, printable, placeholder, width;
985
998
  var shift, character, selection;
@@ -1022,7 +1035,8 @@
1022
1035
  }
1023
1036
 
1024
1037
  width = measureString(value, $input) + 4;
1025
- if (width !== $input.width()) {
1038
+ if (width !== currentWidth) {
1039
+ currentWidth = width;
1026
1040
  $input.width(width);
1027
1041
  $input.triggerHandler('resize');
1028
1042
  }
@@ -1144,7 +1158,7 @@
1144
1158
 
1145
1159
  $wrapper = $('<div>').addClass(settings.wrapperClass).addClass(classes).addClass(inputMode);
1146
1160
  $control = $('<div>').addClass(settings.inputClass).addClass('items').appendTo($wrapper);
1147
- $control_input = $('<input type="text" autocomplete="off">').appendTo($control).attr('tabindex', tab_index);
1161
+ $control_input = $('<input type="text" autocomplete="off" />').appendTo($control).attr('tabindex', tab_index);
1148
1162
  $dropdown_parent = $(settings.dropdownParent || $wrapper);
1149
1163
  $dropdown = $('<div>').addClass(settings.dropdownClass).addClass(classes).addClass(inputMode).hide().appendTo($dropdown_parent);
1150
1164
  $dropdown_content = $('<div>').addClass(settings.dropdownContentClass).appendTo($dropdown);
@@ -1264,7 +1278,7 @@
1264
1278
  self.trigger('initialize');
1265
1279
 
1266
1280
  // preload options
1267
- if (settings.preload) {
1281
+ if (settings.preload === true) {
1268
1282
  self.onSearchChange('');
1269
1283
  }
1270
1284
  },
@@ -1430,6 +1444,8 @@
1430
1444
  case KEY_ESC:
1431
1445
  self.close();
1432
1446
  return;
1447
+ case KEY_N:
1448
+ if (!e.ctrlKey) break;
1433
1449
  case KEY_DOWN:
1434
1450
  if (!self.isOpen && self.hasOptions) {
1435
1451
  self.open();
@@ -1440,6 +1456,8 @@
1440
1456
  }
1441
1457
  e.preventDefault();
1442
1458
  return;
1459
+ case KEY_P:
1460
+ if (!e.ctrlKey) break;
1443
1461
  case KEY_UP:
1444
1462
  if (self.$activeOption) {
1445
1463
  self.ignoreHover = true;
@@ -1461,6 +1479,9 @@
1461
1479
  self.advanceSelection(1, e);
1462
1480
  return;
1463
1481
  case KEY_TAB:
1482
+ if (self.isOpen && self.$activeOption) {
1483
+ self.onOptionSelect({currentTarget: self.$activeOption});
1484
+ }
1464
1485
  if (self.settings.create && self.createItem()) {
1465
1486
  e.preventDefault();
1466
1487
  }
@@ -1554,7 +1575,7 @@
1554
1575
  if (self.ignoreFocus) return;
1555
1576
 
1556
1577
  if (self.settings.create && self.settings.createOnBlur) {
1557
- self.createItem();
1578
+ self.createItem(false);
1558
1579
  }
1559
1580
 
1560
1581
  self.close();
@@ -1684,10 +1705,7 @@
1684
1705
  setValue: function(value) {
1685
1706
  debounce_events(this, ['change'], function() {
1686
1707
  this.clear();
1687
- var items = $.isArray(value) ? value : [value];
1688
- for (var i = 0, n = items.length; i < n; i++) {
1689
- this.addItem(items[i]);
1690
- }
1708
+ this.addItems(value);
1691
1709
  });
1692
1710
  },
1693
1711
 
@@ -2253,6 +2271,20 @@
2253
2271
  return this.getElementWithValue(value, this.$control.children());
2254
2272
  },
2255
2273
 
2274
+ /**
2275
+ * "Selects" multiple items at once. Adds them to the list
2276
+ * at the current caret position.
2277
+ *
2278
+ * @param {string} value
2279
+ */
2280
+ addItems: function(values) {
2281
+ var items = $.isArray(values) ? values : [values];
2282
+ for (var i = 0, n = items.length; i < n; i++) {
2283
+ this.isPending = (i < n - 1);
2284
+ this.addItem(items[i]);
2285
+ }
2286
+ },
2287
+
2256
2288
  /**
2257
2289
  * "Selects" an item. Adds it to the list
2258
2290
  * at the current caret position.
@@ -2261,10 +2293,10 @@
2261
2293
  */
2262
2294
  addItem: function(value) {
2263
2295
  debounce_events(this, ['change'], function() {
2264
- var $item, $option;
2296
+ var $item, $option, $options;
2265
2297
  var self = this;
2266
2298
  var inputMode = self.settings.mode;
2267
- var i, active, options, value_next;
2299
+ var i, active, value_next;
2268
2300
  value = hash_key(value);
2269
2301
 
2270
2302
  if (self.items.indexOf(value) !== -1) {
@@ -2282,18 +2314,20 @@
2282
2314
  self.refreshState();
2283
2315
 
2284
2316
  if (self.isSetup) {
2285
- options = self.$dropdown_content.find('[data-selectable]');
2286
-
2287
- // update menu / remove the option
2288
- $option = self.getOption(value);
2289
- value_next = self.getAdjacentOption($option, 1).attr('data-value');
2290
- self.refreshOptions(self.isFocused && inputMode !== 'single');
2291
- if (value_next) {
2292
- self.setActiveOption(self.getOption(value_next));
2317
+ $options = self.$dropdown_content.find('[data-selectable]');
2318
+
2319
+ // update menu / remove the option (if this is not one item being added as part of series)
2320
+ if (!this.isPending) {
2321
+ $option = self.getOption(value);
2322
+ value_next = self.getAdjacentOption($option, 1).attr('data-value');
2323
+ self.refreshOptions(self.isFocused && inputMode !== 'single');
2324
+ if (value_next) {
2325
+ self.setActiveOption(self.getOption(value_next));
2326
+ }
2293
2327
  }
2294
2328
 
2295
2329
  // hide the menu if the maximum number of items have been selected or no options are left
2296
- if (!options.length || (self.settings.maxItems !== null && self.items.length >= self.settings.maxItems)) {
2330
+ if (!$options.length || (self.settings.maxItems !== null && self.items.length >= self.settings.maxItems)) {
2297
2331
  self.close();
2298
2332
  } else {
2299
2333
  self.positionDropdown();
@@ -2355,13 +2389,17 @@
2355
2389
  *
2356
2390
  * @return {boolean}
2357
2391
  */
2358
- createItem: function() {
2392
+ createItem: function(triggerDropdown) {
2359
2393
  var self = this;
2360
2394
  var input = $.trim(self.$control_input.val() || '');
2361
2395
  var caret = self.caretPos;
2362
2396
  if (!input.length) return false;
2363
2397
  self.lock();
2364
2398
 
2399
+ if (typeof triggerDropdown === 'undefined') {
2400
+ triggerDropdown = true;
2401
+ }
2402
+
2365
2403
  var setup = (typeof self.settings.create === 'function') ? this.settings.create : function(input) {
2366
2404
  var data = {};
2367
2405
  data[self.settings.labelField] = input;
@@ -2380,7 +2418,7 @@
2380
2418
  self.addOption(data);
2381
2419
  self.setCaret(caret);
2382
2420
  self.addItem(value);
2383
- self.refreshOptions(self.settings.mode !== 'single');
2421
+ self.refreshOptions(triggerDropdown && self.settings.mode !== 'single');
2384
2422
  });
2385
2423
 
2386
2424
  var output = setup.apply(this, [input, create]);
@@ -3288,7 +3326,7 @@
3288
3326
  e.preventDefault();
3289
3327
  if (self.isLocked) return;
3290
3328
 
3291
- var $item = $(e.target).parent();
3329
+ var $item = $(e.currentTarget).parent();
3292
3330
  self.setActiveItem($item);
3293
3331
  if (self.deleteSelection()) {
3294
3332
  self.setCaret(self.items.length);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * selectize.bootstrap2.css (v0.8.5) - Bootstrap 2 Theme
2
+ * selectize.bootstrap2.css (v0.9.0) - Bootstrap 2 Theme
3
3
  * Copyright (c) 2013 Brian Reavis & contributors
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -13,387 +13,332 @@
13
13
  *
14
14
  * @author Brian Reavis <brian@thirdroute.com>
15
15
  */
16
-
17
16
  .selectize-control.plugin-drag_drop.multi > .selectize-input > div.ui-sortable-placeholder {
17
+ visibility: visible !important;
18
18
  background: #f2f2f2 !important;
19
19
  background: rgba(0, 0, 0, 0.06) !important;
20
20
  border: 0 none !important;
21
- visibility: visible !important;
22
21
  -webkit-box-shadow: inset 0 0 12px 4px #ffffff;
23
- box-shadow: inset 0 0 12px 4px #ffffff;
22
+ box-shadow: inset 0 0 12px 4px #ffffff;
24
23
  }
25
-
26
24
  .selectize-control.plugin-drag_drop .ui-sortable-placeholder::after {
27
25
  content: '!';
28
26
  visibility: hidden;
29
27
  }
30
-
31
28
  .selectize-control.plugin-drag_drop .ui-sortable-helper {
32
29
  -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
33
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
30
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
34
31
  }
35
-
36
32
  .selectize-dropdown-header {
37
33
  position: relative;
38
34
  padding: 3px 10px;
39
- background: #f8f8f8;
40
35
  border-bottom: 1px solid #d0d0d0;
36
+ background: #f8f8f8;
41
37
  -webkit-border-radius: 4px 4px 0 0;
42
- -moz-border-radius: 4px 4px 0 0;
43
- border-radius: 4px 4px 0 0;
38
+ -moz-border-radius: 4px 4px 0 0;
39
+ border-radius: 4px 4px 0 0;
44
40
  }
45
-
46
41
  .selectize-dropdown-header-close {
47
42
  position: absolute;
48
- top: 50%;
49
43
  right: 10px;
50
- margin-top: -12px;
51
- font-size: 20px !important;
52
- line-height: 20px;
44
+ top: 50%;
53
45
  color: #333333;
54
46
  opacity: 0.4;
47
+ margin-top: -12px;
48
+ line-height: 20px;
49
+ font-size: 20px !important;
55
50
  }
56
-
57
51
  .selectize-dropdown-header-close:hover {
58
52
  color: #000000;
59
53
  }
60
-
61
54
  .selectize-dropdown.plugin-optgroup_columns .optgroup {
62
- float: left;
63
- border-top: 0 none;
64
55
  border-right: 1px solid #f2f2f2;
56
+ border-top: 0 none;
57
+ float: left;
65
58
  -webkit-box-sizing: border-box;
66
- -moz-box-sizing: border-box;
67
- box-sizing: border-box;
59
+ -moz-box-sizing: border-box;
60
+ box-sizing: border-box;
68
61
  }
69
-
70
62
  .selectize-dropdown.plugin-optgroup_columns .optgroup:last-child {
71
63
  border-right: 0 none;
72
64
  }
73
-
74
65
  .selectize-dropdown.plugin-optgroup_columns .optgroup:before {
75
66
  display: none;
76
67
  }
77
-
78
68
  .selectize-dropdown.plugin-optgroup_columns .optgroup-header {
79
69
  border-top: 0 none;
80
70
  }
81
-
82
71
  .selectize-control.plugin-remove_button [data-value] {
83
72
  position: relative;
84
73
  padding-right: 24px !important;
85
74
  }
86
-
87
75
  .selectize-control.plugin-remove_button [data-value] .remove {
88
76
  position: absolute;
89
77
  top: 0;
90
78
  right: 0;
91
79
  bottom: 0;
92
- display: inline-block;
93
80
  width: 17px;
94
- padding: 1px 0 0 0;
95
- font-size: 12px;
81
+ text-align: center;
96
82
  font-weight: bold;
83
+ font-size: 12px;
97
84
  color: inherit;
98
- text-align: center;
99
85
  text-decoration: none;
100
86
  vertical-align: middle;
87
+ display: inline-block;
88
+ padding: 1px 0 0 0;
101
89
  border-left: 1px solid #cccccc;
102
90
  -webkit-border-radius: 0 2px 2px 0;
103
- -moz-border-radius: 0 2px 2px 0;
104
- border-radius: 0 2px 2px 0;
91
+ -moz-border-radius: 0 2px 2px 0;
92
+ border-radius: 0 2px 2px 0;
105
93
  -webkit-box-sizing: border-box;
106
- -moz-box-sizing: border-box;
107
- box-sizing: border-box;
94
+ -moz-box-sizing: border-box;
95
+ box-sizing: border-box;
108
96
  }
109
-
110
97
  .selectize-control.plugin-remove_button [data-value] .remove:hover {
111
98
  background: rgba(0, 0, 0, 0.05);
112
99
  }
113
-
114
100
  .selectize-control.plugin-remove_button [data-value].active .remove {
115
101
  border-left-color: #0077b3;
116
102
  }
117
-
118
103
  .selectize-control.plugin-remove_button .disabled [data-value] .remove:hover {
119
104
  background: none;
120
105
  }
121
-
122
106
  .selectize-control.plugin-remove_button .disabled [data-value] .remove {
123
107
  border-left-color: #e0e0e0;
124
108
  }
125
-
126
109
  .selectize-control {
127
110
  position: relative;
128
111
  }
129
-
130
112
  .selectize-dropdown,
131
113
  .selectize-input,
132
114
  .selectize-input input {
115
+ color: #333333;
133
116
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
134
117
  font-size: 14px;
135
- -webkit-font-smoothing: inherit;
136
118
  line-height: 20px;
137
- color: #333333;
119
+ -webkit-font-smoothing: inherit;
138
120
  }
139
-
140
121
  .selectize-input,
141
122
  .selectize-control.single .selectize-input.input-active {
142
- display: inline-block;
143
- cursor: text;
144
123
  background: #ffffff;
124
+ cursor: text;
125
+ display: inline-block;
145
126
  }
146
-
147
127
  .selectize-input {
148
- position: relative;
149
- z-index: 1;
128
+ border: 1px solid #d0d0d0;
129
+ padding: 7px 10px;
150
130
  display: inline-block;
151
131
  width: 100%;
152
- padding: 7px 10px;
153
132
  overflow: hidden;
154
- border: 1px solid #d0d0d0;
155
- -webkit-border-radius: 4px;
156
- -moz-border-radius: 4px;
157
- border-radius: 4px;
158
- -webkit-box-shadow: none;
159
- box-shadow: none;
133
+ position: relative;
134
+ z-index: 1;
160
135
  -webkit-box-sizing: border-box;
161
- -moz-box-sizing: border-box;
162
- box-sizing: border-box;
136
+ -moz-box-sizing: border-box;
137
+ box-sizing: border-box;
138
+ -webkit-box-shadow: none;
139
+ box-shadow: none;
140
+ -webkit-border-radius: 4px;
141
+ -moz-border-radius: 4px;
142
+ border-radius: 4px;
163
143
  }
164
-
165
144
  .selectize-control.multi .selectize-input.has-items {
166
145
  padding: 5px 10px 2px;
167
146
  }
168
-
169
147
  .selectize-input.full {
170
148
  background-color: #ffffff;
171
149
  }
172
-
173
150
  .selectize-input.disabled,
174
151
  .selectize-input.disabled * {
175
152
  cursor: default !important;
176
153
  }
177
-
178
154
  .selectize-input.focus {
179
155
  -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
180
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
156
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
181
157
  }
182
-
183
158
  .selectize-input.dropdown-active {
184
159
  -webkit-border-radius: 4px 4px 0 0;
185
- -moz-border-radius: 4px 4px 0 0;
186
- border-radius: 4px 4px 0 0;
160
+ -moz-border-radius: 4px 4px 0 0;
161
+ border-radius: 4px 4px 0 0;
187
162
  }
188
-
189
163
  .selectize-input > * {
164
+ vertical-align: baseline;
190
165
  display: -moz-inline-stack;
191
166
  display: inline-block;
192
- *display: inline;
193
- vertical-align: baseline;
194
167
  zoom: 1;
168
+ *display: inline;
195
169
  }
196
-
197
170
  .selectize-control.multi .selectize-input > div {
198
- padding: 1px 3px;
199
- margin: 0 3px 3px 0;
200
- color: #333333;
201
171
  cursor: pointer;
172
+ margin: 0 3px 3px 0;
173
+ padding: 1px 3px;
202
174
  background: #e6e6e6;
175
+ color: #333333;
203
176
  border: 1px solid #cccccc;
204
177
  }
205
-
206
178
  .selectize-control.multi .selectize-input > div.active {
207
- color: #ffffff;
208
179
  background: #0088cc;
180
+ color: #ffffff;
209
181
  border: 1px solid #0077b3;
210
182
  }
211
-
212
183
  .selectize-control.multi .selectize-input.disabled > div,
213
184
  .selectize-control.multi .selectize-input.disabled > div.active {
214
185
  color: #474747;
215
186
  background: #fafafa;
216
187
  border: 1px solid #e0e0e0;
217
188
  }
218
-
219
189
  .selectize-input > input {
220
- max-width: 100% !important;
221
- max-height: none !important;
222
- min-height: 0 !important;
223
190
  padding: 0 !important;
191
+ min-height: 0 !important;
192
+ max-height: none !important;
193
+ max-width: 100% !important;
224
194
  margin: 0 !important;
225
- line-height: inherit !important;
226
195
  text-indent: 0 !important;
227
- background: none !important;
228
196
  border: 0 none !important;
229
- -webkit-box-shadow: none !important;
230
- box-shadow: none !important;
197
+ background: none !important;
198
+ line-height: inherit !important;
231
199
  -webkit-user-select: auto !important;
200
+ -webkit-box-shadow: none !important;
201
+ box-shadow: none !important;
232
202
  }
233
-
234
203
  .selectize-input > input:focus {
235
204
  outline: none !important;
236
205
  }
237
-
238
206
  .selectize-input::after {
207
+ content: ' ';
239
208
  display: block;
240
209
  clear: left;
241
- content: ' ';
242
210
  }
243
-
244
211
  .selectize-input.dropdown-active::before {
212
+ content: ' ';
213
+ display: block;
245
214
  position: absolute;
246
- right: 0;
215
+ background: #e5e5e5;
216
+ height: 1px;
247
217
  bottom: 0;
248
218
  left: 0;
249
- display: block;
250
- height: 1px;
251
- background: #e5e5e5;
252
- content: ' ';
219
+ right: 0;
253
220
  }
254
-
255
221
  .selectize-dropdown {
256
222
  position: absolute;
257
223
  z-index: 10;
258
- margin: -1px 0 0 0;
259
- background: #ffffff;
260
224
  border: 1px solid #d0d0d0;
225
+ background: #ffffff;
226
+ margin: -1px 0 0 0;
261
227
  border-top: 0 none;
262
- -webkit-border-radius: 0 0 4px 4px;
263
- -moz-border-radius: 0 0 4px 4px;
264
- border-radius: 0 0 4px 4px;
265
- -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
266
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
267
228
  -webkit-box-sizing: border-box;
268
- -moz-box-sizing: border-box;
269
- box-sizing: border-box;
229
+ -moz-box-sizing: border-box;
230
+ box-sizing: border-box;
231
+ -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
232
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
233
+ -webkit-border-radius: 0 0 4px 4px;
234
+ -moz-border-radius: 0 0 4px 4px;
235
+ border-radius: 0 0 4px 4px;
270
236
  }
271
-
272
237
  .selectize-dropdown [data-selectable] {
273
- overflow: hidden;
274
238
  cursor: pointer;
239
+ overflow: hidden;
275
240
  }
276
-
277
241
  .selectize-dropdown [data-selectable] .highlight {
278
242
  background: rgba(255, 237, 40, 0.4);
279
243
  -webkit-border-radius: 1px;
280
- -moz-border-radius: 1px;
281
- border-radius: 1px;
244
+ -moz-border-radius: 1px;
245
+ border-radius: 1px;
282
246
  }
283
-
284
247
  .selectize-dropdown [data-selectable],
285
248
  .selectize-dropdown .optgroup-header {
286
249
  padding: 3px 10px;
287
250
  }
288
-
289
251
  .selectize-dropdown .optgroup:first-child .optgroup-header {
290
252
  border-top: 0 none;
291
253
  }
292
-
293
254
  .selectize-dropdown .optgroup-header {
294
255
  color: #999999;
295
- cursor: default;
296
256
  background: #ffffff;
257
+ cursor: default;
297
258
  }
298
-
299
259
  .selectize-dropdown .active {
300
- color: #ffffff;
301
260
  background-color: #0088cc;
261
+ color: #ffffff;
302
262
  }
303
-
304
263
  .selectize-dropdown .active.create {
305
264
  color: #ffffff;
306
265
  }
307
-
308
266
  .selectize-dropdown .create {
309
267
  color: rgba(51, 51, 51, 0.5);
310
268
  }
311
-
312
269
  .selectize-dropdown-content {
313
- max-height: 200px;
314
- overflow-x: hidden;
315
270
  overflow-y: auto;
271
+ overflow-x: hidden;
272
+ max-height: 200px;
316
273
  }
317
-
318
274
  .selectize-control.single .selectize-input,
319
275
  .selectize-control.single .selectize-input input {
320
276
  cursor: pointer;
321
277
  }
322
-
323
278
  .selectize-control.single .selectize-input.input-active,
324
279
  .selectize-control.single .selectize-input.input-active input {
325
280
  cursor: text;
326
281
  }
327
-
328
282
  .selectize-control.single .selectize-input:after {
283
+ content: ' ';
284
+ display: block;
329
285
  position: absolute;
330
286
  top: 50%;
331
287
  right: 15px;
332
- display: block;
288
+ margin-top: -3px;
333
289
  width: 0;
334
290
  height: 0;
335
- margin-top: -3px;
336
- border-color: #000000 transparent transparent transparent;
337
291
  border-style: solid;
338
292
  border-width: 5px 5px 0 5px;
339
- content: ' ';
293
+ border-color: #000000 transparent transparent transparent;
340
294
  }
341
-
342
295
  .selectize-control.single .selectize-input.dropdown-active:after {
343
296
  margin-top: -4px;
344
- border-color: transparent transparent #000000 transparent;
345
297
  border-width: 0 5px 5px 5px;
298
+ border-color: transparent transparent #000000 transparent;
346
299
  }
347
-
348
300
  .selectize-control.rtl.single .selectize-input:after {
349
- right: auto;
350
301
  left: 15px;
302
+ right: auto;
351
303
  }
352
-
353
304
  .selectize-control.rtl .selectize-input > input {
354
305
  margin: 0 4px 0 -2px !important;
355
306
  }
356
-
357
307
  .selectize-control .selectize-input.disabled {
358
- background-color: #ffffff;
359
308
  opacity: 0.5;
309
+ background-color: #ffffff;
360
310
  }
361
-
362
311
  .selectize-dropdown {
363
- z-index: 1000;
364
312
  margin: 2px 0 0 0;
313
+ z-index: 1000;
365
314
  border: 1px solid rgba(0, 0, 0, 0.2);
366
315
  border-radius: 4px;
367
316
  -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
368
- -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
369
- box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
317
+ -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
318
+ box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
370
319
  }
371
-
372
320
  .selectize-dropdown .optgroup-header {
373
321
  font-size: 11px;
374
322
  font-weight: bold;
375
323
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
376
324
  text-transform: uppercase;
377
325
  }
378
-
379
326
  .selectize-dropdown .optgroup:first-child:before {
380
327
  display: none;
381
328
  }
382
-
383
329
  .selectize-dropdown .optgroup:before {
330
+ content: ' ';
384
331
  display: block;
385
332
  *width: 100%;
386
333
  height: 1px;
387
334
  margin: 9px 1px;
388
335
  *margin: -5px 0 5px;
389
- margin-right: -10px;
390
- margin-left: -10px;
391
336
  overflow: hidden;
392
337
  background-color: #e5e5e5;
393
338
  border-bottom: 1px solid #ffffff;
394
- content: ' ';
339
+ margin-left: -10px;
340
+ margin-right: -10px;
395
341
  }
396
-
397
342
  .selectize-dropdown [data-selectable].active {
398
343
  background-color: #0081c2;
399
344
  background-image: -moz-linear-gradient(top, #0088cc, #0077b3);
@@ -404,32 +349,26 @@
404
349
  background-repeat: repeat-x;
405
350
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0);
406
351
  }
407
-
408
352
  .selectize-dropdown-content {
409
353
  padding: 5px 0;
410
354
  }
411
-
412
355
  .selectize-dropdown-header {
413
356
  padding: 6px 10px;
414
357
  }
415
-
416
358
  .selectize-input {
417
- -webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
418
- -moz-transition: border linear 0.2s, box-shadow linear 0.2s;
419
- -o-transition: border linear 0.2s, box-shadow linear 0.2s;
420
- transition: border linear 0.2s, box-shadow linear 0.2s;
359
+ -webkit-transition: border linear .2s, box-shadow linear .2s;
360
+ -moz-transition: border linear .2s, box-shadow linear .2s;
361
+ -o-transition: border linear .2s, box-shadow linear .2s;
362
+ transition: border linear .2s, box-shadow linear .2s;
421
363
  }
422
-
423
364
  .selectize-input.dropdown-active {
424
365
  -webkit-border-radius: 4px;
425
- -moz-border-radius: 4px;
426
- border-radius: 4px;
366
+ -moz-border-radius: 4px;
367
+ border-radius: 4px;
427
368
  }
428
-
429
369
  .selectize-input.dropdown-active::before {
430
370
  display: none;
431
371
  }
432
-
433
372
  .selectize-input.input-active,
434
373
  .selectize-input.input-active:hover,
435
374
  .selectize-control.multi .selectize-input.focus {
@@ -437,31 +376,30 @@
437
376
  border-color: rgba(82, 168, 236, 0.8) !important;
438
377
  outline: 0 !important;
439
378
  outline: thin dotted \9 !important;
440
- -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6) !important;
441
- -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6) !important;
442
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6) !important;
379
+ -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6) !important;
380
+ -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6) !important;
381
+ box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6) !important;
443
382
  }
444
-
445
383
  .selectize-control.single .selectize-input {
446
384
  color: #333333;
447
385
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
448
386
  background-color: #f5f5f5;
449
- *background-color: #e6e6e6;
450
387
  background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
451
388
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
452
389
  background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
453
390
  background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
454
391
  background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
455
392
  background-repeat: repeat-x;
393
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
456
394
  border-color: #e6e6e6 #e6e6e6 #bfbfbf;
457
395
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
458
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
459
- filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
460
- -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
461
- -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
462
- box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
396
+ *background-color: #e6e6e6;
397
+ /* Darken IE7 buttons by default so they stand out more given they won't have borders */
398
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
399
+ -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
400
+ -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
401
+ box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
463
402
  }
464
-
465
403
  .selectize-control.single .selectize-input:hover,
466
404
  .selectize-control.single .selectize-input:focus,
467
405
  .selectize-control.single .selectize-input:active,
@@ -472,79 +410,72 @@
472
410
  background-color: #e6e6e6;
473
411
  *background-color: #d9d9d9;
474
412
  }
475
-
476
413
  .selectize-control.single .selectize-input:active,
477
414
  .selectize-control.single .selectize-input.active {
478
415
  background-color: #cccccc \9;
479
416
  }
480
-
481
417
  .selectize-control.single .selectize-input:hover {
482
418
  color: #333333;
483
419
  text-decoration: none;
484
420
  background-position: 0 -15px;
485
421
  -webkit-transition: background-position 0.1s linear;
486
- -moz-transition: background-position 0.1s linear;
487
- -o-transition: background-position 0.1s linear;
488
- transition: background-position 0.1s linear;
422
+ -moz-transition: background-position 0.1s linear;
423
+ -o-transition: background-position 0.1s linear;
424
+ transition: background-position 0.1s linear;
489
425
  }
490
-
491
426
  .selectize-control.single .selectize-input.disabled {
492
427
  background: #e6e6e6 !important;
493
428
  -webkit-box-shadow: none;
494
- -moz-box-shadow: none;
495
- box-shadow: none;
429
+ -moz-box-shadow: none;
430
+ box-shadow: none;
496
431
  }
497
-
498
432
  .selectize-control.multi .selectize-input {
499
433
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
500
- -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
501
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
434
+ -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
435
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
502
436
  }
503
-
504
437
  .selectize-control.multi .selectize-input.has-items {
505
- padding-right: 7px;
506
438
  padding-left: 7px;
439
+ padding-right: 7px;
507
440
  }
508
-
509
441
  .selectize-control.multi .selectize-input > div {
510
442
  color: #333333;
511
443
  text-shadow: none;
512
444
  background-color: #f5f5f5;
513
- *background-color: #e6e6e6;
514
445
  background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
515
446
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
516
447
  background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
517
448
  background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
518
449
  background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
519
450
  background-repeat: repeat-x;
520
- border: 1px solid #cccccc;
451
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
521
452
  border-color: #e6e6e6 #e6e6e6 #bfbfbf;
522
453
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
454
+ *background-color: #e6e6e6;
455
+ border: 1px solid #cccccc;
523
456
  -webkit-border-radius: 4px;
524
- -moz-border-radius: 4px;
525
- border-radius: 4px;
526
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
527
- -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
528
- -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
529
- box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
457
+ -moz-border-radius: 4px;
458
+ border-radius: 4px;
459
+ -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
460
+ -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
461
+ box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
530
462
  }
531
-
532
463
  .selectize-control.multi .selectize-input > div.active {
464
+ -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
465
+ -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
466
+ box-shadow: 0 1px 2px rgba(0,0,0,.05);
533
467
  color: #ffffff;
534
468
  text-shadow: none;
535
469
  background-color: #0081c2;
536
- *background-color: #0088cc;
537
470
  background-image: -moz-linear-gradient(top, #0088cc, #0077b3);
538
471
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));
539
472
  background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);
540
473
  background-image: -o-linear-gradient(top, #0088cc, #0077b3);
541
474
  background-image: linear-gradient(to bottom, #0088cc, #0077b3);
542
475
  background-repeat: repeat-x;
543
- border: 1px solid #0088cc;
476
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0);
544
477
  border-color: #0077b3 #0077b3 #004466;
545
478
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
546
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0);
547
- -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
548
- -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
549
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
550
- }
479
+ *background-color: #0088cc;
480
+ border: 1px solid #0088cc;
481
+ }