Browse code

Add tom select npm package

Benjamin Roth authored on02/02/2023 12:00:30
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,566 @@
1
+/**
2
+ * Tom Select bootstrap 4
3
+ */
4
+/**
5
+ * tom-select.css (v2.2.2)
6
+ * Copyright (c) contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
9
+ * file except in compliance with the License. You may obtain a copy of the License at:
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software distributed under
13
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
14
+ * ANY KIND, either express or implied. See the License for the specific language
15
+ * governing permissions and limitations under the License.
16
+ *
17
+ */
18
+:root {
19
+  --ts-pr-clear-button:	0;
20
+  --ts-pr-caret:	0;
21
+  --ts-pr-min:	.75rem;
22
+}
23
+
24
+.ts-wrapper.single .ts-control, .ts-wrapper.single .ts-control input {
25
+  cursor: pointer;
26
+}
27
+
28
+.ts-control {
29
+  padding-right: max(var(--ts-pr-min), var(--ts-pr-clear-button) + var(--ts-pr-caret)) !important;
30
+}
31
+
32
+.ts-wrapper.plugin-drag_drop.multi > .ts-control > div.ui-sortable-placeholder {
33
+  visibility: visible !important;
34
+  background: #f2f2f2 !important;
35
+  background: rgba(0, 0, 0, 0.06) !important;
36
+  border: 0 none !important;
37
+  box-shadow: inset 0 0 12px 4px #fff;
38
+}
39
+.ts-wrapper.plugin-drag_drop .ui-sortable-placeholder::after {
40
+  content: "!";
41
+  visibility: hidden;
42
+}
43
+.ts-wrapper.plugin-drag_drop .ui-sortable-helper {
44
+  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
45
+}
46
+
47
+.plugin-checkbox_options .option input {
48
+  margin-right: 0.5rem;
49
+}
50
+
51
+.plugin-clear_button {
52
+  --ts-pr-clear-button: 1em;
53
+}
54
+.plugin-clear_button .clear-button {
55
+  opacity: 0;
56
+  position: absolute;
57
+  top: 50%;
58
+  transform: translateY(-50%);
59
+  right: calc(0.75rem - 5px);
60
+  margin-right: 0 !important;
61
+  background: transparent !important;
62
+  transition: opacity 0.5s;
63
+  cursor: pointer;
64
+}
65
+.plugin-clear_button.form-select .clear-button, .plugin-clear_button.single .clear-button {
66
+  right: max( var(--ts-pr-caret), 0.75rem);
67
+}
68
+.plugin-clear_button.focus.has-items .clear-button, .plugin-clear_button:not(.disabled):hover.has-items .clear-button {
69
+  opacity: 1;
70
+}
71
+
72
+.ts-wrapper .dropdown-header {
73
+  position: relative;
74
+  padding: 6px 0.75rem;
75
+  border-bottom: 1px solid #d0d0d0;
76
+  background: #f8f8f8;
77
+  border-radius: 0.25rem 0.25rem 0 0;
78
+}
79
+.ts-wrapper .dropdown-header-close {
80
+  position: absolute;
81
+  right: 0.75rem;
82
+  top: 50%;
83
+  color: #343a40;
84
+  opacity: 0.4;
85
+  margin-top: -12px;
86
+  line-height: 20px;
87
+  font-size: 20px !important;
88
+}
89
+.ts-wrapper .dropdown-header-close:hover {
90
+  color: black;
91
+}
92
+
93
+.plugin-dropdown_input.focus.dropdown-active .ts-control {
94
+  box-shadow: none;
95
+  border: 1px solid #ced4da;
96
+  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
97
+}
98
+.plugin-dropdown_input .dropdown-input {
99
+  border: 1px solid #d0d0d0;
100
+  border-width: 0 0 1px 0;
101
+  display: block;
102
+  padding: 0.375rem 0.75rem;
103
+  box-shadow: none;
104
+  width: 100%;
105
+  background: transparent;
106
+}
107
+.plugin-dropdown_input.focus .ts-dropdown .dropdown-input {
108
+  border-color: #80bdff;
109
+  outline: 0;
110
+  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
111
+}
112
+.plugin-dropdown_input .items-placeholder {
113
+  border: 0 none !important;
114
+  box-shadow: none !important;
115
+  width: 100%;
116
+}
117
+.plugin-dropdown_input.has-items .items-placeholder, .plugin-dropdown_input.dropdown-active .items-placeholder {
118
+  display: none !important;
119
+}
120
+
121
+.ts-wrapper.plugin-input_autogrow.has-items .ts-control > input {
122
+  min-width: 0;
123
+}
124
+.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input {
125
+  flex: none;
126
+  min-width: 4px;
127
+}
128
+.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input::-ms-input-placeholder {
129
+  color: transparent;
130
+}
131
+.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input::placeholder {
132
+  color: transparent;
133
+}
134
+
135
+.ts-dropdown.plugin-optgroup_columns .ts-dropdown-content {
136
+  display: flex;
137
+}
138
+.ts-dropdown.plugin-optgroup_columns .optgroup {
139
+  border-right: 1px solid #f2f2f2;
140
+  border-top: 0 none;
141
+  flex-grow: 1;
142
+  flex-basis: 0;
143
+  min-width: 0;
144
+}
145
+.ts-dropdown.plugin-optgroup_columns .optgroup:last-child {
146
+  border-right: 0 none;
147
+}
148
+.ts-dropdown.plugin-optgroup_columns .optgroup:before {
149
+  display: none;
150
+}
151
+.ts-dropdown.plugin-optgroup_columns .optgroup-header {
152
+  border-top: 0 none;
153
+}
154
+
155
+.ts-wrapper.plugin-remove_button .item {
156
+  display: inline-flex;
157
+  align-items: center;
158
+  padding-right: 0 !important;
159
+}
160
+.ts-wrapper.plugin-remove_button .item .remove {
161
+  color: inherit;
162
+  text-decoration: none;
163
+  vertical-align: middle;
164
+  display: inline-block;
165
+  padding: 0 5px;
166
+  border-radius: 0 2px 2px 0;
167
+  box-sizing: border-box;
168
+}
169
+.ts-wrapper.plugin-remove_button .item .remove:hover {
170
+  background: rgba(0, 0, 0, 0.05);
171
+}
172
+.ts-wrapper.plugin-remove_button.disabled .item .remove:hover {
173
+  background: none;
174
+}
175
+.ts-wrapper.plugin-remove_button .remove-single {
176
+  position: absolute;
177
+  right: 0;
178
+  top: 0;
179
+  font-size: 23px;
180
+}
181
+
182
+.ts-wrapper.plugin-remove_button:not(.rtl) .item .remove {
183
+  border-left: 1px solid #dee2e6;
184
+  margin-left: 5px;
185
+}
186
+.ts-wrapper.plugin-remove_button:not(.rtl) .item.active .remove {
187
+  border-left-color: rgba(0, 0, 0, 0);
188
+}
189
+.ts-wrapper.plugin-remove_button:not(.rtl).disabled .item .remove {
190
+  border-left-color: white;
191
+}
192
+
193
+.ts-wrapper.plugin-remove_button.rtl .item .remove {
194
+  border-right: 1px solid #dee2e6;
195
+  margin-right: 5px;
196
+}
197
+.ts-wrapper.plugin-remove_button.rtl .item.active .remove {
198
+  border-right-color: rgba(0, 0, 0, 0);
199
+}
200
+.ts-wrapper.plugin-remove_button.rtl.disabled .item .remove {
201
+  border-right-color: white;
202
+}
203
+
204
+.ts-wrapper {
205
+  position: relative;
206
+}
207
+
208
+.ts-dropdown,
209
+.ts-control,
210
+.ts-control input {
211
+  color: #343a40;
212
+  font-family: inherit;
213
+  font-size: inherit;
214
+  line-height: 1.5;
215
+  font-smoothing: inherit;
216
+}
217
+
218
+.ts-control,
219
+.ts-wrapper.single.input-active .ts-control {
220
+  background: #fff;
221
+  cursor: text;
222
+}
223
+
224
+.ts-control {
225
+  border: 1px solid #ced4da;
226
+  padding: 0.375rem 0.75rem;
227
+  width: 100%;
228
+  overflow: hidden;
229
+  position: relative;
230
+  z-index: 1;
231
+  box-sizing: border-box;
232
+  box-shadow: none;
233
+  border-radius: 0.25rem;
234
+  display: flex;
235
+  flex-wrap: wrap;
236
+}
237
+.ts-wrapper.multi.has-items .ts-control {
238
+  padding: calc( 0.375rem - 1px - 0px) 0.75rem calc( 0.375rem - 1px - 3px - 0px);
239
+}
240
+.full .ts-control {
241
+  background-color: #fff;
242
+}
243
+.disabled .ts-control, .disabled .ts-control * {
244
+  cursor: default !important;
245
+}
246
+.focus .ts-control {
247
+  box-shadow: none;
248
+}
249
+.ts-control > * {
250
+  vertical-align: baseline;
251
+  display: inline-block;
252
+}
253
+.ts-wrapper.multi .ts-control > div {
254
+  cursor: pointer;
255
+  margin: 0 3px 3px 0;
256
+  padding: 1px 5px;
257
+  background: #efefef;
258
+  color: #343a40;
259
+  border: 0px solid #dee2e6;
260
+}
261
+.ts-wrapper.multi .ts-control > div.active {
262
+  background: #007bff;
263
+  color: #fff;
264
+  border: 0px solid rgba(0, 0, 0, 0);
265
+}
266
+.ts-wrapper.multi.disabled .ts-control > div, .ts-wrapper.multi.disabled .ts-control > div.active {
267
+  color: #878787;
268
+  background: white;
269
+  border: 0px solid white;
270
+}
271
+.ts-control > input {
272
+  flex: 1 1 auto;
273
+  min-width: 7rem;
274
+  display: inline-block !important;
275
+  padding: 0 !important;
276
+  min-height: 0 !important;
277
+  max-height: none !important;
278
+  max-width: 100% !important;
279
+  margin: 0 !important;
280
+  text-indent: 0 !important;
281
+  border: 0 none !important;
282
+  background: none !important;
283
+  line-height: inherit !important;
284
+  -webkit-user-select: auto !important;
285
+     -moz-user-select: auto !important;
286
+      -ms-user-select: auto !important;
287
+          user-select: auto !important;
288
+  box-shadow: none !important;
289
+}
290
+.ts-control > input::-ms-clear {
291
+  display: none;
292
+}
293
+.ts-control > input:focus {
294
+  outline: none !important;
295
+}
296
+.has-items .ts-control > input {
297
+  margin: 0px 4px !important;
298
+}
299
+.ts-control.rtl {
300
+  text-align: right;
301
+}
302
+.ts-control.rtl.single .ts-control:after {
303
+  left: calc(0.75rem + 5px);
304
+  right: auto;
305
+}
306
+.ts-control.rtl .ts-control > input {
307
+  margin: 0px 4px 0px -2px !important;
308
+}
309
+.disabled .ts-control {
310
+  opacity: 0.5;
311
+  background-color: #e9ecef;
312
+}
313
+.input-hidden .ts-control > input {
314
+  opacity: 0;
315
+  position: absolute;
316
+  left: -10000px;
317
+}
318
+
319
+.ts-dropdown {
320
+  position: absolute;
321
+  top: 100%;
322
+  left: 0;
323
+  width: 100%;
324
+  z-index: 10;
325
+  border: 1px solid #d0d0d0;
326
+  background: #fff;
327
+  margin: 0.25rem 0 0 0;
328
+  border-top: 0 none;
329
+  box-sizing: border-box;
330
+  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
331
+  border-radius: 0 0 0.25rem 0.25rem;
332
+}
333
+.ts-dropdown [data-selectable] {
334
+  cursor: pointer;
335
+  overflow: hidden;
336
+}
337
+.ts-dropdown [data-selectable] .highlight {
338
+  background: rgba(255, 237, 40, 0.4);
339
+  border-radius: 1px;
340
+}
341
+.ts-dropdown .option,
342
+.ts-dropdown .optgroup-header,
343
+.ts-dropdown .no-results,
344
+.ts-dropdown .create {
345
+  padding: 3px 0.75rem;
346
+}
347
+.ts-dropdown .option, .ts-dropdown [data-disabled], .ts-dropdown [data-disabled] [data-selectable].option {
348
+  cursor: inherit;
349
+  opacity: 0.5;
350
+}
351
+.ts-dropdown [data-selectable].option {
352
+  opacity: 1;
353
+  cursor: pointer;
354
+}
355
+.ts-dropdown .optgroup:first-child .optgroup-header {
356
+  border-top: 0 none;
357
+}
358
+.ts-dropdown .optgroup-header {
359
+  color: #6c757d;
360
+  background: #fff;
361
+  cursor: default;
362
+}
363
+.ts-dropdown .active {
364
+  background-color: #e9ecef;
365
+  color: #16181b;
366
+}
367
+.ts-dropdown .active.create {
368
+  color: #16181b;
369
+}
370
+.ts-dropdown .create {
371
+  color: rgba(52, 58, 64, 0.5);
372
+}
373
+.ts-dropdown .spinner {
374
+  display: inline-block;
375
+  width: 30px;
376
+  height: 30px;
377
+  margin: 3px 0.75rem;
378
+}
379
+.ts-dropdown .spinner:after {
380
+  content: " ";
381
+  display: block;
382
+  width: 24px;
383
+  height: 24px;
384
+  margin: 3px;
385
+  border-radius: 50%;
386
+  border: 5px solid #d0d0d0;
387
+  border-color: #d0d0d0 transparent #d0d0d0 transparent;
388
+  animation: lds-dual-ring 1.2s linear infinite;
389
+}
390
+@keyframes lds-dual-ring {
391
+  0% {
392
+    transform: rotate(0deg);
393
+  }
394
+  100% {
395
+    transform: rotate(360deg);
396
+  }
397
+}
398
+
399
+.ts-dropdown-content {
400
+  overflow-y: auto;
401
+  overflow-x: hidden;
402
+  max-height: 200px;
403
+  overflow-scrolling: touch;
404
+  scroll-behavior: smooth;
405
+}
406
+
407
+.ts-hidden-accessible {
408
+  border: 0 !important;
409
+  clip: rect(0 0 0 0) !important;
410
+  -webkit-clip-path: inset(50%) !important;
411
+          clip-path: inset(50%) !important;
412
+  overflow: hidden !important;
413
+  padding: 0 !important;
414
+  position: absolute !important;
415
+  width: 1px !important;
416
+  white-space: nowrap !important;
417
+}
418
+
419
+.ts-wrapper.single .ts-control {
420
+  --ts-pr-caret: 2rem;
421
+}
422
+.ts-wrapper.single .ts-control:after {
423
+  content: " ";
424
+  display: block;
425
+  position: absolute;
426
+  top: 50%;
427
+  right: calc(0.75rem + 5px);
428
+  margin-top: -3px;
429
+  width: 0;
430
+  height: 0;
431
+  border-style: solid;
432
+  border-width: 5px 5px 0 5px;
433
+  border-color: #343a40 transparent transparent transparent;
434
+}
435
+.ts-wrapper.single.dropdown-active .ts-control::after {
436
+  margin-top: -4px;
437
+  border-width: 0 5px 5px 5px;
438
+  border-color: transparent transparent #343a40 transparent;
439
+}
440
+.ts-wrapper.single.input-active .ts-control, .ts-wrapper.single.input-active .ts-control input {
441
+  cursor: text;
442
+}
443
+
444
+.ts-wrapper.form-control,
445
+.ts-wrapper.form-select {
446
+  padding: 0 !important;
447
+}
448
+
449
+.ts-dropdown,
450
+.ts-dropdown.form-control {
451
+  height: auto;
452
+  padding: 0;
453
+  z-index: 1000;
454
+  background: #fff;
455
+  border: 1px solid rgba(0, 0, 0, 0.15);
456
+  border-radius: 0.25rem;
457
+  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
458
+}
459
+
460
+.ts-dropdown .optgroup-header {
461
+  font-size: 0.875rem;
462
+  line-height: 1.5;
463
+}
464
+.ts-dropdown .optgroup:first-child:before {
465
+  display: none;
466
+}
467
+.ts-dropdown .optgroup:before {
468
+  content: " ";
469
+  display: block;
470
+  height: 0;
471
+  margin: 0.5rem 0;
472
+  overflow: hidden;
473
+  border-top: 1px solid #e9ecef;
474
+  margin-left: -0.75rem;
475
+  margin-right: -0.75rem;
476
+}
477
+.ts-dropdown .create {
478
+  padding-left: 0.75rem;
479
+}
480
+
481
+.ts-dropdown-content {
482
+  padding: 5px 0;
483
+}
484
+
485
+.ts-control {
486
+  min-height: calc(1.5em + 0.75rem + 2px);
487
+  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
488
+  display: flex;
489
+  align-items: center;
490
+}
491
+@media (prefers-reduced-motion: reduce) {
492
+  .ts-control {
493
+    transition: none;
494
+  }
495
+}
496
+.focus .ts-control {
497
+  border-color: #80bdff;
498
+  outline: 0;
499
+  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
500
+}
501
+
502
+.is-invalid .ts-control,
503
+.was-validated .invalid .ts-control {
504
+  border-color: #dc3545;
505
+}
506
+.focus .is-invalid .ts-control,
507
+.focus .was-validated .invalid .ts-control {
508
+  border-color: #bd2130;
509
+  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
510
+}
511
+
512
+.is-valid .ts-control {
513
+  border-color: #28a745;
514
+}
515
+.focus .is-valid .ts-control {
516
+  border-color: #28a745;
517
+  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
518
+}
519
+
520
+.input-group-sm > .ts-wrapper .ts-control, .ts-wrapper.form-control-sm .ts-control {
521
+  min-height: calc(1.5em + 0.5rem + 2px);
522
+  padding: 0 0.75rem;
523
+  border-radius: 0.2rem;
524
+  font-size: 0.875rem;
525
+}
526
+.input-group-sm > .ts-wrapper.has-items .ts-control, .ts-wrapper.form-control-sm.has-items .ts-control {
527
+  min-height: calc(1.5em + 0.5rem + 2px) !important;
528
+  font-size: 0.875rem;
529
+  padding-bottom: 0;
530
+}
531
+.input-group-sm > .ts-wrapper.multi.has-items .ts-control, .ts-wrapper.form-control-sm.multi.has-items .ts-control {
532
+  padding-top: calc((calc(1.5em + 0.5rem + 2px) - (1.5 * 0.875rem) - 4px) / 2) !important;
533
+}
534
+.ts-wrapper.multi.has-items .ts-control {
535
+  padding-left: calc(0.75rem - 5px);
536
+  --ts-pr-min: calc(0.75rem - 5px);
537
+}
538
+.ts-wrapper.multi .ts-control > div {
539
+  border-radius: calc(0.25rem - 1px);
540
+}
541
+.input-group-lg > .ts-wrapper > .ts-control, .ts-wrapper.form-control-lg .ts-control {
542
+  min-height: calc(1.5em + 1rem + 2px);
543
+  border-radius: 0.3rem;
544
+  font-size: 1.25rem;
545
+}
546
+
547
+.form-control.ts-wrapper {
548
+  padding: 0;
549
+  height: auto;
550
+  border: none;
551
+  background: none;
552
+  border-radius: 0;
553
+}
554
+
555
+.input-group > .ts-wrapper {
556
+  flex-grow: 1;
557
+}
558
+.input-group > .ts-wrapper:not(:nth-child(2)) > .ts-control {
559
+  border-top-left-radius: 0;
560
+  border-bottom-left-radius: 0;
561
+}
562
+.input-group > .ts-wrapper:not(:last-child) > .ts-control {
563
+  border-top-right-radius: 0;
564
+  border-bottom-right-radius: 0;
565
+}
566
+/*# sourceMappingURL=tom-select.bootstrap4.css.map */
0 567
\ No newline at end of file