kadmin 0.4.1 → 0.4.2

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,4 @@
1
+ /**
2
+ *= require select2/select2
3
+ *= require select2/select2-bootstrap
4
+ */
@@ -0,0 +1,715 @@
1
+ /*! Select2 Bootstrap Theme v0.1.0-beta.9 | MIT License | github.com/select2/select2-bootstrap-theme */
2
+ .select2-container--bootstrap {
3
+ display: block;
4
+ /*------------------------------------* #COMMON STYLES
5
+ \*------------------------------------*/
6
+ /**
7
+ * Search field in the Select2 dropdown.
8
+ */
9
+ /**
10
+ * No outline for all search fields - in the dropdown
11
+ * and inline in multi Select2s.
12
+ */
13
+ /**
14
+ * Adjust Select2's choices hover and selected styles to match
15
+ * Bootstrap 3's default dropdown styles.
16
+ *
17
+ * @see http://getbootstrap.com/components/#dropdowns
18
+ */
19
+ /**
20
+ * Clear the selection.
21
+ */
22
+ /**
23
+ * Address disabled Select2 styles.
24
+ *
25
+ * @see https://select2.github.io/examples.html#disabled
26
+ * @see http://getbootstrap.com/css/#forms-control-disabled
27
+ */
28
+ /*------------------------------------* #DROPDOWN
29
+ \*------------------------------------*/
30
+ /**
31
+ * Dropdown border color and box-shadow.
32
+ */
33
+ /**
34
+ * Limit the dropdown height.
35
+ */
36
+ /*------------------------------------* #SINGLE SELECT2
37
+ \*------------------------------------*/
38
+ /*------------------------------------* #MULTIPLE SELECT2
39
+ \*------------------------------------*/
40
+ /**
41
+ * Address Bootstrap control sizing classes
42
+ *
43
+ * 1. Reset Bootstrap defaults.
44
+ * 2. Adjust the dropdown arrow button icon position.
45
+ *
46
+ * @see http://getbootstrap.com/css/#forms-control-sizes
47
+ */
48
+ /* 1 */
49
+ /*------------------------------------* #RTL SUPPORT
50
+ \*------------------------------------*/
51
+ }
52
+
53
+ .select2-container--bootstrap .select2-selection {
54
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
55
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
56
+ background-color: #fff;
57
+ border: 1px solid #ccc;
58
+ border-radius: 4px;
59
+ color: #555555;
60
+ font-size: 14px;
61
+ outline: 0;
62
+ }
63
+
64
+ .select2-container--bootstrap .select2-selection.form-control {
65
+ border-radius: 4px;
66
+ }
67
+
68
+ .select2-container--bootstrap .select2-search--dropdown .select2-search__field {
69
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
70
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
71
+ background-color: #fff;
72
+ border: 1px solid #ccc;
73
+ border-radius: 4px;
74
+ color: #555555;
75
+ font-size: 14px;
76
+ }
77
+
78
+ .select2-container--bootstrap .select2-search__field {
79
+ outline: 0;
80
+ /* Firefox 18- */
81
+ /**
82
+ * Firefox 19+
83
+ *
84
+ * @see http://stackoverflow.com/questions/24236240/color-for-styled-placeholder-text-is-muted-in-firefox
85
+ */
86
+ }
87
+
88
+ .select2-container--bootstrap .select2-search__field::-webkit-input-placeholder {
89
+ color: #999;
90
+ }
91
+
92
+ .select2-container--bootstrap .select2-search__field:-moz-placeholder {
93
+ color: #999;
94
+ }
95
+
96
+ .select2-container--bootstrap .select2-search__field::-moz-placeholder {
97
+ color: #999;
98
+ opacity: 1;
99
+ }
100
+
101
+ .select2-container--bootstrap .select2-search__field:-ms-input-placeholder {
102
+ color: #999;
103
+ }
104
+
105
+ .select2-container--bootstrap .select2-results__option {
106
+ padding: 6px 12px;
107
+ /**
108
+ * Disabled results.
109
+ *
110
+ * @see https://select2.github.io/examples.html#disabled-results
111
+ */
112
+ /**
113
+ * Hover state.
114
+ */
115
+ /**
116
+ * Selected state.
117
+ */
118
+ }
119
+
120
+ .select2-container--bootstrap .select2-results__option[role=group] {
121
+ padding: 0;
122
+ }
123
+
124
+ .select2-container--bootstrap .select2-results__option[aria-disabled=true] {
125
+ color: #777777;
126
+ cursor: not-allowed;
127
+ }
128
+
129
+ .select2-container--bootstrap .select2-results__option[aria-selected=true] {
130
+ background-color: #f5f5f5;
131
+ color: #262626;
132
+ }
133
+
134
+ .select2-container--bootstrap .select2-results__option--highlighted[aria-selected] {
135
+ background-color: #337ab7;
136
+ color: #fff;
137
+ }
138
+
139
+ .select2-container--bootstrap .select2-results__option .select2-results__option {
140
+ padding: 6px 12px;
141
+ }
142
+
143
+ .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__group {
144
+ padding-left: 0;
145
+ }
146
+
147
+ .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option {
148
+ margin-left: -12px;
149
+ padding-left: 24px;
150
+ }
151
+
152
+ .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
153
+ margin-left: -24px;
154
+ padding-left: 36px;
155
+ }
156
+
157
+ .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
158
+ margin-left: -36px;
159
+ padding-left: 48px;
160
+ }
161
+
162
+ .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
163
+ margin-left: -48px;
164
+ padding-left: 60px;
165
+ }
166
+
167
+ .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
168
+ margin-left: -60px;
169
+ padding-left: 72px;
170
+ }
171
+
172
+ .select2-container--bootstrap .select2-results__group {
173
+ color: #777777;
174
+ display: block;
175
+ padding: 6px 12px;
176
+ font-size: 12px;
177
+ line-height: 1.42857143;
178
+ white-space: nowrap;
179
+ }
180
+
181
+ .select2-container--bootstrap.select2-container--focus .select2-selection, .select2-container--bootstrap.select2-container--open .select2-selection {
182
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
183
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
184
+ -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
185
+ -o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
186
+ -webkit-transition: border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
187
+ transition: border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
188
+ transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
189
+ transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
190
+ border-color: #66afe9;
191
+ }
192
+
193
+ .select2-container--bootstrap.select2-container--open {
194
+ /**
195
+ * Make the dropdown arrow point up while the dropdown is visible.
196
+ */
197
+ /**
198
+ * Handle border radii of the container when the dropdown is showing.
199
+ */
200
+ }
201
+
202
+ .select2-container--bootstrap.select2-container--open .select2-selection .select2-selection__arrow b {
203
+ border-color: transparent transparent #999 transparent;
204
+ border-width: 0 4px 4px 4px;
205
+ }
206
+
207
+ .select2-container--bootstrap.select2-container--open.select2-container--below .select2-selection {
208
+ border-bottom-right-radius: 0;
209
+ border-bottom-left-radius: 0;
210
+ border-bottom-color: transparent;
211
+ }
212
+
213
+ .select2-container--bootstrap.select2-container--open.select2-container--above .select2-selection {
214
+ border-top-right-radius: 0;
215
+ border-top-left-radius: 0;
216
+ border-top-color: transparent;
217
+ }
218
+
219
+ .select2-container--bootstrap .select2-selection__clear {
220
+ color: #999;
221
+ cursor: pointer;
222
+ float: right;
223
+ font-weight: bold;
224
+ margin-right: 10px;
225
+ }
226
+
227
+ .select2-container--bootstrap .select2-selection__clear:hover {
228
+ color: #333;
229
+ }
230
+
231
+ .select2-container--bootstrap.select2-container--disabled .select2-selection {
232
+ border-color: #ccc;
233
+ -webkit-box-shadow: none;
234
+ box-shadow: none;
235
+ }
236
+
237
+ .select2-container--bootstrap.select2-container--disabled .select2-selection,
238
+ .select2-container--bootstrap.select2-container--disabled .select2-search__field {
239
+ cursor: not-allowed;
240
+ }
241
+
242
+ .select2-container--bootstrap.select2-container--disabled .select2-selection,
243
+ .select2-container--bootstrap.select2-container--disabled .select2-selection--multiple .select2-selection__choice {
244
+ background-color: #eeeeee;
245
+ }
246
+
247
+ .select2-container--bootstrap.select2-container--disabled .select2-selection__clear,
248
+ .select2-container--bootstrap.select2-container--disabled .select2-selection--multiple .select2-selection__choice__remove {
249
+ display: none;
250
+ }
251
+
252
+ .select2-container--bootstrap .select2-dropdown {
253
+ -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
254
+ box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
255
+ border-color: #66afe9;
256
+ overflow-x: hidden;
257
+ margin-top: -1px;
258
+ }
259
+
260
+ .select2-container--bootstrap .select2-dropdown--above {
261
+ -webkit-box-shadow: 0px -6px 12px rgba(0, 0, 0, 0.175);
262
+ box-shadow: 0px -6px 12px rgba(0, 0, 0, 0.175);
263
+ margin-top: 1px;
264
+ }
265
+
266
+ .select2-container--bootstrap .select2-results > .select2-results__options {
267
+ max-height: 200px;
268
+ overflow-y: auto;
269
+ }
270
+
271
+ .select2-container--bootstrap .select2-selection--single {
272
+ height: 34px;
273
+ line-height: 1.42857143;
274
+ padding: 6px 24px 6px 12px;
275
+ /**
276
+ * Adjust the single Select2's dropdown arrow button appearance.
277
+ */
278
+ }
279
+
280
+ .select2-container--bootstrap .select2-selection--single .select2-selection__arrow {
281
+ position: absolute;
282
+ bottom: 0;
283
+ right: 12px;
284
+ top: 0;
285
+ width: 4px;
286
+ }
287
+
288
+ .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b {
289
+ border-color: #999 transparent transparent transparent;
290
+ border-style: solid;
291
+ border-width: 4px 4px 0 4px;
292
+ height: 0;
293
+ left: 0;
294
+ margin-left: -4px;
295
+ margin-top: -2px;
296
+ position: absolute;
297
+ top: 50%;
298
+ width: 0;
299
+ }
300
+
301
+ .select2-container--bootstrap .select2-selection--single .select2-selection__rendered {
302
+ color: #555555;
303
+ padding: 0;
304
+ }
305
+
306
+ .select2-container--bootstrap .select2-selection--single .select2-selection__placeholder {
307
+ color: #999;
308
+ }
309
+
310
+ .select2-container--bootstrap .select2-selection--multiple {
311
+ min-height: 34px;
312
+ padding: 0;
313
+ height: auto;
314
+ /**
315
+ * Make Multi Select2's choices match Bootstrap 3's default button styles.
316
+ */
317
+ /**
318
+ * Minus 2px borders.
319
+ */
320
+ /**
321
+ * Clear the selection.
322
+ */
323
+ }
324
+
325
+ .select2-container--bootstrap .select2-selection--multiple .select2-selection__rendered {
326
+ -webkit-box-sizing: border-box;
327
+ -moz-box-sizing: border-box;
328
+ box-sizing: border-box;
329
+ display: block;
330
+ line-height: 1.42857143;
331
+ list-style: none;
332
+ margin: 0;
333
+ overflow: hidden;
334
+ padding: 0;
335
+ width: 100%;
336
+ text-overflow: ellipsis;
337
+ white-space: nowrap;
338
+ }
339
+
340
+ .select2-container--bootstrap .select2-selection--multiple .select2-selection__placeholder {
341
+ color: #999;
342
+ float: left;
343
+ margin-top: 5px;
344
+ }
345
+
346
+ .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice {
347
+ color: #555555;
348
+ background: #fff;
349
+ border: 1px solid #ccc;
350
+ border-radius: 4px;
351
+ cursor: default;
352
+ float: left;
353
+ margin: 5px 0 0 6px;
354
+ padding: 0 6px;
355
+ }
356
+
357
+ .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field {
358
+ background: transparent;
359
+ padding: 0 12px;
360
+ height: 32px;
361
+ line-height: 1.42857143;
362
+ margin-top: 0;
363
+ min-width: 5em;
364
+ }
365
+
366
+ .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice__remove {
367
+ color: #999;
368
+ cursor: pointer;
369
+ display: inline-block;
370
+ font-weight: bold;
371
+ margin-right: 3px;
372
+ }
373
+
374
+ .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice__remove:hover {
375
+ color: #333;
376
+ }
377
+
378
+ .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear {
379
+ margin-top: 6px;
380
+ }
381
+
382
+ .select2-container--bootstrap .select2-selection--single.input-sm,
383
+ .input-group-sm .select2-container--bootstrap .select2-selection--single,
384
+ .form-group-sm .select2-container--bootstrap .select2-selection--single {
385
+ border-radius: 3px;
386
+ font-size: 12px;
387
+ height: 30px;
388
+ line-height: 1.5;
389
+ padding: 5px 22px 5px 10px;
390
+ /* 2 */
391
+ }
392
+
393
+ .select2-container--bootstrap .select2-selection--single.input-sm .select2-selection__arrow b,
394
+ .input-group-sm .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b,
395
+ .form-group-sm .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b {
396
+ margin-left: -5px;
397
+ }
398
+
399
+ .select2-container--bootstrap .select2-selection--multiple.input-sm,
400
+ .input-group-sm .select2-container--bootstrap .select2-selection--multiple,
401
+ .form-group-sm .select2-container--bootstrap .select2-selection--multiple {
402
+ min-height: 30px;
403
+ border-radius: 3px;
404
+ }
405
+
406
+ .select2-container--bootstrap .select2-selection--multiple.input-sm .select2-selection__choice,
407
+ .input-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice,
408
+ .form-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice {
409
+ font-size: 12px;
410
+ line-height: 1.5;
411
+ margin: 4px 0 0 5px;
412
+ padding: 0 5px;
413
+ }
414
+
415
+ .select2-container--bootstrap .select2-selection--multiple.input-sm .select2-search--inline .select2-search__field,
416
+ .input-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field,
417
+ .form-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field {
418
+ padding: 0 10px;
419
+ font-size: 12px;
420
+ height: 28px;
421
+ line-height: 1.5;
422
+ }
423
+
424
+ .select2-container--bootstrap .select2-selection--multiple.input-sm .select2-selection__clear,
425
+ .input-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear,
426
+ .form-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear {
427
+ margin-top: 5px;
428
+ }
429
+
430
+ .select2-container--bootstrap .select2-selection--single.input-lg,
431
+ .input-group-lg .select2-container--bootstrap .select2-selection--single,
432
+ .form-group-lg .select2-container--bootstrap .select2-selection--single {
433
+ border-radius: 6px;
434
+ font-size: 18px;
435
+ height: 46px;
436
+ line-height: 1.3333333;
437
+ padding: 10px 31px 10px 16px;
438
+ /* 1 */
439
+ }
440
+
441
+ .select2-container--bootstrap .select2-selection--single.input-lg .select2-selection__arrow,
442
+ .input-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow,
443
+ .form-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow {
444
+ width: 5px;
445
+ }
446
+
447
+ .select2-container--bootstrap .select2-selection--single.input-lg .select2-selection__arrow b,
448
+ .input-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b,
449
+ .form-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b {
450
+ border-width: 5px 5px 0 5px;
451
+ margin-left: -5px;
452
+ margin-left: -10px;
453
+ margin-top: -2.5px;
454
+ }
455
+
456
+ .select2-container--bootstrap .select2-selection--multiple.input-lg,
457
+ .input-group-lg .select2-container--bootstrap .select2-selection--multiple,
458
+ .form-group-lg .select2-container--bootstrap .select2-selection--multiple {
459
+ min-height: 46px;
460
+ border-radius: 6px;
461
+ }
462
+
463
+ .select2-container--bootstrap .select2-selection--multiple.input-lg .select2-selection__choice,
464
+ .input-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice,
465
+ .form-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice {
466
+ font-size: 18px;
467
+ line-height: 1.3333333;
468
+ border-radius: 4px;
469
+ margin: 9px 0 0 8px;
470
+ padding: 0 10px;
471
+ }
472
+
473
+ .select2-container--bootstrap .select2-selection--multiple.input-lg .select2-search--inline .select2-search__field,
474
+ .input-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field,
475
+ .form-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field {
476
+ padding: 0 16px;
477
+ font-size: 18px;
478
+ height: 44px;
479
+ line-height: 1.3333333;
480
+ }
481
+
482
+ .select2-container--bootstrap .select2-selection--multiple.input-lg .select2-selection__clear,
483
+ .input-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear,
484
+ .form-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear {
485
+ margin-top: 10px;
486
+ }
487
+
488
+ .select2-container--bootstrap .select2-selection.input-lg.select2-container--open .select2-selection--single {
489
+ /**
490
+ * Make the dropdown arrow point up while the dropdown is visible.
491
+ */
492
+ }
493
+
494
+ .select2-container--bootstrap .select2-selection.input-lg.select2-container--open .select2-selection--single .select2-selection__arrow b {
495
+ border-color: transparent transparent #999 transparent;
496
+ border-width: 0 5px 5px 5px;
497
+ }
498
+
499
+ .input-group-lg .select2-container--bootstrap .select2-selection.select2-container--open .select2-selection--single {
500
+ /**
501
+ * Make the dropdown arrow point up while the dropdown is visible.
502
+ */
503
+ }
504
+
505
+ .input-group-lg .select2-container--bootstrap .select2-selection.select2-container--open .select2-selection--single .select2-selection__arrow b {
506
+ border-color: transparent transparent #999 transparent;
507
+ border-width: 0 5px 5px 5px;
508
+ }
509
+
510
+ .select2-container--bootstrap[dir="rtl"] {
511
+ /**
512
+ * Single Select2
513
+ *
514
+ * 1. Makes sure that .select2-selection__placeholder is positioned
515
+ * correctly.
516
+ */
517
+ /**
518
+ * Multiple Select2
519
+ */
520
+ }
521
+
522
+ .select2-container--bootstrap[dir="rtl"] .select2-selection--single {
523
+ padding-left: 24px;
524
+ padding-right: 12px;
525
+ }
526
+
527
+ .select2-container--bootstrap[dir="rtl"] .select2-selection--single .select2-selection__rendered {
528
+ padding-right: 0;
529
+ padding-left: 0;
530
+ text-align: right;
531
+ /* 1 */
532
+ }
533
+
534
+ .select2-container--bootstrap[dir="rtl"] .select2-selection--single .select2-selection__clear {
535
+ float: left;
536
+ }
537
+
538
+ .select2-container--bootstrap[dir="rtl"] .select2-selection--single .select2-selection__arrow {
539
+ left: 12px;
540
+ right: auto;
541
+ }
542
+
543
+ .select2-container--bootstrap[dir="rtl"] .select2-selection--single .select2-selection__arrow b {
544
+ margin-left: 0;
545
+ }
546
+
547
+ .select2-container--bootstrap[dir="rtl"] .select2-selection--multiple .select2-selection__choice,
548
+ .select2-container--bootstrap[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder {
549
+ float: right;
550
+ }
551
+
552
+ .select2-container--bootstrap[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
553
+ margin-left: 0;
554
+ margin-right: 6px;
555
+ }
556
+
557
+ .select2-container--bootstrap[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
558
+ margin-left: 2px;
559
+ margin-right: auto;
560
+ }
561
+
562
+ /*------------------------------------* #ADDITIONAL GOODIES
563
+ \*------------------------------------*/
564
+ /**
565
+ * Address Bootstrap's validation states
566
+ *
567
+ * If a Select2 widget parent has one of Bootstrap's validation state modifier
568
+ * classes, adjust Select2's border colors and focus states accordingly.
569
+ * You may apply said classes to the Select2 dropdown (body > .select2-container)
570
+ * via JavaScript match Bootstraps' to make its styles match.
571
+ *
572
+ * @see http://getbootstrap.com/css/#forms-control-validation
573
+ */
574
+ .has-warning .select2-dropdown,
575
+ .has-warning .select2-selection {
576
+ border-color: #8a6d3b;
577
+ }
578
+
579
+ .has-warning .select2-container--focus .select2-selection,
580
+ .has-warning .select2-container--open .select2-selection {
581
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;
582
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;
583
+ border-color: #66512c;
584
+ }
585
+
586
+ .has-warning.select2-drop-active {
587
+ border-color: #66512c;
588
+ }
589
+
590
+ .has-warning.select2-drop-active.select2-drop.select2-drop-above {
591
+ border-top-color: #66512c;
592
+ }
593
+
594
+ .has-error .select2-dropdown,
595
+ .has-error .select2-selection {
596
+ border-color: #a94442;
597
+ }
598
+
599
+ .has-error .select2-container--focus .select2-selection,
600
+ .has-error .select2-container--open .select2-selection {
601
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
602
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
603
+ border-color: #843534;
604
+ }
605
+
606
+ .has-error.select2-drop-active {
607
+ border-color: #843534;
608
+ }
609
+
610
+ .has-error.select2-drop-active.select2-drop.select2-drop-above {
611
+ border-top-color: #843534;
612
+ }
613
+
614
+ .has-success .select2-dropdown,
615
+ .has-success .select2-selection {
616
+ border-color: #3c763d;
617
+ }
618
+
619
+ .has-success .select2-container--focus .select2-selection,
620
+ .has-success .select2-container--open .select2-selection {
621
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;
622
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;
623
+ border-color: #2b542c;
624
+ }
625
+
626
+ .has-success.select2-drop-active {
627
+ border-color: #2b542c;
628
+ }
629
+
630
+ .has-success.select2-drop-active.select2-drop.select2-drop-above {
631
+ border-top-color: #2b542c;
632
+ }
633
+
634
+ /**
635
+ * Select2 widgets in Bootstrap Input Groups
636
+ *
637
+ * When Select2 widgets are combined with other elements using Bootstraps
638
+ * "Input Group" component, we don't want specific edges of the Select2
639
+ * container to have a border-radius.
640
+ *
641
+ * Use .select2-bootstrap-prepend and .select2-bootstrap-append on
642
+ * a Bootstrap 3 .input-group to let the contained Select2 widget know which
643
+ * edges should not be rounded as they are directly followed by another element.
644
+ *
645
+ * @see http://getbootstrap.com/components/#input-groups
646
+ */
647
+ /**
648
+ * Mimick Bootstraps .input-group .form-control styles.
649
+ *
650
+ * @see https://github.com/twbs/bootstrap/blob/master/less/input-groups.less
651
+ */
652
+ .input-group .select2-container--bootstrap {
653
+ display: table;
654
+ table-layout: fixed;
655
+ position: relative;
656
+ z-index: 2;
657
+ float: left;
658
+ width: 100%;
659
+ margin-bottom: 0;
660
+ /**
661
+ * Adjust z-index like Bootstrap does to show the focus-box-shadow
662
+ * above appended buttons in .input-group and .form-group.
663
+ */
664
+ }
665
+
666
+ .input-group .select2-container--bootstrap.select2-container--open, .input-group .select2-container--bootstrap.select2-container--focus {
667
+ z-index: 3;
668
+ }
669
+
670
+ .input-group.select2-bootstrap-prepend .select2-container--bootstrap .select2-selection {
671
+ border-bottom-left-radius: 0;
672
+ border-top-left-radius: 0;
673
+ }
674
+
675
+ .input-group.select2-bootstrap-append .select2-container--bootstrap .select2-selection {
676
+ border-bottom-right-radius: 0;
677
+ border-top-right-radius: 0;
678
+ }
679
+
680
+ /**
681
+ * Adjust alignment of Bootstrap buttons in Bootstrap Input Groups to address
682
+ * Multi Select2's height which - depending on how many elements have been selected -
683
+ * may grow taller than its initial size.
684
+ *
685
+ * @see http://getbootstrap.com/components/#input-groups
686
+ */
687
+ .select2-bootstrap-append .select2-container--bootstrap,
688
+ .select2-bootstrap-append .input-group-btn,
689
+ .select2-bootstrap-append .input-group-btn .btn,
690
+ .select2-bootstrap-prepend .select2-container--bootstrap,
691
+ .select2-bootstrap-prepend .input-group-btn,
692
+ .select2-bootstrap-prepend .input-group-btn .btn {
693
+ vertical-align: top;
694
+ }
695
+
696
+ /**
697
+ * Temporary fix for https://github.com/select2/select2-bootstrap-theme/issues/9
698
+ *
699
+ * Provides `!important` for certain properties of the class applied to the
700
+ * original `<select>` element to hide it.
701
+ *
702
+ * @see https://github.com/select2/select2/pull/3301
703
+ * @see https://github.com/fk/select2/commit/31830c7b32cb3d8e1b12d5b434dee40a6e753ada
704
+ */
705
+ .form-control.select2-hidden-accessible {
706
+ position: absolute !important;
707
+ width: 1px !important;
708
+ }
709
+
710
+ /**
711
+ * Display override for inline forms
712
+ */
713
+ .form-inline .select2-container--bootstrap {
714
+ display: inline-block;
715
+ }