-
-
Notifications
You must be signed in to change notification settings - Fork 194
Expand file tree
/
Copy pathselect2-bootstrap4.css
More file actions
204 lines (199 loc) · 11.9 KB
/
select2-bootstrap4.css
File metadata and controls
204 lines (199 loc) · 11.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
.select2-container--bootstrap4 {
display: block; }
.select2-container--bootstrap4 *:focus {
outline: 0; }
.input-group .select2-container--bootstrap4 {
-ms-flex-positive: 1;
flex-grow: 1; }
.input-group-prepend ~ .select2-container--bootstrap4 .select2-selection {
border-top-left-radius: 0;
border-bottom-left-radius: 0; }
.input-group > .select2-container--bootstrap4:not(:last-child) .select2-selection {
border-top-right-radius: 0;
border-bottom-right-radius: 0; }
.select2-container--bootstrap4 .select2-selection {
width: 100%;
min-height: calc(1.5em + 0.75rem + 2px);
padding: 0.375rem 1.75rem 0.375rem 0.75rem;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #495057;
vertical-align: middle;
background-color: #fff;
border: 1px solid #ced4da;
border-radius: 0.25rem;
transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }
@media (prefers-reduced-motion: reduce) {
.select2-container--bootstrap4 .select2-selection {
transition: none; } }
.select2-container--bootstrap4.select2-container--focus .select2-selection {
border-color: #80bdff;
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }
.select2-container--bootstrap4.select2-container--open.select2-container--above .select2-selection {
border-top-left-radius: 0;
border-top-right-radius: 0; }
.select2-container--bootstrap4.select2-container--open.select2-container--below .select2-selection {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0; }
.select2-container--bootstrap4.select2-container--disabled .select2-selection,
.select2-container--bootstrap4.select2-container--disabled .select2-search__field {
cursor: not-allowed;
background-color: #e9ecef;
border-color: #ced4da;
box-shadow: none; }
select.is-valid ~ .select2-container--bootstrap4 .select2-selection,
form.was-validated select:valid ~ .select2-container--bootstrap4 .select2-selection {
border-color: #28a745; }
select.is-valid ~ .select2-container--bootstrap4.select2-container--focus .select2-selection,
form.was-validated select:valid ~ .select2-container--bootstrap4.select2-container--focus .select2-selection {
border-color: #28a745;
box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25); }
select.is-invalid ~ .select2-container--bootstrap4 .select2-selection,
form.was-validated select:invalid ~ .select2-container--bootstrap4 .select2-selection {
border-color: #dc3545; }
select.is-invalid ~ .select2-container--bootstrap4.select2-container--focus .select2-selection,
form.was-validated select:invalid ~ .select2-container--bootstrap4.select2-container--focus .select2-selection {
border-color: #dc3545;
box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); }
.select2-container--bootstrap4 .select2-dropdown {
border-color: #ced4da;
border-radius: 0; }
.select2-container--bootstrap4 .select2-dropdown.select2-dropdown--below {
border-bottom-right-radius: 0.25rem;
border-bottom-left-radius: 0.25rem; }
.select2-container--bootstrap4 .select2-dropdown.select2-dropdown--above {
border-top-left-radius: 0.25rem;
border-top-right-radius: 0.25rem; }
.select2-container--bootstrap4 .select2-results__option {
min-height: calc(1.5em + 0.75rem);
padding: 0.375rem 0.75rem; }
.select2-container--bootstrap4 .select2-results__option--selected {
color: #212529;
background-color: #e9ecef; }
.select2-container--bootstrap4 .select2-results__option--disabled {
color: #6c757d; }
.select2-container--bootstrap4 .select2-results__option--highlighted {
color: #fff;
background-color: #007bff; }
.select2-container--bootstrap4 .select2-results__option--group {
padding: 0; }
.select2-container--bootstrap4 .select2-results__option--group .select2-results__options--nested .select2-results__option {
padding-left: 0.75rem; }
.select2-container--bootstrap4 .select2-results > .select2-results__options {
max-height: 15em;
overflow-y: auto; }
.select2-container--bootstrap4 .select2-results__group {
display: list-item;
padding: 0.375rem 0.375rem;
color: #6c757d; }
.select2-container--bootstrap4 .select2-selection__clear {
float: right;
width: 1em;
height: 1em;
padding: 0;
margin: 0.25em 0 0;
font-weight: 700;
line-height: 0.75em;
color: #495057;
background: #e6e6e6 url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 16 16'%3e%3cpath fill='%23495057' d='M1 12l4-4-4-4 3-3 4 4 4-4 3 3-4 4 4 4-3 3-4-4-4 4z'/%3e%3c/svg%3e") center no-repeat !important;
border-radius: 100%; }
.select2-container--bootstrap4 .select2-selection__clear span {
display: none; }
.select2-container--bootstrap4 .select2-selection__clear:hover {
background-color: #d9d9d9 !important; }
.select2-container--bootstrap4 .select2-results__message {
color: #6c757d; }
.select2-container--bootstrap4 .select2-selection--single {
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; }
select.is-valid ~ .select2-container--bootstrap4 .select2-selection--single,
form.was-validated select:valid ~ .select2-container--bootstrap4 .select2-selection--single {
padding-right: calc(1em + 2.3125rem) !important;
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; }
select.is-invalid ~ .select2-container--bootstrap4 .select2-selection--single,
form.was-validated select:invalid ~ .select2-container--bootstrap4 .select2-selection--single {
padding-right: calc(1em + 2.3125rem) !important;
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; }
.select2-container--bootstrap4 .select2-selection--single .select2-selection__placeholder {
color: #6c757d; }
.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
padding: 0;
color: #495057; }
.select2-container--bootstrap4 .select2-search--dropdown .select2-search__field {
padding: 0.375rem 0.75rem;
color: #495057;
border: 1px solid #ced4da;
border-radius: 0.25rem; }
.select2-container--bootstrap4 .select2-search--dropdown .select2-search__field:focus {
color: #495057;
background-color: #fff;
border-color: #80bdff;
outline: 0;
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }
.select2-container--bootstrap4 .select2-selection--multiple {
padding: 0 0.75rem; }
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered {
margin: 0; }
.select2-container--bootstrap4 .select2-selection--multiple .select2-search--inline {
display: inline-block; }
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
position: relative;
display: inline-block;
padding: 0 5px 0 21px;
margin: 0.375rem 0.375rem 0.375rem 0;
color: #fff;
vertical-align: top;
cursor: pointer;
background-color: #6c757d;
border-radius: 0.2rem; }
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__display {
display: inline-block;
padding: 0 5px; }
.select2-container--bootstrap4 .select2-selection--multiple .select2-search__field {
height: calc(1.5em + 0.75rem);
padding-top: 0.375rem;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
line-height: 1.5;
color: #495057; }
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove {
position: absolute;
top: 0;
left: 0;
height: 100%;
padding: 0 5px;
margin: 0;
font-weight: 700;
color: rgba(255, 255, 255, 0.75);
cursor: pointer;
background: none;
border: none;
border-right: 1px solid #a1a8ae; }
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove:hover {
color: rgba(255, 255, 255, 0.85); }
.select2-container--bootstrap4 .select2-selection--multiple.select2-selection--clearable {
padding-right: 32px; }
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__clear {
position: absolute;
top: 0.375rem;
right: 0.75rem; }
select.is-valid ~ .select2-container--bootstrap4 .select2-selection--multiple,
form.was-validated select:valid ~ .select2-container--bootstrap4 .select2-selection--multiple {
padding-right: calc(1.5em + 0.75rem) !important;
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; }
select.is-valid ~ .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__clear,
form.was-validated select:valid ~ .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__clear {
right: calc(1.5em + 0.75rem); }
select.is-invalid ~ .select2-container--bootstrap4 .select2-selection--multiple,
form.was-validated select:invalid ~ .select2-container--bootstrap4 .select2-selection--multiple {
padding-right: calc(1.5em + 0.75rem) !important;
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; }
select.is-invalid ~ .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__clear,
form.was-validated select:invalid ~ .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__clear {
right: calc(1.5em + 0.75rem); }
.select2-container--bootstrap4.select2-container--disabled .select2-selection--multiple .select2-selection__choice {
padding-left: 5px;
cursor: not-allowed; }
.select2-container--bootstrap4.select2-container--disabled .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove {
display: none; }