select2-bootstrap-rails 4.1.0.pre.rc.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.
Files changed (75) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +5 -0
  3. data/README.md +82 -0
  4. data/Rakefile +9 -0
  5. data/lib/select2-bootstrap-rails/engine.rb +6 -0
  6. data/lib/select2-bootstrap-rails/source_file.rb +53 -0
  7. data/lib/select2-bootstrap-rails/version.rb +5 -0
  8. data/lib/select2-bootstrap-rails.rb +7 -0
  9. data/select2-bootstrap-rails.gemspec +23 -0
  10. data/vendor/assets/javascripts/select2-full.js +6114 -0
  11. data/vendor/assets/javascripts/select2.js +5403 -0
  12. data/vendor/assets/javascripts/select2_locale_af.js +3 -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_bn.js +3 -0
  17. data/vendor/assets/javascripts/select2_locale_bs.js +3 -0
  18. data/vendor/assets/javascripts/select2_locale_ca.js +3 -0
  19. data/vendor/assets/javascripts/select2_locale_cs.js +3 -0
  20. data/vendor/assets/javascripts/select2_locale_da.js +3 -0
  21. data/vendor/assets/javascripts/select2_locale_de.js +3 -0
  22. data/vendor/assets/javascripts/select2_locale_dsb.js +3 -0
  23. data/vendor/assets/javascripts/select2_locale_el.js +3 -0
  24. data/vendor/assets/javascripts/select2_locale_en.js +3 -0
  25. data/vendor/assets/javascripts/select2_locale_eo.js +3 -0
  26. data/vendor/assets/javascripts/select2_locale_es.js +3 -0
  27. data/vendor/assets/javascripts/select2_locale_et.js +3 -0
  28. data/vendor/assets/javascripts/select2_locale_eu.js +3 -0
  29. data/vendor/assets/javascripts/select2_locale_fa.js +3 -0
  30. data/vendor/assets/javascripts/select2_locale_fi.js +3 -0
  31. data/vendor/assets/javascripts/select2_locale_fr.js +3 -0
  32. data/vendor/assets/javascripts/select2_locale_gl.js +3 -0
  33. data/vendor/assets/javascripts/select2_locale_he.js +3 -0
  34. data/vendor/assets/javascripts/select2_locale_hi.js +3 -0
  35. data/vendor/assets/javascripts/select2_locale_hr.js +3 -0
  36. data/vendor/assets/javascripts/select2_locale_hsb.js +3 -0
  37. data/vendor/assets/javascripts/select2_locale_hu.js +3 -0
  38. data/vendor/assets/javascripts/select2_locale_hy.js +3 -0
  39. data/vendor/assets/javascripts/select2_locale_id.js +3 -0
  40. data/vendor/assets/javascripts/select2_locale_is.js +3 -0
  41. data/vendor/assets/javascripts/select2_locale_it.js +3 -0
  42. data/vendor/assets/javascripts/select2_locale_ja.js +3 -0
  43. data/vendor/assets/javascripts/select2_locale_ka.js +3 -0
  44. data/vendor/assets/javascripts/select2_locale_km.js +3 -0
  45. data/vendor/assets/javascripts/select2_locale_ko.js +3 -0
  46. data/vendor/assets/javascripts/select2_locale_lt.js +3 -0
  47. data/vendor/assets/javascripts/select2_locale_lv.js +3 -0
  48. data/vendor/assets/javascripts/select2_locale_mk.js +3 -0
  49. data/vendor/assets/javascripts/select2_locale_ms.js +3 -0
  50. data/vendor/assets/javascripts/select2_locale_nb.js +3 -0
  51. data/vendor/assets/javascripts/select2_locale_ne.js +3 -0
  52. data/vendor/assets/javascripts/select2_locale_nl.js +3 -0
  53. data/vendor/assets/javascripts/select2_locale_pa.js +3 -0
  54. data/vendor/assets/javascripts/select2_locale_pl.js +3 -0
  55. data/vendor/assets/javascripts/select2_locale_ps.js +3 -0
  56. data/vendor/assets/javascripts/select2_locale_pt-BR.js +3 -0
  57. data/vendor/assets/javascripts/select2_locale_pt.js +3 -0
  58. data/vendor/assets/javascripts/select2_locale_ro.js +3 -0
  59. data/vendor/assets/javascripts/select2_locale_ru.js +3 -0
  60. data/vendor/assets/javascripts/select2_locale_sk.js +3 -0
  61. data/vendor/assets/javascripts/select2_locale_sl.js +3 -0
  62. data/vendor/assets/javascripts/select2_locale_sq.js +3 -0
  63. data/vendor/assets/javascripts/select2_locale_sr-Cyrl.js +3 -0
  64. data/vendor/assets/javascripts/select2_locale_sr.js +3 -0
  65. data/vendor/assets/javascripts/select2_locale_sv.js +3 -0
  66. data/vendor/assets/javascripts/select2_locale_th.js +3 -0
  67. data/vendor/assets/javascripts/select2_locale_tk.js +3 -0
  68. data/vendor/assets/javascripts/select2_locale_tr.js +3 -0
  69. data/vendor/assets/javascripts/select2_locale_uk.js +3 -0
  70. data/vendor/assets/javascripts/select2_locale_vi.js +3 -0
  71. data/vendor/assets/javascripts/select2_locale_zh-CN.js +3 -0
  72. data/vendor/assets/javascripts/select2_locale_zh-TW.js +3 -0
  73. data/vendor/assets/stylesheets/select2-bootstrap-5-theme.css +486 -0
  74. data/vendor/assets/stylesheets/select2.css +431 -0
  75. metadata +176 -0
@@ -0,0 +1,486 @@
1
+ /*!
2
+ * Select2 v4 Bootstrap 5 theme v1.0.0
3
+ */
4
+ .select2-container--bootstrap-5 {
5
+ display: block;
6
+ }
7
+
8
+ .select2-container--bootstrap-5 *:focus {
9
+ outline: 0;
10
+ }
11
+
12
+ .select2-container--bootstrap-5 .select2-selection {
13
+ width: 100%;
14
+ min-height: calc(1.5em + 0.75rem + 2px);
15
+ padding: 0.375rem 0.75rem;
16
+ font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
17
+ font-size: 1rem;
18
+ font-weight: 400;
19
+ line-height: 1.5;
20
+ color: #212529;
21
+ background-color: #fff;
22
+ border: 1px solid #ced4da;
23
+ border-radius: 0.25rem;
24
+ transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
25
+ -webkit-appearance: none;
26
+ -moz-appearance: none;
27
+ appearance: none;
28
+ }
29
+
30
+ @media (prefers-reduced-motion: reduce) {
31
+ .select2-container--bootstrap-5 .select2-selection {
32
+ transition: none;
33
+ }
34
+ }
35
+
36
+ .select2-container--bootstrap-5.select2-container--focus .select2-selection, .select2-container--bootstrap-5.select2-container--open .select2-selection {
37
+ border-color: #86b7fe;
38
+ box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
39
+ }
40
+
41
+ .select2-container--bootstrap-5.select2-container--open.select2-container--below .select2-selection {
42
+ border-bottom: 1px solid transparent;
43
+ border-bottom-right-radius: 0;
44
+ border-bottom-left-radius: 0;
45
+ }
46
+
47
+ .select2-container--bootstrap-5.select2-container--open.select2-container--above .select2-selection {
48
+ border-top: 1px solid transparent;
49
+ border-top-left-radius: 0;
50
+ border-top-right-radius: 0;
51
+ }
52
+
53
+ .select2-container--bootstrap-5 .select2-search {
54
+ width: 100%;
55
+ }
56
+
57
+ .select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear,
58
+ .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__clear {
59
+ position: absolute;
60
+ top: 50%;
61
+ right: 2.25rem;
62
+ width: 0.75rem;
63
+ height: 0.75rem;
64
+ padding: 0.25em 0.25em;
65
+ background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23676a6d'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/0.75rem auto no-repeat;
66
+ transform: translateY(-50%);
67
+ }
68
+
69
+ .select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear:hover,
70
+ .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__clear:hover {
71
+ background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/0.75rem auto no-repeat;
72
+ }
73
+
74
+ .select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear > span,
75
+ .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__clear > span {
76
+ display: none;
77
+ }
78
+
79
+ .select2-container--bootstrap-5 .select2-dropdown {
80
+ border-color: #ced4da;
81
+ border-radius: 0.25rem;
82
+ }
83
+
84
+ .select2-container--bootstrap-5 .select2-dropdown.select2-dropdown--below {
85
+ border-top: 0 solid transparent;
86
+ border-top-left-radius: 0;
87
+ border-top-right-radius: 0;
88
+ }
89
+
90
+ .select2-container--bootstrap-5 .select2-dropdown.select2-dropdown--above {
91
+ border-bottom-right-radius: 0;
92
+ border-bottom-left-radius: 0;
93
+ }
94
+
95
+ .select2-container--bootstrap-5 .select2-dropdown .select2-search {
96
+ padding: 0.375rem 0.75rem;
97
+ }
98
+
99
+ .select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field {
100
+ display: block;
101
+ width: 100%;
102
+ padding: 0.375rem 0.75rem;
103
+ font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
104
+ font-size: 1rem;
105
+ font-weight: 400;
106
+ line-height: 1.5;
107
+ color: #212529;
108
+ background-color: #fff;
109
+ background-clip: padding-box;
110
+ border: 1px solid #ced4da;
111
+ -webkit-appearance: none;
112
+ -moz-appearance: none;
113
+ appearance: none;
114
+ border-radius: 0.25rem;
115
+ transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
116
+ }
117
+
118
+ @media (prefers-reduced-motion: reduce) {
119
+ .select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field {
120
+ transition: none;
121
+ }
122
+ }
123
+
124
+ .select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field:focus {
125
+ border-color: #86b7fe;
126
+ box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
127
+ }
128
+
129
+ .select2-container--bootstrap-5 .select2-dropdown .select2-results__options {
130
+ max-height: 15rem;
131
+ overflow-y: auto;
132
+ }
133
+
134
+ .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option {
135
+ padding: 0.375rem 0.75rem;
136
+ font-size: 1rem;
137
+ font-weight: 400;
138
+ line-height: 1.5;
139
+ }
140
+
141
+ .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__message {
142
+ color: #6c757d;
143
+ }
144
+
145
+ .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--highlighted {
146
+ color: #000;
147
+ background-color: #f8f9fa;
148
+ }
149
+
150
+ .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected {
151
+ color: #fff;
152
+ background-color: #0d6efd;
153
+ }
154
+
155
+ .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option[role="group"] {
156
+ padding: 0;
157
+ }
158
+
159
+ .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option[role="group"] .select2-results__group {
160
+ padding: 0.375rem 0.375rem;
161
+ font-weight: 500;
162
+ line-height: 1.5;
163
+ color: #6c757d;
164
+ }
165
+
166
+ .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option[role="group"] .select2-results__options--nested .select2-results__option {
167
+ padding: 0.375rem 0.75rem;
168
+ }
169
+
170
+ .select2-container--bootstrap-5 .select2-selection--single {
171
+ padding: 0.375rem 2.25rem 0.375rem 0.75rem;
172
+ background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
173
+ background-repeat: no-repeat;
174
+ background-position: right 0.75rem center;
175
+ background-size: 16px 12px;
176
+ }
177
+
178
+ .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
179
+ padding: 0;
180
+ font-weight: 400;
181
+ line-height: 1.5;
182
+ color: #212529;
183
+ }
184
+
185
+ .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered .select2-selection__placeholder {
186
+ font-weight: 400;
187
+ line-height: 1.5;
188
+ color: #6c757d;
189
+ }
190
+
191
+ .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered .select2-selection__arrow {
192
+ display: none;
193
+ }
194
+
195
+ .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
196
+ display: flex;
197
+ flex-direction: row;
198
+ margin: 0;
199
+ list-style: none;
200
+ }
201
+
202
+ .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered:not(:empty) {
203
+ padding-bottom: 0.375rem;
204
+ }
205
+
206
+ .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
207
+ display: flex;
208
+ flex-direction: row;
209
+ align-items: center;
210
+ padding: 0.35em 0.65em;
211
+ margin-right: .375rem;
212
+ margin-bottom: .375rem;
213
+ font-size: 1rem;
214
+ color: #212529;
215
+ cursor: auto;
216
+ border: 1px solid #ced4da;
217
+ border-radius: 0.25rem;
218
+ }
219
+
220
+ .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice .select2-selection__choice__remove {
221
+ width: 0.75rem;
222
+ height: 0.75rem;
223
+ padding: 0.25em 0.25em;
224
+ margin-right: .25rem;
225
+ background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23676a6d'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/0.75rem auto no-repeat;
226
+ border: 0;
227
+ }
228
+
229
+ .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice .select2-selection__choice__remove:hover {
230
+ background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/0.75rem auto no-repeat;
231
+ }
232
+
233
+ .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice .select2-selection__choice__remove > span {
234
+ display: none;
235
+ }
236
+
237
+ .select2-container--bootstrap-5 .select2-selection--multiple .select2-search {
238
+ display: block;
239
+ width: 100%;
240
+ height: 1.5em;
241
+ }
242
+
243
+ .select2-container--bootstrap-5 .select2-selection--multiple .select2-search .select2-search__field {
244
+ width: 100%;
245
+ height: 1.5em;
246
+ margin-top: 0;
247
+ margin-left: 0;
248
+ font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
249
+ line-height: 1.5;
250
+ background-color: transparent;
251
+ }
252
+
253
+ .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__clear {
254
+ right: 0.75rem;
255
+ }
256
+
257
+ .select2-container--bootstrap-5.select2-container--disabled .select2-selection, .select2-container--bootstrap-5.select2-container--disabled.select2-container--focus .select2-selection {
258
+ color: #6c757d;
259
+ cursor: not-allowed;
260
+ background-color: #e9ecef;
261
+ border-color: #ced4da;
262
+ box-shadow: none;
263
+ }
264
+
265
+ .select2-container--bootstrap-5.select2-container--disabled .select2-selection--multiple .select2-selection__clear, .select2-container--bootstrap-5.select2-container--disabled.select2-container--focus .select2-selection--multiple .select2-selection__clear {
266
+ display: none;
267
+ }
268
+
269
+ .select2-container--bootstrap-5.select2-container--disabled .select2-selection--multiple .select2-selection__choice, .select2-container--bootstrap-5.select2-container--disabled.select2-container--focus .select2-selection--multiple .select2-selection__choice {
270
+ cursor: not-allowed;
271
+ }
272
+
273
+ .select2-container--bootstrap-5.select2-container--disabled .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove, .select2-container--bootstrap-5.select2-container--disabled.select2-container--focus .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove {
274
+ display: none;
275
+ }
276
+
277
+ .select2-container--bootstrap-5.select2-container--disabled .select2-selection--multiple .select2-selection__rendered:not(:empty), .select2-container--bootstrap-5.select2-container--disabled.select2-container--focus .select2-selection--multiple .select2-selection__rendered:not(:empty) {
278
+ padding-bottom: 0;
279
+ }
280
+
281
+ .select2-container--bootstrap-5.select2-container--disabled .select2-selection--multiple .select2-selection__rendered:not(:empty) + .select2-search, .select2-container--bootstrap-5.select2-container--disabled.select2-container--focus .select2-selection--multiple .select2-selection__rendered:not(:empty) + .select2-search {
282
+ display: none;
283
+ }
284
+
285
+ .input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu).select2-container--bootstrap-5 .select2-selection {
286
+ border-top-right-radius: 0;
287
+ border-bottom-right-radius: 0;
288
+ }
289
+
290
+ .input-group.has-validation > :nth-last-child(n + 3):not(.dropdown-toggle):not(.dropdown-menu).select2-container--bootstrap-5 .select2-selection {
291
+ border-top-right-radius: 0;
292
+ border-bottom-right-radius: 0;
293
+ }
294
+
295
+ .input-group > .input-group-text ~ .select2-container--bootstrap-5 .select2-selection,
296
+ .input-group > .btn ~ .select2-container--bootstrap-5 .select2-selection,
297
+ .input-group > .dropdown-menu ~ .select2-container--bootstrap-5 .select2-selection {
298
+ border-top-left-radius: 0;
299
+ border-bottom-left-radius: 0;
300
+ }
301
+
302
+ .input-group .select2-container--bootstrap-5 {
303
+ flex-grow: 1;
304
+ }
305
+
306
+ .input-group .select2-container--bootstrap-5 .select2-selection {
307
+ height: 100%;
308
+ }
309
+
310
+ .is-valid + .select2-container--bootstrap-5 .select2-selection,
311
+ form.was-validated select:valid + .select2-container--bootstrap-5 .select2-selection {
312
+ border-color: #198754;
313
+ }
314
+
315
+ .is-valid + .select2-container--bootstrap-5.select2-container--focus .select2-selection, .is-valid + .select2-container--bootstrap-5.select2-container--open .select2-selection,
316
+ form.was-validated select:valid + .select2-container--bootstrap-5.select2-container--focus .select2-selection,
317
+ form.was-validated select:valid + .select2-container--bootstrap-5.select2-container--open .select2-selection {
318
+ border-color: #198754;
319
+ box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
320
+ }
321
+
322
+ .is-valid + .select2-container--bootstrap-5.select2-container--focus.select2-container--below .select2-selection, .is-valid + .select2-container--bootstrap-5.select2-container--open.select2-container--below .select2-selection,
323
+ form.was-validated select:valid + .select2-container--bootstrap-5.select2-container--focus.select2-container--below .select2-selection,
324
+ form.was-validated select:valid + .select2-container--bootstrap-5.select2-container--open.select2-container--below .select2-selection {
325
+ border-bottom: 1px solid transparent;
326
+ }
327
+
328
+ .is-valid + .select2-container--bootstrap-5.select2-container--focus.select2-container--above .select2-selection, .is-valid + .select2-container--bootstrap-5.select2-container--open.select2-container--above .select2-selection,
329
+ form.was-validated select:valid + .select2-container--bootstrap-5.select2-container--focus.select2-container--above .select2-selection,
330
+ form.was-validated select:valid + .select2-container--bootstrap-5.select2-container--open.select2-container--above .select2-selection {
331
+ border-top: 1px solid transparent;
332
+ border-top-left-radius: 0;
333
+ border-top-right-radius: 0;
334
+ }
335
+
336
+ .is-invalid + .select2-container--bootstrap-5 .select2-selection,
337
+ form.was-validated select:invalid + .select2-container--bootstrap-5 .select2-selection {
338
+ border-color: #dc3545;
339
+ }
340
+
341
+ .is-invalid + .select2-container--bootstrap-5.select2-container--focus .select2-selection, .is-invalid + .select2-container--bootstrap-5.select2-container--open .select2-selection,
342
+ form.was-validated select:invalid + .select2-container--bootstrap-5.select2-container--focus .select2-selection,
343
+ form.was-validated select:invalid + .select2-container--bootstrap-5.select2-container--open .select2-selection {
344
+ border-color: #dc3545;
345
+ box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
346
+ }
347
+
348
+ .is-invalid + .select2-container--bootstrap-5.select2-container--focus.select2-container--below .select2-selection, .is-invalid + .select2-container--bootstrap-5.select2-container--open.select2-container--below .select2-selection,
349
+ form.was-validated select:invalid + .select2-container--bootstrap-5.select2-container--focus.select2-container--below .select2-selection,
350
+ form.was-validated select:invalid + .select2-container--bootstrap-5.select2-container--open.select2-container--below .select2-selection {
351
+ border-bottom: 1px solid transparent;
352
+ }
353
+
354
+ .is-invalid + .select2-container--bootstrap-5.select2-container--focus.select2-container--above .select2-selection, .is-invalid + .select2-container--bootstrap-5.select2-container--open.select2-container--above .select2-selection,
355
+ form.was-validated select:invalid + .select2-container--bootstrap-5.select2-container--focus.select2-container--above .select2-selection,
356
+ form.was-validated select:invalid + .select2-container--bootstrap-5.select2-container--open.select2-container--above .select2-selection {
357
+ border-top: 1px solid transparent;
358
+ border-top-left-radius: 0;
359
+ border-top-right-radius: 0;
360
+ }
361
+
362
+ .select2-container--bootstrap-5 .select2--small.select2-selection {
363
+ min-height: calc(1.5em + 0.5rem + 2px);
364
+ padding: 0.25rem 0.5rem;
365
+ font-size: 0.875rem;
366
+ }
367
+
368
+ .select2-container--bootstrap-5 .select2--small.select2-selection--single .select2-selection__clear, .select2-container--bootstrap-5 .select2--small.select2-selection--multiple .select2-selection__clear {
369
+ width: 0.5rem;
370
+ height: 0.5rem;
371
+ padding: 0.125rem 0.125rem;
372
+ background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23676a6d'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/0.5rem auto no-repeat;
373
+ }
374
+
375
+ .select2-container--bootstrap-5 .select2--small.select2-selection--single .select2-selection__clear:hover, .select2-container--bootstrap-5 .select2--small.select2-selection--multiple .select2-selection__clear:hover {
376
+ background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/0.5rem auto no-repeat;
377
+ }
378
+
379
+ .select2-container--bootstrap-5 .select2--small.select2-dropdown .select2-search .select2-search__field {
380
+ padding: 0.25rem 0.5rem;
381
+ font-size: 0.875rem;
382
+ }
383
+
384
+ .select2-container--bootstrap-5 .select2--small.select2-dropdown .select2-results__options .select2-results__option {
385
+ padding: 0.25rem 0.5rem;
386
+ font-size: 0.875rem;
387
+ }
388
+
389
+ .select2-container--bootstrap-5 .select2--small.select2-dropdown .select2-results__options .select2-results__option[role="group"] .select2-results__group {
390
+ padding: 0.25rem 0.25rem;
391
+ }
392
+
393
+ .select2-container--bootstrap-5 .select2--small.select2-dropdown .select2-results__options .select2-results__option[role="group"] .select2-results__options--nested .select2-results__option {
394
+ padding: 0.25rem 0.5rem;
395
+ }
396
+
397
+ .select2-container--bootstrap-5 .select2--small.select2-selection--single {
398
+ padding: 0.25rem 2.25rem 0.25rem 0.5rem;
399
+ }
400
+
401
+ .select2-container--bootstrap-5 .select2--small.select2-selection--multiple .select2-selection__rendered:not(:empty) {
402
+ padding-bottom: 0.25rem;
403
+ }
404
+
405
+ .select2-container--bootstrap-5 .select2--small.select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
406
+ padding: 0.35em 0.65em;
407
+ font-size: 0.875rem;
408
+ }
409
+
410
+ .select2-container--bootstrap-5 .select2--small.select2-selection--multiple .select2-selection__rendered .select2-selection__choice .select2-selection__choice__remove {
411
+ width: 0.5rem;
412
+ height: 0.5rem;
413
+ padding: 0.125rem 0.125rem;
414
+ background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23676a6d'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/0.5rem auto no-repeat;
415
+ }
416
+
417
+ .select2-container--bootstrap-5 .select2--small.select2-selection--multiple .select2-selection__rendered .select2-selection__choice .select2-selection__choice__remove:hover {
418
+ background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/0.5rem auto no-repeat;
419
+ }
420
+
421
+ .select2-container--bootstrap-5 .select2--small.select2-selection--multiple .select2-selection__clear {
422
+ right: 0.5rem;
423
+ }
424
+
425
+ .select2-container--bootstrap-5 .select2--large.select2-selection {
426
+ min-height: calc(1.5em + 1rem + 2px);
427
+ padding: 0.5rem 1rem;
428
+ font-size: 1.25rem;
429
+ }
430
+
431
+ .select2-container--bootstrap-5 .select2--large.select2-selection--single .select2-selection__clear, .select2-container--bootstrap-5 .select2--large.select2-selection--multiple .select2-selection__clear {
432
+ width: 1rem;
433
+ height: 1rem;
434
+ padding: 0.5rem 0.5rem;
435
+ background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23676a6d'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1rem auto no-repeat;
436
+ }
437
+
438
+ .select2-container--bootstrap-5 .select2--large.select2-selection--single .select2-selection__clear:hover, .select2-container--bootstrap-5 .select2--large.select2-selection--multiple .select2-selection__clear:hover {
439
+ background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1rem auto no-repeat;
440
+ }
441
+
442
+ .select2-container--bootstrap-5 .select2--large.select2-dropdown .select2-search .select2-search__field {
443
+ padding: 0.5rem 1rem;
444
+ font-size: 1.25rem;
445
+ }
446
+
447
+ .select2-container--bootstrap-5 .select2--large.select2-dropdown .select2-results__options .select2-results__option {
448
+ padding: 0.5rem 1rem;
449
+ font-size: 1.25rem;
450
+ }
451
+
452
+ .select2-container--bootstrap-5 .select2--large.select2-dropdown .select2-results__options .select2-results__option[role="group"] .select2-results__group {
453
+ padding: 0.5rem 0.5rem;
454
+ }
455
+
456
+ .select2-container--bootstrap-5 .select2--large.select2-dropdown .select2-results__options .select2-results__option[role="group"] .select2-results__options--nested .select2-results__option {
457
+ padding: 0.5rem 1rem;
458
+ }
459
+
460
+ .select2-container--bootstrap-5 .select2--large.select2-selection--single {
461
+ padding: 0.5rem 2.25rem 0.5rem 1rem;
462
+ }
463
+
464
+ .select2-container--bootstrap-5 .select2--large.select2-selection--multiple .select2-selection__rendered:not(:empty) {
465
+ padding-bottom: 0.5rem;
466
+ }
467
+
468
+ .select2-container--bootstrap-5 .select2--large.select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
469
+ padding: 0.35em 0.65em;
470
+ font-size: 1.25rem;
471
+ }
472
+
473
+ .select2-container--bootstrap-5 .select2--large.select2-selection--multiple .select2-selection__rendered .select2-selection__choice .select2-selection__choice__remove {
474
+ width: 1rem;
475
+ height: 1rem;
476
+ padding: 0.5rem 0.5rem;
477
+ background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23676a6d'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1rem auto no-repeat;
478
+ }
479
+
480
+ .select2-container--bootstrap-5 .select2--large.select2-selection--multiple .select2-selection__rendered .select2-selection__choice .select2-selection__choice__remove:hover {
481
+ background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1rem auto no-repeat;
482
+ }
483
+
484
+ .select2-container--bootstrap-5 .select2--large.select2-selection--multiple .select2-selection__clear {
485
+ right: 1rem;
486
+ }