select2-rails-2020 4.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +4 -0
  3. data/Gemfile +4 -0
  4. data/README.md +100 -0
  5. data/Rakefile +9 -0
  6. data/lib/select2-rails.rb +7 -0
  7. data/lib/select2-rails/engine.rb +6 -0
  8. data/lib/select2-rails/source_file.rb +46 -0
  9. data/lib/select2-rails/version.rb +5 -0
  10. data/select2-rails.gemspec +21 -0
  11. data/vendor/assets/javascripts/select2-full.js +6436 -0
  12. data/vendor/assets/javascripts/select2.js +5725 -0
  13. data/vendor/assets/javascripts/select2_locale_ar.js +3 -0
  14. data/vendor/assets/javascripts/select2_locale_az.js +3 -0
  15. data/vendor/assets/javascripts/select2_locale_bg.js +3 -0
  16. data/vendor/assets/javascripts/select2_locale_ca.js +3 -0
  17. data/vendor/assets/javascripts/select2_locale_cs.js +3 -0
  18. data/vendor/assets/javascripts/select2_locale_da.js +3 -0
  19. data/vendor/assets/javascripts/select2_locale_de.js +3 -0
  20. data/vendor/assets/javascripts/select2_locale_el.js +3 -0
  21. data/vendor/assets/javascripts/select2_locale_en.js +3 -0
  22. data/vendor/assets/javascripts/select2_locale_es.js +3 -0
  23. data/vendor/assets/javascripts/select2_locale_et.js +3 -0
  24. data/vendor/assets/javascripts/select2_locale_eu.js +3 -0
  25. data/vendor/assets/javascripts/select2_locale_fa.js +3 -0
  26. data/vendor/assets/javascripts/select2_locale_fi.js +3 -0
  27. data/vendor/assets/javascripts/select2_locale_fr.js +3 -0
  28. data/vendor/assets/javascripts/select2_locale_gl.js +3 -0
  29. data/vendor/assets/javascripts/select2_locale_he.js +3 -0
  30. data/vendor/assets/javascripts/select2_locale_hi.js +3 -0
  31. data/vendor/assets/javascripts/select2_locale_hr.js +3 -0
  32. data/vendor/assets/javascripts/select2_locale_hu.js +3 -0
  33. data/vendor/assets/javascripts/select2_locale_id.js +3 -0
  34. data/vendor/assets/javascripts/select2_locale_is.js +3 -0
  35. data/vendor/assets/javascripts/select2_locale_it.js +3 -0
  36. data/vendor/assets/javascripts/select2_locale_ja.js +3 -0
  37. data/vendor/assets/javascripts/select2_locale_km.js +3 -0
  38. data/vendor/assets/javascripts/select2_locale_ko.js +3 -0
  39. data/vendor/assets/javascripts/select2_locale_lt.js +3 -0
  40. data/vendor/assets/javascripts/select2_locale_lv.js +3 -0
  41. data/vendor/assets/javascripts/select2_locale_mk.js +3 -0
  42. data/vendor/assets/javascripts/select2_locale_ms.js +3 -0
  43. data/vendor/assets/javascripts/select2_locale_nb.js +3 -0
  44. data/vendor/assets/javascripts/select2_locale_nl.js +3 -0
  45. data/vendor/assets/javascripts/select2_locale_pl.js +3 -0
  46. data/vendor/assets/javascripts/select2_locale_pt-BR.js +3 -0
  47. data/vendor/assets/javascripts/select2_locale_pt.js +3 -0
  48. data/vendor/assets/javascripts/select2_locale_ro.js +3 -0
  49. data/vendor/assets/javascripts/select2_locale_ru.js +3 -0
  50. data/vendor/assets/javascripts/select2_locale_sk.js +3 -0
  51. data/vendor/assets/javascripts/select2_locale_sr-Cyrl.js +3 -0
  52. data/vendor/assets/javascripts/select2_locale_sr.js +3 -0
  53. data/vendor/assets/javascripts/select2_locale_sv.js +3 -0
  54. data/vendor/assets/javascripts/select2_locale_th.js +3 -0
  55. data/vendor/assets/javascripts/select2_locale_tr.js +3 -0
  56. data/vendor/assets/javascripts/select2_locale_uk.js +3 -0
  57. data/vendor/assets/javascripts/select2_locale_vi.js +3 -0
  58. data/vendor/assets/javascripts/select2_locale_zh-CN.js +3 -0
  59. data/vendor/assets/javascripts/select2_locale_zh-TW.js +3 -0
  60. data/vendor/assets/stylesheets/select2-bootstrap.css +610 -0
  61. data/vendor/assets/stylesheets/select2-bootstrap4.css +576 -0
  62. data/vendor/assets/stylesheets/select2.css +484 -0
  63. metadata +150 -0
@@ -0,0 +1,576 @@
1
+ /*!
2
+ * Select2 Bootstrap4 Theme v1.0.3 (https://github.com/berkan52/select2-bootstrap4-theme)
3
+ *
4
+ * A theme for Select2 v4 and Bootstrap 4.1.1
5
+ *
6
+ * Release v1.0.3 - 2019-01-03
7
+ * Copyright 2019 Berkan Akyürek <berkan52@gmail.com>
8
+ * Licensed under MIT
9
+ */
10
+ .select2-container--bootstrap4 {
11
+ display: block;
12
+ }
13
+
14
+ .select2-container--bootstrap4 .select2-selection {
15
+ background-color: #fff;
16
+ border: 1px solid #ced4da;
17
+ border-radius: 0.25rem;
18
+ color: #495057;
19
+ font-size: 1rem;
20
+ outline: 0;
21
+ }
22
+
23
+ .select2-container--bootstrap4 .select2-selection.form-control {
24
+ border-radius: 0.25rem;
25
+ }
26
+
27
+ .select2-container--bootstrap4 .select2-search--dropdown .select2-search__field {
28
+ background-color: #fff;
29
+ border: 1px solid #ced4da;
30
+ border-radius: 0.25rem;
31
+ color: #495057;
32
+ font-size: 1rem;
33
+ }
34
+
35
+ .select2-container--bootstrap4 .select2-search__field {
36
+ outline: 0;
37
+ }
38
+
39
+ .select2-container--bootstrap4 .select2-search__field::-webkit-input-placeholder {
40
+ color: #6c757d;
41
+ }
42
+
43
+ .select2-container--bootstrap4 .select2-search__field:-moz-placeholder {
44
+ color: #6c757d;
45
+ }
46
+
47
+ .select2-container--bootstrap4 .select2-search__field::-moz-placeholder {
48
+ color: #6c757d;
49
+ opacity: 1;
50
+ }
51
+
52
+ .select2-container--bootstrap4 .select2-search__field:-ms-input-placeholder {
53
+ color: #6c757d;
54
+ }
55
+
56
+ .select2-container--bootstrap4 .select2-results__option {
57
+ padding: 0.375rem 0.75rem;
58
+ font-size: 1rem;
59
+ }
60
+
61
+ .select2-container--bootstrap4 .select2-results__option[role=group] {
62
+ padding: 0;
63
+ }
64
+
65
+ .select2-container--bootstrap4 .select2-results__option[aria-disabled=true] {
66
+ color: #6c757d;
67
+ cursor: not-allowed;
68
+ }
69
+
70
+ .select2-container--bootstrap4 .select2-results__option[aria-selected=true] {
71
+ background-color: #f8f9fa;
72
+ color: #16181b;
73
+ }
74
+
75
+ .select2-container--bootstrap4 .select2-results__option--highlighted[aria-selected] {
76
+ background-color: #007bff;
77
+ color: #fff;
78
+ }
79
+
80
+ .select2-container--bootstrap4 .select2-results__option .select2-results__option {
81
+ padding: 0.375rem 0.75rem;
82
+ }
83
+
84
+ .select2-container--bootstrap4 .select2-results__option .select2-results__option .select2-results__group {
85
+ padding-left: 0;
86
+ }
87
+
88
+ .select2-container--bootstrap4 .select2-results__option .select2-results__option .select2-results__option {
89
+ margin-left: -0.75rem;
90
+ padding-left: 1.5rem;
91
+ }
92
+
93
+ .select2-container--bootstrap4 .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
94
+ margin-left: -1.5rem;
95
+ padding-left: 2.25rem;
96
+ }
97
+
98
+ .select2-container--bootstrap4 .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
99
+ margin-left: -2.25rem;
100
+ padding-left: 3rem;
101
+ }
102
+
103
+ .select2-container--bootstrap4 .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
104
+ margin-left: -3rem;
105
+ padding-left: 3.75rem;
106
+ }
107
+
108
+ .select2-container--bootstrap4 .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
109
+ margin-left: -3.75rem;
110
+ padding-left: 4.5rem;
111
+ }
112
+
113
+ .select2-container--bootstrap4 .select2-results__group {
114
+ color: #6c757d;
115
+ display: block;
116
+ padding: 0.375rem 0.75rem;
117
+ font-size: 0.875rem;
118
+ line-height: 1.5;
119
+ white-space: nowrap;
120
+ }
121
+
122
+ .select2-container--bootstrap4.select2-container--focus .select2-selection, .select2-container--bootstrap4.select2-container--open .select2-selection {
123
+ transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
124
+ border-color: #80bdff;
125
+ }
126
+
127
+ @media screen and (prefers-reduced-motion: reduce) {
128
+ .select2-container--bootstrap4.select2-container--focus .select2-selection, .select2-container--bootstrap4.select2-container--open .select2-selection {
129
+ transition: none;
130
+ }
131
+ }
132
+
133
+ .select2-container--bootstrap4.select2-container--open .select2-selection .select2-selection__arrow b {
134
+ border-color: transparent transparent #6c757d transparent;
135
+ border-width: 0 0.25rem 0.25rem 0.25rem;
136
+ }
137
+
138
+ .select2-container--bootstrap4.select2-container--open.select2-container--below .select2-selection {
139
+ border-bottom-right-radius: 0;
140
+ border-bottom-left-radius: 0;
141
+ border-bottom-color: transparent;
142
+ }
143
+
144
+ .select2-container--bootstrap4.select2-container--open.select2-container--above .select2-selection {
145
+ border-top-left-radius: 0;
146
+ border-top-right-radius: 0;
147
+ border-top-color: transparent;
148
+ }
149
+
150
+ .select2-container--bootstrap4 .select2-selection__clear {
151
+ margin-top: -2px;
152
+ padding-left: 3px;
153
+ padding-right: 3px;
154
+ margin-left: -3px;
155
+ margin-right: -3px;
156
+ color: #6c757d;
157
+ cursor: pointer;
158
+ float: right;
159
+ font-weight: bold;
160
+ }
161
+
162
+ .select2-container--bootstrap4 .select2-selection__clear:hover {
163
+ color: #343a40;
164
+ }
165
+
166
+ .select2-container--bootstrap4.select2-container--disabled .select2-selection {
167
+ border-color: #ced4da;
168
+ }
169
+
170
+ .select2-container--bootstrap4.select2-container--disabled .select2-selection,
171
+ .select2-container--bootstrap4.select2-container--disabled .select2-search__field {
172
+ cursor: not-allowed;
173
+ }
174
+
175
+ .select2-container--bootstrap4.select2-container--disabled .select2-selection,
176
+ .select2-container--bootstrap4.select2-container--disabled .select2-selection--multiple .select2-selection__choice {
177
+ background-color: #e9ecef;
178
+ }
179
+
180
+ .select2-container--bootstrap4.select2-container--disabled .select2-selection__clear,
181
+ .select2-container--bootstrap4.select2-container--disabled .select2-selection--multiple .select2-selection__choice__remove {
182
+ display: none;
183
+ }
184
+
185
+ .select2-container--bootstrap4 .select2-dropdown {
186
+ border-color: #80bdff;
187
+ border-width: 1px;
188
+ overflow-x: hidden;
189
+ margin-top: -1px;
190
+ }
191
+
192
+ .select2-container--bootstrap4 .select2-dropdown--above {
193
+ margin-top: 1px;
194
+ }
195
+
196
+ .select2-container--bootstrap4 .select2-results > .select2-results__options {
197
+ max-height: 200px;
198
+ overflow-y: auto;
199
+ }
200
+
201
+ .select2-container--bootstrap4 .select2-selection--single {
202
+ display: flex;
203
+ align-items: center;
204
+ height: calc(2.25rem + 2px);
205
+ line-height: 1.5;
206
+ padding: 0 1.75rem 0 0.75rem;
207
+ }
208
+
209
+ .select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
210
+ display: flex;
211
+ justify-content: center;
212
+ align-items: center;
213
+ position: absolute;
214
+ top: 0;
215
+ bottom: 0;
216
+ right: 0.75rem;
217
+ }
218
+
219
+ .select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow b {
220
+ border-color: #6c757d transparent transparent transparent;
221
+ border-style: solid;
222
+ border-width: 0.25rem 0.25rem 0 0.25rem;
223
+ }
224
+
225
+ .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
226
+ flex-grow: 1;
227
+ padding: 0 3px 0 0;
228
+ margin-right: -3px;
229
+ color: #495057;
230
+ }
231
+
232
+ .select2-container--bootstrap4 .select2-selection--single .select2-selection__placeholder {
233
+ color: #6c757d;
234
+ }
235
+
236
+ .select2-container--bootstrap4 .select2-selection--multiple {
237
+ min-height: calc(2.25rem + 2px);
238
+ padding: 0;
239
+ height: auto;
240
+ cursor: text;
241
+ }
242
+
243
+ .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered {
244
+ box-sizing: border-box;
245
+ display: block;
246
+ line-height: 1.5;
247
+ list-style: none;
248
+ margin: 0;
249
+ overflow: hidden;
250
+ padding: 0.375rem 0.75rem 0 0.75rem;
251
+ width: 100%;
252
+ text-overflow: ellipsis;
253
+ white-space: nowrap;
254
+ }
255
+
256
+ .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__placeholder {
257
+ color: #6c757d;
258
+ float: left;
259
+ margin-top: 5px;
260
+ }
261
+
262
+ .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__clear {
263
+ border: 1px solid transparent;
264
+ margin-bottom: calc(0.375rem + 2px);
265
+ }
266
+
267
+ .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
268
+ color: #495057;
269
+ background: transparent;
270
+ border: 1px solid #343a40;
271
+ border-radius: 0.25rem;
272
+ cursor: default;
273
+ float: left;
274
+ overflow: hidden;
275
+ text-overflow: ellipsis;
276
+ max-width: 100%;
277
+ margin: 0 0.375rem 0.375rem 0;
278
+ padding: 0 0.75rem;
279
+ }
280
+
281
+ .select2-container--bootstrap4 .select2-selection--multiple .select2-search--inline {
282
+ margin-bottom: 0.375rem;
283
+ }
284
+
285
+ .select2-container--bootstrap4 .select2-selection--multiple .select2-search--inline .select2-search__field {
286
+ background: transparent;
287
+ line-height: 1.5;
288
+ margin-top: 0;
289
+ }
290
+
291
+ .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove {
292
+ color: #6c757d;
293
+ cursor: pointer;
294
+ display: inline-block;
295
+ font-weight: bold;
296
+ margin-right: 0.375rem;
297
+ margin-left: -0.375rem;
298
+ }
299
+
300
+ .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove:hover {
301
+ color: #343a40;
302
+ }
303
+
304
+ .select2-container--bootstrap4 .select2-selection--single.input-sm,
305
+ .input-group-sm .select2-container--bootstrap4 .select2-selection--single,
306
+ .form-group-sm .select2-container--bootstrap4 .select2-selection--single {
307
+ border-radius: 0.2rem;
308
+ font-size: 0.875rem;
309
+ height: calc(1.8125rem + 2px);
310
+ line-height: 1.5;
311
+ }
312
+
313
+ .select2-container--bootstrap4 .select2-selection--multiple.input-sm,
314
+ .input-group-sm .select2-container--bootstrap4 .select2-selection--multiple,
315
+ .form-group-sm .select2-container--bootstrap4 .select2-selection--multiple {
316
+ min-height: calc(1.8125rem + 2px);
317
+ border-radius: 0.2rem;
318
+ }
319
+
320
+ .select2-container--bootstrap4 .select2-selection--multiple.input-sm .select2-selection__rendered,
321
+ .input-group-sm .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered,
322
+ .form-group-sm .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered {
323
+ padding: 0.25rem 0.5rem 0 0.5rem;
324
+ font-size: 0.875rem;
325
+ }
326
+
327
+ .select2-container--bootstrap4 .select2-selection--multiple.input-sm .select2-selection__clear,
328
+ .input-group-sm .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__clear,
329
+ .form-group-sm .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__clear {
330
+ margin-bottom: calc(0.25rem + 2px);
331
+ }
332
+
333
+ .select2-container--bootstrap4 .select2-selection--multiple.input-sm .select2-selection__choice,
334
+ .input-group-sm .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice,
335
+ .form-group-sm .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
336
+ line-height: 1.5;
337
+ margin: 0 0.25rem 0.25rem 0;
338
+ padding: 0 0.5rem;
339
+ }
340
+
341
+ .select2-container--bootstrap4 .select2-selection--multiple.input-sm .select2-search--inline,
342
+ .input-group-sm .select2-container--bootstrap4 .select2-selection--multiple .select2-search--inline,
343
+ .form-group-sm .select2-container--bootstrap4 .select2-selection--multiple .select2-search--inline {
344
+ margin-bottom: 0.25rem;
345
+ }
346
+
347
+ .select2-container--bootstrap4 .select2-selection--multiple.input-sm .select2-search--inline .select2-search__field,
348
+ .input-group-sm .select2-container--bootstrap4 .select2-selection--multiple .select2-search--inline .select2-search__field,
349
+ .form-group-sm .select2-container--bootstrap4 .select2-selection--multiple .select2-search--inline .select2-search__field {
350
+ font-size: 0.875rem;
351
+ }
352
+
353
+ .select2-container--bootstrap4 .select2-selection--multiple.input-sm .select2-selection__choice__remove,
354
+ .input-group-sm .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove,
355
+ .form-group-sm .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove {
356
+ margin-right: 0.25rem;
357
+ margin-left: -0.25rem;
358
+ }
359
+
360
+ .select2-container--bootstrap4 .select2-selection--single.input-lg,
361
+ .input-group-lg .select2-container--bootstrap4 .select2-selection--single,
362
+ .form-group-lg .select2-container--bootstrap4 .select2-selection--single {
363
+ border-radius: 0.3rem;
364
+ font-size: 1.25rem;
365
+ height: calc(2.875rem + 2px);
366
+ line-height: 1.5;
367
+ padding: 0.5rem 2rem 0.5rem 1rem;
368
+ }
369
+
370
+ .select2-container--bootstrap4 .select2-selection--single.input-lg .select2-selection__arrow b,
371
+ .input-group-lg .select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow b,
372
+ .form-group-lg .select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow b {
373
+ border-width: 0.3125rem 0.3125rem 0 0.3125rem;
374
+ }
375
+
376
+ .select2-container--bootstrap4 .select2-selection--multiple.input-lg,
377
+ .input-group-lg .select2-container--bootstrap4 .select2-selection--multiple,
378
+ .form-group-lg .select2-container--bootstrap4 .select2-selection--multiple {
379
+ min-height: calc(2.875rem + 2px);
380
+ border-radius: 0.3rem;
381
+ }
382
+
383
+ .select2-container--bootstrap4 .select2-selection--multiple.input-lg .select2-selection__rendered,
384
+ .input-group-lg .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered,
385
+ .form-group-lg .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered {
386
+ padding: 0.5rem 1rem 0 1rem;
387
+ font-size: 1.25rem;
388
+ }
389
+
390
+ .select2-container--bootstrap4 .select2-selection--multiple.input-lg .select2-selection__clear,
391
+ .input-group-lg .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__clear,
392
+ .form-group-lg .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__clear {
393
+ margin-bottom: calc(0.5rem + 2px);
394
+ }
395
+
396
+ .select2-container--bootstrap4 .select2-selection--multiple.input-lg .select2-selection__choice,
397
+ .input-group-lg .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice,
398
+ .form-group-lg .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
399
+ font-size: 1.25rem;
400
+ margin: 0 0.5rem 0.5rem 0;
401
+ padding: 0 1rem;
402
+ }
403
+
404
+ .select2-container--bootstrap4 .select2-selection--multiple.input-lg .select2-search--inline,
405
+ .input-group-lg .select2-container--bootstrap4 .select2-selection--multiple .select2-search--inline,
406
+ .form-group-lg .select2-container--bootstrap4 .select2-selection--multiple .select2-search--inline {
407
+ margin-bottom: 0.5rem;
408
+ }
409
+
410
+ .select2-container--bootstrap4 .select2-selection--multiple.input-lg .select2-search--inline .select2-search__field,
411
+ .input-group-lg .select2-container--bootstrap4 .select2-selection--multiple .select2-search--inline .select2-search__field,
412
+ .form-group-lg .select2-container--bootstrap4 .select2-selection--multiple .select2-search--inline .select2-search__field {
413
+ font-size: 1.25rem;
414
+ }
415
+
416
+ .select2-container--bootstrap4 .select2-selection--multiple.input-lg .select2-selection__choice__remove,
417
+ .input-group-lg .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove,
418
+ .form-group-lg .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove {
419
+ margin-right: 0.5rem;
420
+ margin-left: -0.5rem;
421
+ }
422
+
423
+ .select2-container--bootstrap4 .select2-selection.input-lg.select2-container--open .select2-selection--single .select2-selection__arrow b {
424
+ border-color: transparent transparent #6c757d transparent;
425
+ border-width: 0 0.3125rem 0.3125rem 0.3125rem;
426
+ }
427
+
428
+ .input-group-lg .select2-container--bootstrap4 .select2-selection.select2-container--open .select2-selection--single .select2-selection__arrow b {
429
+ border-color: transparent transparent #6c757d transparent;
430
+ border-width: 0 0.3125rem 0.3125rem 0.3125rem;
431
+ }
432
+
433
+ .select2-container--bootstrap4[dir="rtl"] .select2-selection--single {
434
+ padding-left: 1.75rem;
435
+ padding-right: 0.75rem;
436
+ }
437
+
438
+ .select2-container--bootstrap4[dir="rtl"] .select2-selection--single .select2-selection__rendered {
439
+ padding-right: 0;
440
+ padding-left: 0;
441
+ text-align: right;
442
+ }
443
+
444
+ .select2-container--bootstrap4[dir="rtl"] .select2-selection--single .select2-selection__clear {
445
+ float: left;
446
+ }
447
+
448
+ .select2-container--bootstrap4[dir="rtl"] .select2-selection--single .select2-selection__arrow {
449
+ left: 0.75rem;
450
+ right: auto;
451
+ }
452
+
453
+ .select2-container--bootstrap4[dir="rtl"] .select2-selection--single .select2-selection__arrow b {
454
+ margin-left: 0;
455
+ }
456
+
457
+ .select2-container--bootstrap4[dir="rtl"] .select2-selection--multiple .select2-selection__choice,
458
+ .select2-container--bootstrap4[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder,
459
+ .select2-container--bootstrap4[dir="rtl"] .select2-selection--multiple .select2-search--inline {
460
+ float: right;
461
+ }
462
+
463
+ .select2-container--bootstrap4[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
464
+ margin-left: 0;
465
+ margin-right: 0.375rem;
466
+ }
467
+
468
+ .select2-container--bootstrap4[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
469
+ margin-left: 2px;
470
+ margin-right: auto;
471
+ }
472
+
473
+ .has-warning .select2-dropdown,
474
+ .has-warning .select2-selection {
475
+ border-color: #ffc107;
476
+ }
477
+
478
+ .has-warning .select2-container--focus .select2-selection,
479
+ .has-warning .select2-container--open .select2-selection {
480
+ border-color: #d39e00;
481
+ }
482
+
483
+ .has-warning.select2-drop-active {
484
+ border-color: #d39e00;
485
+ }
486
+
487
+ .has-warning.select2-drop-active.select2-drop.select2-drop-above {
488
+ border-top-color: #d39e00;
489
+ }
490
+
491
+ .has-error .select2-dropdown,
492
+ .has-error .select2-selection {
493
+ border-color: #dc3545;
494
+ }
495
+
496
+ .has-error .select2-container--focus .select2-selection,
497
+ .has-error .select2-container--open .select2-selection {
498
+ border-color: #bd2130;
499
+ }
500
+
501
+ .has-error.select2-drop-active {
502
+ border-color: #bd2130;
503
+ }
504
+
505
+ .has-error.select2-drop-active.select2-drop.select2-drop-above {
506
+ border-top-color: #bd2130;
507
+ }
508
+
509
+ .has-success .select2-dropdown,
510
+ .has-success .select2-selection {
511
+ border-color: #28a745;
512
+ }
513
+
514
+ .has-success .select2-container--focus .select2-selection,
515
+ .has-success .select2-container--open .select2-selection {
516
+ border-color: #1e7e34;
517
+ }
518
+
519
+ .has-success.select2-drop-active {
520
+ border-color: #1e7e34;
521
+ }
522
+
523
+ .has-success.select2-drop-active.select2-drop.select2-drop-above {
524
+ border-top-color: #1e7e34;
525
+ }
526
+
527
+ .input-group > .select2-hidden-accessible:first-child + .select2-container--bootstrap4 > .selection > .select2-selection,
528
+ .input-group > .select2-hidden-accessible:first-child + .select2-container--bootstrap4 > .selection > .select2-selection.form-control {
529
+ border-top-right-radius: 0;
530
+ border-bottom-right-radius: 0;
531
+ }
532
+
533
+ .input-group > .select2-hidden-accessible:not(:first-child) + .select2-container--bootstrap4:not(:last-child) > .selection > .select2-selection,
534
+ .input-group > .select2-hidden-accessible:not(:first-child) + .select2-container--bootstrap4:not(:last-child) > .selection > .select2-selection.form-control {
535
+ border-radius: 0;
536
+ }
537
+
538
+ .input-group > .select2-hidden-accessible:not(:first-child):not(:last-child) + .select2-container--bootstrap4:last-child > .selection > .select2-selection,
539
+ .input-group > .select2-hidden-accessible:not(:first-child):not(:last-child) + .select2-container--bootstrap4:last-child > .selection > .select2-selection.form-control {
540
+ border-top-left-radius: 0;
541
+ border-bottom-left-radius: 0;
542
+ }
543
+
544
+ .input-group > .select2-container--bootstrap4 {
545
+ display: table;
546
+ table-layout: fixed;
547
+ position: relative;
548
+ z-index: 2;
549
+ width: 100%;
550
+ margin-bottom: 0;
551
+ }
552
+
553
+ .input-group > .select2-container--bootstrap4 > .selection > .select2-selection.form-control {
554
+ float: none;
555
+ }
556
+
557
+ .input-group > .select2-container--bootstrap4.select2-container--open, .input-group > .select2-container--bootstrap4.select2-container--focus {
558
+ z-index: 3;
559
+ }
560
+
561
+ .input-group > .select2-container--bootstrap4,
562
+ .input-group > .select2-container--bootstrap4 .input-group-btn,
563
+ .input-group > .select2-container--bootstrap4 .input-group-btn .btn {
564
+ vertical-align: top;
565
+ }
566
+
567
+ .form-control.select2-hidden-accessible {
568
+ position: absolute !important;
569
+ width: 1px !important;
570
+ }
571
+
572
+ @media (min-width: 576px) {
573
+ .form-inline .select2-container--bootstrap4 {
574
+ display: inline-block;
575
+ }
576
+ }