selectize-rails 0.6.14 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,531 @@
1
+ /**
2
+ * selectize.bootstrap2.css (v0.7.0) - Bootstrap 2 Theme
3
+ * Copyright (c) 2013 Brian Reavis & contributors
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
6
+ * file except in compliance with the License. You may obtain a copy of the License at:
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software distributed under
10
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
+ * ANY KIND, either express or implied. See the License for the specific language
12
+ * governing permissions and limitations under the License.
13
+ *
14
+ * @author Brian Reavis <brian@thirdroute.com>
15
+ */
16
+
17
+ .selectize-control.plugin-drag_drop.multi > .selectize-input > div.ui-sortable-placeholder {
18
+ background: #f2f2f2 !important;
19
+ background: rgba(0, 0, 0, 0.06) !important;
20
+ border: 0 none !important;
21
+ visibility: visible !important;
22
+ -webkit-box-shadow: inset 0 0 12px 4px #ffffff;
23
+ box-shadow: inset 0 0 12px 4px #ffffff;
24
+ }
25
+
26
+ .selectize-control.plugin-drag_drop .ui-sortable-placeholder::after {
27
+ content: '!';
28
+ visibility: hidden;
29
+ }
30
+
31
+ .selectize-control.plugin-drag_drop .ui-sortable-helper {
32
+ -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
33
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
34
+ }
35
+
36
+ .selectize-dropdown-header {
37
+ position: relative;
38
+ padding: 3px 10px;
39
+ background: #f8f8f8;
40
+ border-bottom: 1px solid #d0d0d0;
41
+ -webkit-border-radius: 4px 4px 0 0;
42
+ -moz-border-radius: 4px 4px 0 0;
43
+ border-radius: 4px 4px 0 0;
44
+ }
45
+
46
+ .selectize-dropdown-header-close {
47
+ position: absolute;
48
+ top: 50%;
49
+ right: 10px;
50
+ margin-top: -12px;
51
+ font-size: 20px !important;
52
+ line-height: 20px;
53
+ color: #333333;
54
+ opacity: 0.4;
55
+ }
56
+
57
+ .selectize-dropdown-header-close:hover {
58
+ color: #000000;
59
+ }
60
+
61
+ .selectize-dropdown.plugin-optgroup_columns .optgroup {
62
+ float: left;
63
+ border-top: 0 none;
64
+ border-right: 1px solid #f2f2f2;
65
+ -webkit-box-sizing: border-box;
66
+ -moz-box-sizing: border-box;
67
+ box-sizing: border-box;
68
+ }
69
+
70
+ .selectize-dropdown.plugin-optgroup_columns .optgroup:last-child {
71
+ border-right: 0 none;
72
+ }
73
+
74
+ .selectize-dropdown.plugin-optgroup_columns .optgroup:before {
75
+ display: none;
76
+ }
77
+
78
+ .selectize-dropdown.plugin-optgroup_columns .optgroup-header {
79
+ border-top: 0 none;
80
+ }
81
+
82
+ .selectize-control.plugin-remove_button .item {
83
+ position: relative;
84
+ padding-right: 24px !important;
85
+ }
86
+
87
+ .selectize-control.plugin-remove_button .item .remove {
88
+ position: absolute;
89
+ top: 0;
90
+ right: 0;
91
+ bottom: 0;
92
+ display: inline-block;
93
+ width: 17px;
94
+ padding: 1px 0 0 0;
95
+ font-size: 12px;
96
+ font-weight: bold;
97
+ color: inherit;
98
+ text-align: center;
99
+ vertical-align: middle;
100
+ border-left: 1px solid #cccccc;
101
+ -webkit-border-radius: 0 2px 2px 0;
102
+ -moz-border-radius: 0 2px 2px 0;
103
+ border-radius: 0 2px 2px 0;
104
+ -webkit-box-sizing: border-box;
105
+ -moz-box-sizing: border-box;
106
+ box-sizing: border-box;
107
+ }
108
+
109
+ .selectize-control.plugin-remove_button .item .remove:hover {
110
+ background: rgba(0, 0, 0, 0.05);
111
+ }
112
+
113
+ .selectize-control.plugin-remove_button .item.active .remove {
114
+ border-left-color: #0077b3;
115
+ }
116
+
117
+ .selectize-control {
118
+ position: relative;
119
+ }
120
+
121
+ .selectize-dropdown,
122
+ .selectize-input,
123
+ .selectize-input input {
124
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
125
+ font-size: 14px;
126
+ -webkit-font-smoothing: inherit;
127
+ line-height: 20px;
128
+ color: #333333;
129
+ }
130
+
131
+ .selectize-input,
132
+ .selectize-control.single .selectize-input.focus {
133
+ display: inline-block;
134
+ cursor: text;
135
+ background: #ffffff;
136
+ }
137
+
138
+ .selectize-input {
139
+ position: relative;
140
+ z-index: 1;
141
+ display: inline-block;
142
+ width: 100%;
143
+ padding: 7px 10px;
144
+ overflow: hidden;
145
+ border: 1px solid #d0d0d0;
146
+ -webkit-border-radius: 4px;
147
+ -moz-border-radius: 4px;
148
+ border-radius: 4px;
149
+ -webkit-box-shadow: none;
150
+ box-shadow: none;
151
+ -webkit-box-sizing: border-box;
152
+ -moz-box-sizing: border-box;
153
+ box-sizing: border-box;
154
+ }
155
+
156
+ .selectize-control.multi .selectize-input.has-items {
157
+ padding: 5px 10px 2px;
158
+ }
159
+
160
+ .selectize-input.full {
161
+ background-color: #ffffff;
162
+ }
163
+
164
+ .selectize-input.disabled,
165
+ .selectize-input.disabled * {
166
+ cursor: default !important;
167
+ }
168
+
169
+ .selectize-input.focus {
170
+ -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
171
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
172
+ }
173
+
174
+ .selectize-input.dropdown-active {
175
+ -webkit-border-radius: 4px 4px 0 0;
176
+ -moz-border-radius: 4px 4px 0 0;
177
+ border-radius: 4px 4px 0 0;
178
+ }
179
+
180
+ .selectize-input > * {
181
+ display: -moz-inline-stack;
182
+ display: inline-block;
183
+ *display: inline;
184
+ vertical-align: baseline;
185
+ zoom: 1;
186
+ }
187
+
188
+ .selectize-control.multi .selectize-input > div {
189
+ padding: 1px 3px;
190
+ margin: 0 3px 3px 0;
191
+ color: #333333;
192
+ cursor: pointer;
193
+ background: #e6e6e6;
194
+ border: 1px solid #cccccc;
195
+ }
196
+
197
+ .selectize-control.multi .selectize-input > div.active {
198
+ color: #ffffff;
199
+ background: #0088cc;
200
+ border: 1px solid #0077b3;
201
+ }
202
+
203
+ .selectize-control.multi .selectize-input.disabled > div,
204
+ .selectize-control.multi .selectize-input.disabled > div.active {
205
+ color: #474747;
206
+ background: #fafafa;
207
+ border: 1px solid #e0e0e0;
208
+ }
209
+
210
+ .selectize-input > input {
211
+ max-width: 100% !important;
212
+ max-height: none !important;
213
+ min-height: 0 !important;
214
+ padding: 0 !important;
215
+ margin: 0 !important;
216
+ line-height: inherit !important;
217
+ text-indent: 0 !important;
218
+ background: none !important;
219
+ border: 0 none !important;
220
+ -webkit-box-shadow: none !important;
221
+ box-shadow: none !important;
222
+ -webkit-user-select: auto !important;
223
+ }
224
+
225
+ .selectize-input > input:focus {
226
+ outline: none !important;
227
+ }
228
+
229
+ .selectize-input::after {
230
+ display: block;
231
+ clear: left;
232
+ content: ' ';
233
+ }
234
+
235
+ .selectize-input.dropdown-active::before {
236
+ position: absolute;
237
+ right: 0;
238
+ bottom: 0;
239
+ left: 0;
240
+ display: block;
241
+ height: 1px;
242
+ background: #e5e5e5;
243
+ content: ' ';
244
+ }
245
+
246
+ .selectize-dropdown {
247
+ position: absolute;
248
+ z-index: 2;
249
+ margin-top: -1px;
250
+ background: #ffffff;
251
+ border: 1px solid #d0d0d0;
252
+ border-top: 0 none;
253
+ -webkit-border-radius: 0 0 4px 4px;
254
+ -moz-border-radius: 0 0 4px 4px;
255
+ border-radius: 0 0 4px 4px;
256
+ -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
257
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
258
+ -webkit-box-sizing: border-box;
259
+ -moz-box-sizing: border-box;
260
+ box-sizing: border-box;
261
+ }
262
+
263
+ .selectize-dropdown [data-selectable] {
264
+ overflow: hidden;
265
+ cursor: pointer;
266
+ }
267
+
268
+ .selectize-dropdown [data-selectable] .highlight {
269
+ background: rgba(255, 237, 40, 0.4);
270
+ -webkit-border-radius: 1px;
271
+ -moz-border-radius: 1px;
272
+ border-radius: 1px;
273
+ }
274
+
275
+ .selectize-dropdown [data-selectable],
276
+ .selectize-dropdown .optgroup-header {
277
+ padding: 3px 10px;
278
+ }
279
+
280
+ .selectize-dropdown .optgroup:first-child .optgroup-header {
281
+ border-top: 0 none;
282
+ }
283
+
284
+ .selectize-dropdown .optgroup-header {
285
+ color: #999999;
286
+ cursor: default;
287
+ background: #ffffff;
288
+ }
289
+
290
+ .selectize-dropdown .active {
291
+ color: #ffffff;
292
+ background-color: #0088cc;
293
+ }
294
+
295
+ .selectize-dropdown .active.create {
296
+ color: #ffffff;
297
+ }
298
+
299
+ .selectize-dropdown .create {
300
+ color: rgba(51, 51, 51, 0.5);
301
+ }
302
+
303
+ .selectize-dropdown-content {
304
+ max-height: 200px;
305
+ overflow-x: hidden;
306
+ overflow-y: auto;
307
+ }
308
+
309
+ .selectize-control.single .selectize-input,
310
+ .selectize-control.single .selectize-input input {
311
+ cursor: pointer;
312
+ }
313
+
314
+ .selectize-control.single .selectize-input.focus,
315
+ .selectize-control.single .selectize-input.focus input {
316
+ cursor: text;
317
+ }
318
+
319
+ .selectize-control.single .selectize-input:after {
320
+ position: absolute;
321
+ top: 50%;
322
+ right: 15px;
323
+ display: block;
324
+ width: 0;
325
+ height: 0;
326
+ margin-top: -3px;
327
+ border-color: #000000 transparent transparent transparent;
328
+ border-style: solid;
329
+ border-width: 5px 5px 0 5px;
330
+ content: ' ';
331
+ }
332
+
333
+ .selectize-control.single .selectize-input.dropdown-active:after {
334
+ margin-top: -4px;
335
+ border-color: transparent transparent #000000 transparent;
336
+ border-width: 0 5px 5px 5px;
337
+ }
338
+
339
+ .selectize-control .selectize-input.disabled {
340
+ background-color: #ffffff;
341
+ opacity: 0.5;
342
+ }
343
+
344
+ .selectize-dropdown {
345
+ z-index: 1000;
346
+ margin: 2px 0 0 0;
347
+ border: 1px solid rgba(0, 0, 0, 0.2);
348
+ border-radius: 4px;
349
+ -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
350
+ -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
351
+ box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
352
+ }
353
+
354
+ .selectize-dropdown .optgroup-header {
355
+ font-size: 11px;
356
+ font-weight: bold;
357
+ text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
358
+ text-transform: uppercase;
359
+ }
360
+
361
+ .selectize-dropdown .optgroup:first-child:before {
362
+ display: none;
363
+ }
364
+
365
+ .selectize-dropdown .optgroup:before {
366
+ display: block;
367
+ *width: 100%;
368
+ height: 1px;
369
+ margin: 9px 1px;
370
+ *margin: -5px 0 5px;
371
+ margin-right: -10px;
372
+ margin-left: -10px;
373
+ overflow: hidden;
374
+ background-color: #e5e5e5;
375
+ border-bottom: 1px solid #ffffff;
376
+ content: ' ';
377
+ }
378
+
379
+ .selectize-dropdown [data-selectable].active {
380
+ background-color: #0081c2;
381
+ background-image: -moz-linear-gradient(top, #0088cc, #0077b3);
382
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));
383
+ background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);
384
+ background-image: -o-linear-gradient(top, #0088cc, #0077b3);
385
+ background-image: linear-gradient(to bottom, #0088cc, #0077b3);
386
+ background-repeat: repeat-x;
387
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0);
388
+ }
389
+
390
+ .selectize-dropdown-content {
391
+ padding: 5px 0;
392
+ }
393
+
394
+ .selectize-dropdown-header {
395
+ padding: 6px 10px;
396
+ }
397
+
398
+ .selectize-input {
399
+ -webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
400
+ -moz-transition: border linear 0.2s, box-shadow linear 0.2s;
401
+ -o-transition: border linear 0.2s, box-shadow linear 0.2s;
402
+ transition: border linear 0.2s, box-shadow linear 0.2s;
403
+ }
404
+
405
+ .selectize-input.dropdown-active {
406
+ -webkit-border-radius: 4px;
407
+ -moz-border-radius: 4px;
408
+ border-radius: 4px;
409
+ }
410
+
411
+ .selectize-input.dropdown-active::before {
412
+ display: none;
413
+ }
414
+
415
+ .selectize-input.focus,
416
+ .selectize-input.focus:hover {
417
+ background: #ffffff !important;
418
+ border-color: rgba(82, 168, 236, 0.8) !important;
419
+ outline: 0 !important;
420
+ outline: thin dotted \9 !important;
421
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6) !important;
422
+ -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6) !important;
423
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6) !important;
424
+ }
425
+
426
+ .selectize-control.single .selectize-input {
427
+ color: #333333;
428
+ text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
429
+ background-color: #f5f5f5;
430
+ *background-color: #e6e6e6;
431
+ background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
432
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
433
+ background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
434
+ background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
435
+ background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
436
+ background-repeat: repeat-x;
437
+ border-color: #e6e6e6 #e6e6e6 #bfbfbf;
438
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
439
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
440
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
441
+ -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
442
+ -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
443
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
444
+ }
445
+
446
+ .selectize-control.single .selectize-input:hover,
447
+ .selectize-control.single .selectize-input:focus,
448
+ .selectize-control.single .selectize-input:active,
449
+ .selectize-control.single .selectize-input.active,
450
+ .selectize-control.single .selectize-input.disabled,
451
+ .selectize-control.single .selectize-input[disabled] {
452
+ color: #333333;
453
+ background-color: #e6e6e6;
454
+ *background-color: #d9d9d9;
455
+ }
456
+
457
+ .selectize-control.single .selectize-input:active,
458
+ .selectize-control.single .selectize-input.active {
459
+ background-color: #cccccc \9;
460
+ }
461
+
462
+ .selectize-control.single .selectize-input:hover {
463
+ color: #333333;
464
+ text-decoration: none;
465
+ background-position: 0 -15px;
466
+ -webkit-transition: background-position 0.1s linear;
467
+ -moz-transition: background-position 0.1s linear;
468
+ -o-transition: background-position 0.1s linear;
469
+ transition: background-position 0.1s linear;
470
+ }
471
+
472
+ .selectize-control.single .selectize-input.disabled {
473
+ background: #e6e6e6 !important;
474
+ -webkit-box-shadow: none;
475
+ -moz-box-shadow: none;
476
+ box-shadow: none;
477
+ }
478
+
479
+ .selectize-control.multi .selectize-input {
480
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
481
+ -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
482
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
483
+ }
484
+
485
+ .selectize-control.multi .selectize-input.has-items {
486
+ padding-right: 7px;
487
+ padding-left: 7px;
488
+ }
489
+
490
+ .selectize-control.multi .selectize-input > div {
491
+ color: #333333;
492
+ text-shadow: none;
493
+ background-color: #f5f5f5;
494
+ *background-color: #e6e6e6;
495
+ background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
496
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
497
+ background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
498
+ background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
499
+ background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
500
+ background-repeat: repeat-x;
501
+ border: 1px solid #cccccc;
502
+ border-color: #e6e6e6 #e6e6e6 #bfbfbf;
503
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
504
+ -webkit-border-radius: 4px;
505
+ -moz-border-radius: 4px;
506
+ border-radius: 4px;
507
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
508
+ -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
509
+ -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
510
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
511
+ }
512
+
513
+ .selectize-control.multi .selectize-input > div.active {
514
+ color: #ffffff;
515
+ text-shadow: none;
516
+ background-color: #0081c2;
517
+ *background-color: #0088cc;
518
+ background-image: -moz-linear-gradient(top, #0088cc, #0077b3);
519
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));
520
+ background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);
521
+ background-image: -o-linear-gradient(top, #0088cc, #0077b3);
522
+ background-image: linear-gradient(to bottom, #0088cc, #0077b3);
523
+ background-repeat: repeat-x;
524
+ border: 1px solid #0088cc;
525
+ border-color: #0077b3 #0077b3 #004466;
526
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
527
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0);
528
+ -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
529
+ -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
530
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
531
+ }