activeadmin_selectize 0.1.2 → 0.2.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.
@@ -0,0 +1,16 @@
1
+ @import 'activeadmin/selectize/selectize';
2
+
3
+ .selectize-control {
4
+ .selectize-input {
5
+ width: calc(80% - 22px);
6
+ }
7
+ &.multi .selectize-input, .selectize-input {
8
+ padding: 0 5px;
9
+ &.has-items {
10
+ padding: 0 5px;
11
+ }
12
+ }
13
+ &.plugin-remove_button .remove-single {
14
+ font-size: 16px;
15
+ }
16
+ }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * selectize.bootstrap2.css (v0.12.4) - Bootstrap 2 Theme
2
+ * selectize.bootstrap2.css (v0.12.6) - Bootstrap 2 Theme
3
3
  * Copyright (c) 2013–2015 Brian Reavis & contributors
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -18,8 +18,8 @@
18
18
  background: #f2f2f2 !important;
19
19
  background: rgba(0, 0, 0, 0.06) !important;
20
20
  border: 0 none !important;
21
- -webkit-box-shadow: inset 0 0 12px 4px #ffffff;
22
- box-shadow: inset 0 0 12px 4px #ffffff;
21
+ -webkit-box-shadow: inset 0 0 12px 4px #fff;
22
+ box-shadow: inset 0 0 12px 4px #fff;
23
23
  }
24
24
  .selectize-control.plugin-drag_drop .ui-sortable-placeholder::after {
25
25
  content: '!';
@@ -42,7 +42,7 @@
42
42
  position: absolute;
43
43
  right: 10px;
44
44
  top: 50%;
45
- color: #333333;
45
+ color: #333;
46
46
  opacity: 0.4;
47
47
  margin-top: -12px;
48
48
  line-height: 20px;
@@ -88,7 +88,7 @@
88
88
  vertical-align: middle;
89
89
  display: inline-block;
90
90
  padding: 1px 0 0 0;
91
- border-left: 1px solid #cccccc;
91
+ border-left: 1px solid #ccc;
92
92
  -webkit-border-radius: 0 2px 2px 0;
93
93
  -moz-border-radius: 0 2px 2px 0;
94
94
  border-radius: 0 2px 2px 0;
@@ -110,8 +110,8 @@
110
110
  }
111
111
  .selectize-control.plugin-remove_button .remove-single {
112
112
  position: absolute;
113
- right: 28px;
114
- top: 6px;
113
+ right: 0;
114
+ top: 0;
115
115
  font-size: 23px;
116
116
  }
117
117
  .selectize-control {
@@ -120,7 +120,7 @@
120
120
  .selectize-dropdown,
121
121
  .selectize-input,
122
122
  .selectize-input input {
123
- color: #333333;
123
+ color: #333;
124
124
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
125
125
  font-size: 14px;
126
126
  line-height: 20px;
@@ -128,7 +128,7 @@
128
128
  }
129
129
  .selectize-input,
130
130
  .selectize-control.single .selectize-input.input-active {
131
- background: #ffffff;
131
+ background: #fff;
132
132
  cursor: text;
133
133
  display: inline-block;
134
134
  }
@@ -153,7 +153,7 @@
153
153
  padding: 5px 10px 2px;
154
154
  }
155
155
  .selectize-input.full {
156
- background-color: #ffffff;
156
+ background-color: #fff;
157
157
  }
158
158
  .selectize-input.disabled,
159
159
  .selectize-input.disabled * {
@@ -180,12 +180,12 @@
180
180
  margin: 0 3px 3px 0;
181
181
  padding: 1px 3px;
182
182
  background: #e6e6e6;
183
- color: #333333;
184
- border: 1px solid #cccccc;
183
+ color: #333;
184
+ border: 1px solid #ccc;
185
185
  }
186
186
  .selectize-control.multi .selectize-input > div.active {
187
- background: #0088cc;
188
- color: #ffffff;
187
+ background: #08c;
188
+ color: #fff;
189
189
  border: 1px solid #0077b3;
190
190
  }
191
191
  .selectize-control.multi .selectize-input.disabled > div,
@@ -233,8 +233,8 @@
233
233
  .selectize-dropdown {
234
234
  position: absolute;
235
235
  z-index: 10;
236
- border: 1px solid #cccccc;
237
- background: #ffffff;
236
+ border: 1px solid #ccc;
237
+ background: #fff;
238
238
  margin: -1px 0 0 0;
239
239
  border-top: 0 none;
240
240
  -webkit-box-sizing: border-box;
@@ -256,24 +256,33 @@
256
256
  -moz-border-radius: 1px;
257
257
  border-radius: 1px;
258
258
  }
259
- .selectize-dropdown [data-selectable],
259
+ .selectize-dropdown .option,
260
260
  .selectize-dropdown .optgroup-header {
261
261
  padding: 3px 10px;
262
262
  }
263
+ .selectize-dropdown .option,
264
+ .selectize-dropdown [data-disabled],
265
+ .selectize-dropdown [data-disabled] [data-selectable].option {
266
+ cursor: inherit;
267
+ opacity: 0.5;
268
+ }
269
+ .selectize-dropdown [data-selectable].option {
270
+ opacity: 1;
271
+ }
263
272
  .selectize-dropdown .optgroup:first-child .optgroup-header {
264
273
  border-top: 0 none;
265
274
  }
266
275
  .selectize-dropdown .optgroup-header {
267
- color: #999999;
268
- background: #ffffff;
276
+ color: #999;
277
+ background: #fff;
269
278
  cursor: default;
270
279
  }
271
280
  .selectize-dropdown .active {
272
- background-color: #0088cc;
273
- color: #ffffff;
281
+ background-color: #08c;
282
+ color: #fff;
274
283
  }
275
284
  .selectize-dropdown .active.create {
276
- color: #ffffff;
285
+ color: #fff;
277
286
  }
278
287
  .selectize-dropdown .create {
279
288
  color: rgba(51, 51, 51, 0.5);
@@ -303,12 +312,12 @@
303
312
  height: 0;
304
313
  border-style: solid;
305
314
  border-width: 5px 5px 0 5px;
306
- border-color: #000000 transparent transparent transparent;
315
+ border-color: #000 transparent transparent transparent;
307
316
  }
308
317
  .selectize-control.single .selectize-input.dropdown-active:after {
309
318
  margin-top: -4px;
310
319
  border-width: 0 5px 5px 5px;
311
- border-color: transparent transparent #000000 transparent;
320
+ border-color: transparent transparent #000 transparent;
312
321
  }
313
322
  .selectize-control.rtl.single .selectize-input:after {
314
323
  left: 15px;
@@ -319,7 +328,7 @@
319
328
  }
320
329
  .selectize-control .selectize-input.disabled {
321
330
  opacity: 0.5;
322
- background-color: #ffffff;
331
+ background-color: #fff;
323
332
  }
324
333
  .selectize-dropdown {
325
334
  margin: 2px 0 0 0;
@@ -348,17 +357,17 @@
348
357
  *margin: -5px 0 5px;
349
358
  overflow: hidden;
350
359
  background-color: #e5e5e5;
351
- border-bottom: 1px solid #ffffff;
360
+ border-bottom: 1px solid #fff;
352
361
  margin-left: -10px;
353
362
  margin-right: -10px;
354
363
  }
355
364
  .selectize-dropdown [data-selectable].active {
356
365
  background-color: #0081c2;
357
- background-image: -moz-linear-gradient(top, #0088cc, #0077b3);
358
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));
359
- background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);
360
- background-image: -o-linear-gradient(top, #0088cc, #0077b3);
361
- background-image: linear-gradient(to bottom, #0088cc, #0077b3);
366
+ background-image: -moz-linear-gradient(top, #08c, #0077b3);
367
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#08c), to(#0077b3));
368
+ background-image: -webkit-linear-gradient(top, #08c, #0077b3);
369
+ background-image: -o-linear-gradient(top, #08c, #0077b3);
370
+ background-image: linear-gradient(to bottom, #08c, #0077b3);
362
371
  background-repeat: repeat-x;
363
372
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0);
364
373
  }
@@ -385,7 +394,7 @@
385
394
  .selectize-input.input-active,
386
395
  .selectize-input.input-active:hover,
387
396
  .selectize-control.multi .selectize-input.focus {
388
- background: #ffffff !important;
397
+ background: #fff !important;
389
398
  border-color: rgba(82, 168, 236, 0.8) !important;
390
399
  outline: 0 !important;
391
400
  outline: thin dotted \9 !important;
@@ -394,14 +403,14 @@
394
403
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6) !important;
395
404
  }
396
405
  .selectize-control.single .selectize-input {
397
- color: #333333;
406
+ color: #333;
398
407
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
399
408
  background-color: #f5f5f5;
400
- background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
401
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
402
- background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
403
- background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
404
- background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
409
+ background-image: -moz-linear-gradient(top, #fff, #e6e6e6);
410
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fff), to(#e6e6e6));
411
+ background-image: -webkit-linear-gradient(top, #fff, #e6e6e6);
412
+ background-image: -o-linear-gradient(top, #fff, #e6e6e6);
413
+ background-image: linear-gradient(to bottom, #fff, #e6e6e6);
405
414
  background-repeat: repeat-x;
406
415
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
407
416
  border-color: #e6e6e6 #e6e6e6 #bfbfbf;
@@ -419,7 +428,7 @@
419
428
  .selectize-control.single .selectize-input.active,
420
429
  .selectize-control.single .selectize-input.disabled,
421
430
  .selectize-control.single .selectize-input[disabled] {
422
- color: #333333;
431
+ color: #333;
423
432
  background-color: #e6e6e6;
424
433
  *background-color: #d9d9d9;
425
434
  }
@@ -428,7 +437,7 @@
428
437
  background-color: #cccccc \9;
429
438
  }
430
439
  .selectize-control.single .selectize-input:hover {
431
- color: #333333;
440
+ color: #333;
432
441
  text-decoration: none;
433
442
  background-position: 0 -15px;
434
443
  -webkit-transition: background-position 0.1s linear;
@@ -452,20 +461,20 @@
452
461
  padding-right: 7px;
453
462
  }
454
463
  .selectize-control.multi .selectize-input > div {
455
- color: #333333;
464
+ color: #333;
456
465
  text-shadow: none;
457
466
  background-color: #f5f5f5;
458
- background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
459
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
460
- background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
461
- background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
462
- background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
467
+ background-image: -moz-linear-gradient(top, #fff, #e6e6e6);
468
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fff), to(#e6e6e6));
469
+ background-image: -webkit-linear-gradient(top, #fff, #e6e6e6);
470
+ background-image: -o-linear-gradient(top, #fff, #e6e6e6);
471
+ background-image: linear-gradient(to bottom, #fff, #e6e6e6);
463
472
  background-repeat: repeat-x;
464
473
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
465
474
  border-color: #e6e6e6 #e6e6e6 #bfbfbf;
466
475
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
467
476
  *background-color: #e6e6e6;
468
- border: 1px solid #cccccc;
477
+ border: 1px solid #ccc;
469
478
  -webkit-border-radius: 4px;
470
479
  -moz-border-radius: 4px;
471
480
  border-radius: 4px;
@@ -477,18 +486,18 @@
477
486
  -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
478
487
  -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
479
488
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
480
- color: #ffffff;
489
+ color: #fff;
481
490
  text-shadow: none;
482
491
  background-color: #0081c2;
483
- background-image: -moz-linear-gradient(top, #0088cc, #0077b3);
484
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));
485
- background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);
486
- background-image: -o-linear-gradient(top, #0088cc, #0077b3);
487
- background-image: linear-gradient(to bottom, #0088cc, #0077b3);
492
+ background-image: -moz-linear-gradient(top, #08c, #0077b3);
493
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#08c), to(#0077b3));
494
+ background-image: -webkit-linear-gradient(top, #08c, #0077b3);
495
+ background-image: -o-linear-gradient(top, #08c, #0077b3);
496
+ background-image: linear-gradient(to bottom, #08c, #0077b3);
488
497
  background-repeat: repeat-x;
489
498
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0);
490
499
  border-color: #0077b3 #0077b3 #004466;
491
500
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
492
- *background-color: #0088cc;
493
- border: 1px solid #0088cc;
501
+ *background-color: #08c;
502
+ border: 1px solid #08c;
494
503
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * selectize.bootstrap3.css (v0.12.4) - Bootstrap 3 Theme
2
+ * selectize.bootstrap3.css (v0.12.6) - Bootstrap 3 Theme
3
3
  * Copyright (c) 2013–2015 Brian Reavis & contributors
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -18,8 +18,8 @@
18
18
  background: #f2f2f2 !important;
19
19
  background: rgba(0, 0, 0, 0.06) !important;
20
20
  border: 0 none !important;
21
- -webkit-box-shadow: inset 0 0 12px 4px #ffffff;
22
- box-shadow: inset 0 0 12px 4px #ffffff;
21
+ -webkit-box-shadow: inset 0 0 12px 4px #fff;
22
+ box-shadow: inset 0 0 12px 4px #fff;
23
23
  }
24
24
  .selectize-control.plugin-drag_drop .ui-sortable-placeholder::after {
25
25
  content: '!';
@@ -110,8 +110,8 @@
110
110
  }
111
111
  .selectize-control.plugin-remove_button .remove-single {
112
112
  position: absolute;
113
- right: 28px;
114
- top: 6px;
113
+ right: 0;
114
+ top: 0;
115
115
  font-size: 23px;
116
116
  }
117
117
  .selectize-control {
@@ -128,12 +128,12 @@
128
128
  }
129
129
  .selectize-input,
130
130
  .selectize-control.single .selectize-input.input-active {
131
- background: #ffffff;
131
+ background: #fff;
132
132
  cursor: text;
133
133
  display: inline-block;
134
134
  }
135
135
  .selectize-input {
136
- border: 1px solid #cccccc;
136
+ border: 1px solid #ccc;
137
137
  padding: 6px 12px;
138
138
  display: inline-block;
139
139
  width: 100%;
@@ -153,7 +153,7 @@
153
153
  padding: 5px 12px 2px;
154
154
  }
155
155
  .selectize-input.full {
156
- background-color: #ffffff;
156
+ background-color: #fff;
157
157
  }
158
158
  .selectize-input.disabled,
159
159
  .selectize-input.disabled * {
@@ -185,7 +185,7 @@
185
185
  }
186
186
  .selectize-control.multi .selectize-input > div.active {
187
187
  background: #428bca;
188
- color: #ffffff;
188
+ color: #fff;
189
189
  border: 0 solid rgba(0, 0, 0, 0);
190
190
  }
191
191
  .selectize-control.multi .selectize-input.disabled > div,
@@ -234,7 +234,7 @@
234
234
  position: absolute;
235
235
  z-index: 10;
236
236
  border: 1px solid #d0d0d0;
237
- background: #ffffff;
237
+ background: #fff;
238
238
  margin: -1px 0 0 0;
239
239
  border-top: 0 none;
240
240
  -webkit-box-sizing: border-box;
@@ -256,16 +256,25 @@
256
256
  -moz-border-radius: 1px;
257
257
  border-radius: 1px;
258
258
  }
259
- .selectize-dropdown [data-selectable],
259
+ .selectize-dropdown .option,
260
260
  .selectize-dropdown .optgroup-header {
261
261
  padding: 3px 12px;
262
262
  }
263
+ .selectize-dropdown .option,
264
+ .selectize-dropdown [data-disabled],
265
+ .selectize-dropdown [data-disabled] [data-selectable].option {
266
+ cursor: inherit;
267
+ opacity: 0.5;
268
+ }
269
+ .selectize-dropdown [data-selectable].option {
270
+ opacity: 1;
271
+ }
263
272
  .selectize-dropdown .optgroup:first-child .optgroup-header {
264
273
  border-top: 0 none;
265
274
  }
266
275
  .selectize-dropdown .optgroup-header {
267
276
  color: #777777;
268
- background: #ffffff;
277
+ background: #fff;
269
278
  cursor: default;
270
279
  }
271
280
  .selectize-dropdown .active {
@@ -319,7 +328,7 @@
319
328
  }
320
329
  .selectize-control .selectize-input.disabled {
321
330
  opacity: 0.5;
322
- background-color: #ffffff;
331
+ background-color: #fff;
323
332
  }
324
333
  .selectize-dropdown,
325
334
  .selectize-dropdown.form-control {
@@ -327,8 +336,8 @@
327
336
  padding: 0;
328
337
  margin: 2px 0 0 0;
329
338
  z-index: 1000;
330
- background: #ffffff;
331
- border: 1px solid #cccccc;
339
+ background: #fff;
340
+ border: 1px solid #ccc;
332
341
  border: 1px solid rgba(0, 0, 0, 0.15);
333
342
  -webkit-border-radius: 4px;
334
343
  -moz-border-radius: 4px;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * selectize.css (v0.12.4)
2
+ * selectize.css (v0.12.6)
3
3
  * Copyright (c) 2013–2015 Brian Reavis & contributors
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -19,8 +19,8 @@
19
19
  background: #f2f2f2 !important;
20
20
  background: rgba(0, 0, 0, 0.06) !important;
21
21
  border: 0 none !important;
22
- -webkit-box-shadow: inset 0 0 12px 4px #ffffff;
23
- box-shadow: inset 0 0 12px 4px #ffffff;
22
+ -webkit-box-shadow: inset 0 0 12px 4px #fff;
23
+ box-shadow: inset 0 0 12px 4px #fff;
24
24
  }
25
25
  .selectize-control.plugin-drag_drop .ui-sortable-placeholder::after {
26
26
  content: '!';
@@ -111,8 +111,8 @@
111
111
  }
112
112
  .selectize-control.plugin-remove_button .remove-single {
113
113
  position: absolute;
114
- right: 28px;
115
- top: 6px;
114
+ right: 0;
115
+ top: 0;
116
116
  font-size: 23px;
117
117
  }
118
118
  .selectize-control {
@@ -129,7 +129,7 @@
129
129
  }
130
130
  .selectize-input,
131
131
  .selectize-control.single .selectize-input.input-active {
132
- background: #ffffff;
132
+ background: #fff;
133
133
  cursor: text;
134
134
  display: inline-block;
135
135
  }
@@ -154,7 +154,7 @@
154
154
  padding: 6px 8px 3px;
155
155
  }
156
156
  .selectize-input.full {
157
- background-color: #ffffff;
157
+ background-color: #fff;
158
158
  }
159
159
  .selectize-input.disabled,
160
160
  .selectize-input.disabled * {
@@ -235,7 +235,7 @@
235
235
  position: absolute;
236
236
  z-index: 10;
237
237
  border: 1px solid #d0d0d0;
238
- background: #ffffff;
238
+ background: #fff;
239
239
  margin: -1px 0 0 0;
240
240
  border-top: 0 none;
241
241
  -webkit-box-sizing: border-box;
@@ -257,16 +257,25 @@
257
257
  -moz-border-radius: 1px;
258
258
  border-radius: 1px;
259
259
  }
260
- .selectize-dropdown [data-selectable],
260
+ .selectize-dropdown .option,
261
261
  .selectize-dropdown .optgroup-header {
262
262
  padding: 5px 8px;
263
263
  }
264
+ .selectize-dropdown .option,
265
+ .selectize-dropdown [data-disabled],
266
+ .selectize-dropdown [data-disabled] [data-selectable].option {
267
+ cursor: inherit;
268
+ opacity: 0.5;
269
+ }
270
+ .selectize-dropdown [data-selectable].option {
271
+ opacity: 1;
272
+ }
264
273
  .selectize-dropdown .optgroup:first-child .optgroup-header {
265
274
  border-top: 0 none;
266
275
  }
267
276
  .selectize-dropdown .optgroup-header {
268
277
  color: #303030;
269
- background: #ffffff;
278
+ background: #fff;
270
279
  cursor: default;
271
280
  }
272
281
  .selectize-dropdown .active {