|
| 1 | +.select2-container--bootstrap4 .select2-selection--single { |
| 2 | + height: calc(2.25rem + 2px) !important; } |
| 3 | + .select2-container--bootstrap4 .select2-selection--single .select2-selection__placeholder { |
| 4 | + color: #757575; |
| 5 | + line-height: 2.25rem; } |
| 6 | + .select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow { |
| 7 | + position: absolute; |
| 8 | + top: 50%; |
| 9 | + right: 3px; |
| 10 | + width: 20px; } |
| 11 | + .select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow b { |
| 12 | + top: 60%; |
| 13 | + border-color: #343a40 transparent transparent transparent; |
| 14 | + border-style: solid; |
| 15 | + border-width: 5px 4px 0 4px; |
| 16 | + width: 0; |
| 17 | + height: 0; |
| 18 | + left: 50%; |
| 19 | + margin-left: -4px; |
| 20 | + margin-top: -2px; |
| 21 | + position: absolute; } |
| 22 | + .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered { |
| 23 | + line-height: 2.25rem; } |
| 24 | + |
| 25 | +.select2-search--dropdown .select2-search__field { |
| 26 | + border: 1px solid #ced4da; |
| 27 | + border-radius: 0.25rem; } |
| 28 | + |
| 29 | +.select2-results__message { |
| 30 | + color: #6c757d; } |
| 31 | + |
| 32 | +.select2-container--bootstrap4 .select2-selection--multiple { |
| 33 | + min-height: calc(2.25rem + 2px) !important; } |
| 34 | + .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered { |
| 35 | + -webkit-box-sizing: border-box; |
| 36 | + box-sizing: border-box; |
| 37 | + list-style: none; |
| 38 | + margin: 0; |
| 39 | + padding: 0 5px; |
| 40 | + width: 100%; } |
| 41 | + .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice { |
| 42 | + color: #343a40; |
| 43 | + border: 1px solid #bdc6d0; |
| 44 | + border-radius: 0.2rem; |
| 45 | + padding: 0; |
| 46 | + padding-right: 5px; |
| 47 | + cursor: pointer; |
| 48 | + float: left; |
| 49 | + margin-top: 0.3em; |
| 50 | + margin-right: 5px; } |
| 51 | + .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove { |
| 52 | + color: #bdc6d0; |
| 53 | + font-weight: bold; |
| 54 | + margin-left: 3px; |
| 55 | + margin-right: 1px; |
| 56 | + padding-right: 3px; |
| 57 | + padding-left: 3px; |
| 58 | + float: left; } |
| 59 | + .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove:hover { |
| 60 | + color: #343a40; } |
| 61 | + |
| 62 | +.select2-container { |
| 63 | + display: block; } |
| 64 | + .select2-container *:focus { |
| 65 | + outline: 0; } |
| 66 | + |
| 67 | +.input-group .select2-container--bootstrap4 { |
| 68 | + -webkit-box-flex: 1; |
| 69 | + -ms-flex-positive: 1; |
| 70 | + flex-grow: 1; } |
| 71 | + |
| 72 | +.input-group-prepend ~ .select2-container--bootstrap4 .select2-selection { |
| 73 | + border-top-left-radius: 0; |
| 74 | + border-bottom-left-radius: 0; } |
| 75 | + |
| 76 | +.input-group > .select2-container--bootstrap4:not(:last-child) .select2-selection { |
| 77 | + border-top-right-radius: 0; |
| 78 | + border-bottom-right-radius: 0; } |
| 79 | + |
| 80 | +.select2-container--bootstrap4 .select2-selection { |
| 81 | + background-color: #fff; |
| 82 | + border: 1px solid #ced4da; |
| 83 | + border-radius: 0.25rem; |
| 84 | + -webkit-transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out; |
| 85 | + transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out; |
| 86 | + transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; |
| 87 | + transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out; |
| 88 | + width: 100%; } |
| 89 | + @media screen and (prefers-reduced-motion: reduce) { |
| 90 | + .select2-container--bootstrap4 .select2-selection { |
| 91 | + -webkit-transition: none; |
| 92 | + transition: none; } } |
| 93 | + |
| 94 | +.select2-container--bootstrap4.select2-container--focus .select2-selection { |
| 95 | + border-color: #80bdff; |
| 96 | + -webkit-box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); |
| 97 | + box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); } |
| 98 | + |
| 99 | +.select2-container--bootstrap4.select2-container--focus.select2-container--open .select2-selection { |
| 100 | + border-bottom: none; |
| 101 | + border-bottom-left-radius: 0; |
| 102 | + border-bottom-right-radius: 0; } |
| 103 | + |
| 104 | +.select2-container--bootstrap4.select2-container--disabled .select2-selection, .select2-container--bootstrap4.select2-container--disabled.select2-container--focus .select2-selection { |
| 105 | + background-color: #e9ecef; |
| 106 | + cursor: not-allowed; |
| 107 | + border-color: #ced4da; |
| 108 | + -webkit-box-shadow: none; |
| 109 | + box-shadow: none; } |
| 110 | + |
| 111 | +.select2-container--bootstrap4.select2-container--disabled .select2-search__field, .select2-container--bootstrap4.select2-container--disabled.select2-container--focus .select2-search__field { |
| 112 | + background-color: transparent; } |
| 113 | + |
| 114 | +select.is-invalid ~ .select2-container--bootstrap4 .select2-selection, |
| 115 | +form.was-validated select:invalid ~ .select2-container--bootstrap4 .select2-selection { |
| 116 | + border-color: #dc3545; } |
| 117 | + |
| 118 | +select.is-valid ~ .select2-container--bootstrap4 .select2-selection, |
| 119 | +form.was-validated select:valid ~ .select2-container--bootstrap4 .select2-selection { |
| 120 | + border-color: #28a745; } |
| 121 | + |
| 122 | +.select2-container--bootstrap4 .select2-dropdown { |
| 123 | + border-color: #ced4da; |
| 124 | + border-top: none; |
| 125 | + border-top-left-radius: 0; |
| 126 | + border-top-right-radius: 0; } |
| 127 | + .select2-container--bootstrap4 .select2-dropdown.select2-dropdown--above { |
| 128 | + border-top: 1px solid #ced4da; |
| 129 | + border-top-left-radius: 0.25rem; |
| 130 | + border-top-right-radius: 0.25rem; } |
| 131 | + .select2-container--bootstrap4 .select2-dropdown .select2-results__option[aria-selected=true] { |
| 132 | + background-color: #e9ecef; } |
| 133 | + |
| 134 | +.select2-container--bootstrap4 .select2-results__option--highlighted, |
| 135 | +.select2-container--bootstrap4 .select2-results__option--highlighted.select2-results__option[aria-selected=true] { |
| 136 | + background-color: #007bff; |
| 137 | + color: #f8f9fa; } |
| 138 | + |
| 139 | +.select2-container--bootstrap4 .select2-results__option[role=group] { |
| 140 | + padding: 0; } |
| 141 | + |
| 142 | +.select2-container--bootstrap4 .select2-results > .select2-results__options { |
| 143 | + max-height: 15em; |
| 144 | + overflow-y: auto; } |
| 145 | + |
| 146 | +.select2-container--bootstrap4 .select2-results__group { |
| 147 | + padding: 6px; |
| 148 | + display: list-item; |
| 149 | + color: #6c757d; } |
| 150 | + |
| 151 | +.select2-container--bootstrap4 .select2-selection__clear { |
| 152 | + width: 1.2em; |
| 153 | + height: 1.2em; |
| 154 | + line-height: 1.15em; |
| 155 | + padding-left: 0.3em; |
| 156 | + margin-top: 0.5em; |
| 157 | + border-radius: 100%; |
| 158 | + background-color: #6c757d; |
| 159 | + color: #f8f9fa; |
| 160 | + float: right; |
| 161 | + margin-right: 0.3em; } |
| 162 | + .select2-container--bootstrap4 .select2-selection__clear:hover { |
| 163 | + background-color: #343a40; } |
0 commit comments