|
52 | 52 | border-color: #ced4da; |
53 | 53 | box-shadow: none; } |
54 | 54 |
|
55 | | -select.is-invalid ~ .select2-container--bootstrap4 .select2-selection, |
56 | | -form.was-validated select:invalid ~ .select2-container--bootstrap4 .select2-selection { |
57 | | - 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 | | - |
63 | 55 | select.is-valid ~ .select2-container--bootstrap4 .select2-selection, |
64 | 56 | form.was-validated select:valid ~ .select2-container--bootstrap4 .select2-selection { |
65 | | - border-color: #28a745; } |
| 57 | + border-color: #28a745; |
| 58 | + padding-right: calc(1em + 2.3125rem) !important; |
| 59 | + 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; } |
66 | 60 | select.is-valid ~ .select2-container--bootstrap4 .select2-selection:focus, |
67 | 61 | form.was-validated select:valid ~ .select2-container--bootstrap4 .select2-selection:focus { |
68 | 62 | border-color: #28a745; |
| 63 | + box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25); } |
| 64 | + |
| 65 | +select.is-invalid ~ .select2-container--bootstrap4 .select2-selection, |
| 66 | +form.was-validated select:invalid ~ .select2-container--bootstrap4 .select2-selection { |
| 67 | + border-color: #dc3545; |
| 68 | + padding-right: calc(1em + 2.3125rem) !important; |
| 69 | + 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; } |
| 70 | + select.is-invalid ~ .select2-container--bootstrap4 .select2-selection:focus, |
| 71 | + form.was-validated select:invalid ~ .select2-container--bootstrap4 .select2-selection:focus { |
| 72 | + border-color: #dc3545; |
69 | 73 | box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); } |
70 | 74 |
|
71 | 75 | .select2-container--bootstrap4 .select2-dropdown { |
|
0 commit comments