|
52 | 52 | border-color: #ced4da; |
53 | 53 | box-shadow: none; } |
54 | 54 |
|
| 55 | +select.is-valid ~ .select2-container--bootstrap4 .select2-selection, |
| 56 | +form.was-validated select:valid ~ .select2-container--bootstrap4 .select2-selection { |
| 57 | + border-color: #28a745; } |
| 58 | + |
| 59 | +select.is-valid ~ .select2-container--bootstrap4.select2-container--focus .select2-selection, |
| 60 | +form.was-validated select:valid ~ .select2-container--bootstrap4.select2-container--focus .select2-selection { |
| 61 | + border-color: #28a745; |
| 62 | + box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25); } |
| 63 | + |
55 | 64 | select.is-invalid ~ .select2-container--bootstrap4 .select2-selection, |
56 | 65 | form.was-validated select:invalid ~ .select2-container--bootstrap4 .select2-selection { |
57 | 66 | border-color: #dc3545; } |
58 | | - select.is-invalid ~ .select2-container--bootstrap4 .select2-selection:focus, |
59 | | - form.was-validated select:invalid ~ .select2-container--bootstrap4 .select2-selection:focus { |
60 | | - border-color: #dc3545; |
61 | | - box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); } |
62 | 67 |
|
63 | | -select.is-valid ~ .select2-container--bootstrap4 .select2-selection, |
64 | | -form.was-validated select:valid ~ .select2-container--bootstrap4 .select2-selection { |
65 | | - border-color: #28a745; } |
66 | | - select.is-valid ~ .select2-container--bootstrap4 .select2-selection:focus, |
67 | | - form.was-validated select:valid ~ .select2-container--bootstrap4 .select2-selection:focus { |
68 | | - border-color: #28a745; |
69 | | - box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); } |
| 68 | +select.is-invalid ~ .select2-container--bootstrap4.select2-container--focus .select2-selection, |
| 69 | +form.was-validated select:invalid ~ .select2-container--bootstrap4.select2-container--focus .select2-selection { |
| 70 | + border-color: #dc3545; |
| 71 | + box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); } |
70 | 72 |
|
71 | 73 | .select2-container--bootstrap4 .select2-dropdown { |
72 | 74 | border-color: #ced4da; |
@@ -123,6 +125,14 @@ form.was-validated select:valid ~ .select2-container--bootstrap4 .select2-select |
123 | 125 |
|
124 | 126 | .select2-container--bootstrap4 .select2-selection--single { |
125 | 127 | background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") right 0.75rem center/8px 10px no-repeat; } |
| 128 | + select.is-valid ~ .select2-container--bootstrap4 .select2-selection--single, |
| 129 | + form.was-validated select:valid ~ .select2-container--bootstrap4 .select2-selection--single { |
| 130 | + padding-right: calc(1em + 2.3125rem) !important; |
| 131 | + background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") right 0.75rem center/8px 10px no-repeat, #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) no-repeat; } |
| 132 | + select.is-invalid ~ .select2-container--bootstrap4 .select2-selection--single, |
| 133 | + form.was-validated select:invalid ~ .select2-container--bootstrap4 .select2-selection--single { |
| 134 | + padding-right: calc(1em + 2.3125rem) !important; |
| 135 | + background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") right 0.75rem center/8px 10px no-repeat, #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) no-repeat; } |
126 | 136 | .select2-container--bootstrap4 .select2-selection--single .select2-selection__placeholder { |
127 | 137 | color: #6c757d; } |
128 | 138 | .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered { |
@@ -186,6 +196,20 @@ form.was-validated select:valid ~ .select2-container--bootstrap4 .select2-select |
186 | 196 | position: absolute; |
187 | 197 | top: 0.375rem; |
188 | 198 | right: 0.75rem; } |
| 199 | + select.is-valid ~ .select2-container--bootstrap4 .select2-selection--multiple, |
| 200 | + form.was-validated select:valid ~ .select2-container--bootstrap4 .select2-selection--multiple { |
| 201 | + padding-right: calc(1.5em + 0.75rem) !important; |
| 202 | + background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem)/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) no-repeat; } |
| 203 | + select.is-valid ~ .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__clear, |
| 204 | + form.was-validated select:valid ~ .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__clear { |
| 205 | + right: calc(1.5em + 0.75rem); } |
| 206 | + select.is-invalid ~ .select2-container--bootstrap4 .select2-selection--multiple, |
| 207 | + form.was-validated select:invalid ~ .select2-container--bootstrap4 .select2-selection--multiple { |
| 208 | + padding-right: calc(1.5em + 0.75rem) !important; |
| 209 | + background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem)/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) no-repeat; } |
| 210 | + select.is-invalid ~ .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__clear, |
| 211 | + form.was-validated select:invalid ~ .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__clear { |
| 212 | + right: calc(1.5em + 0.75rem); } |
189 | 213 |
|
190 | 214 | .select2-container--bootstrap4.select2-container--disabled .select2-selection--multiple .select2-selection__choice { |
191 | 215 | padding-left: 5px; |
|
0 commit comments