@appscode/design-system 1.1.0-beta.46 → 1.1.0-beta.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -118,773 +118,4 @@ watch(
118
118
  </template>
119
119
  </multiselect>
120
120
  </template>
121
- <style lang="scss">
122
- .multiselect {
123
- // margin-top: 3px;
124
- // display: flex;
125
- // align-items: center;
126
- // max-width: 350px;
127
- // &.cluster-select {
128
- // .multiselect__tags {
129
- // border: 1px solid $primary-90;
130
- // background-color: $table-header;
131
-
132
- // .multiselect__input {
133
- // background-color: $table-header;
134
- // }
135
- // }
136
- // }
137
-
138
- .multiselect__tags {
139
- background-color: $white-100;
140
- min-height: 36px;
141
- // max-height: 36px;
142
- font-weight: 500;
143
- width: 100%;
144
- border-radius: 4px;
145
- border: 1px solid $primary-80;
146
- padding: 6px 30px 8px 20px;
147
- font-size: 13px;
148
- border-radius: 4px;
149
-
150
- .multiselect__placeholder {
151
- margin: 0;
152
- padding: 0;
153
- // padding-top: 2px !important;
154
- font-weight: 500;
155
- font-size: 13px;
156
- }
157
-
158
- .multiselect__tags-wrap {
159
- display: flex;
160
- align-items: center;
161
- }
162
-
163
- .multiselect__tag {
164
- background-color: $black-80;
165
- margin-top: 4px;
166
- margin-bottom: 0;
167
-
168
- .multiselect__tag-icon {
169
- font-size: 12px;
170
-
171
- &::after {
172
- color: $white-100;
173
- }
174
-
175
- &:hover {
176
- background-color: hsla(
177
- var(--hsl-hue),
178
- var(--hsl-saturation),
179
- calc(var(--hsl-lightness) - 9%),
180
- 1
181
- );
182
- }
183
- }
184
- }
185
-
186
- .multiselect__input,
187
- .multiselect__single {
188
- background-color: $white-100;
189
- margin-bottom: 0;
190
- margin: 0 !important;
191
- padding-left: 0;
192
- left: 0px;
193
- // top: 2px;
194
- font-size: 13px !important;
195
- font-weight: 500;
196
- color: $primary-10;
197
- line-height: 1.5;
198
- }
199
-
200
- .multiselect__single {
201
- margin-top: 3px;
202
- margin-bottom: 0;
203
- }
204
- }
205
- .multiselect__select {
206
- height: 36px;
207
- }
208
- .multiselect__content {
209
- .multiselect__element {
210
- .multiselect__option {
211
- padding: 4px 16px;
212
- min-height: 32px;
213
- font-size: 13px;
214
- display: flex;
215
- align-items: center;
216
- img {
217
- width: 30px;
218
- }
219
- p {
220
- font-size: 13px;
221
- color: $primary-10;
222
- }
223
- p:not(.location) {
224
- font-weight: 500;
225
- }
226
- a {
227
- display: block;
228
- font-weight: 400;
229
- margin-top: -12px;
230
- margin-bottom: -12px;
231
- padding-top: 12px;
232
- padding-bottom: 12px;
233
- }
234
-
235
- &:hover {
236
- background-color: hsla(
237
- var(--hsl-hue),
238
- var(--hsl-saturation),
239
- var(--hsl-lightness),
240
- 0.2
241
- );
242
- color: $primary;
243
- }
244
-
245
- &.multiselect__option--highlight {
246
- background-color: $white-100;
247
- color: $primary;
248
- &:hover {
249
- background-color: $primary-97;
250
- }
251
-
252
- &:after {
253
- background-color: hsla(
254
- var(--hsl-hue),
255
- var(--hsl-saturation),
256
- var(--hsl-lightness),
257
- 0.2
258
- );
259
- color: $primary;
260
- }
261
- }
262
- }
263
- }
264
- }
265
- }
266
-
267
- .multi-select-wrapper {
268
- &.is-last-child-bold {
269
- .multiselect {
270
- .multiselect__content {
271
- .multiselect__element {
272
- &:nth-last-child(-n + 3) {
273
- .multiselect__option {
274
- font-weight: 500;
275
- }
276
- }
277
- }
278
- }
279
- }
280
- }
281
- }
282
-
283
- .multiselect__element {
284
- span {
285
- label {
286
- padding-left: 15px !important;
287
- font-size: 13px !important;
288
- color: $primary-10 !important;
289
-
290
- &:after {
291
- position: inherit !important;
292
- content: "" !important;
293
- background-color: transparent;
294
- }
295
- }
296
- }
297
- }
298
-
299
- .multiselect__input {
300
- &::placeholder {
301
- color: $primary-20;
302
- font-weight: 400;
303
- line-height: 1.6;
304
- font-size: 13px;
305
- }
306
- }
307
-
308
- .multiselect__tags > span {
309
- font-size: 13px;
310
- line-height: 1.6;
311
- color: $primary-10;
312
- }
313
-
314
- .multi-select-wrapper {
315
- position: relative;
316
- z-index: 0;
317
-
318
- .multiselect--disabled {
319
- opacity: unset;
320
- }
321
-
322
- &.is-disable {
323
- opacity: 0.5;
324
- cursor: not-allowed;
325
-
326
- input,
327
- .button.is-information,
328
- .eye i.fa {
329
- cursor: not-allowed;
330
- }
331
- }
332
-
333
- .multiselect__input {
334
- border: none !important;
335
- }
336
-
337
- &.has-bg-color {
338
- label.show-label {
339
- &:after {
340
- background-color: transparent;
341
- }
342
- }
343
- }
344
-
345
- &.is-small {
346
- label {
347
- font-size: 13px;
348
- top: 8px;
349
-
350
- &.show-label {
351
- font-size: 12px;
352
- top: -9px;
353
- font-weight: 500;
354
- color: $black-5;
355
- }
356
- }
357
-
358
- .button.is-information {
359
- width: 36px;
360
- height: 36px;
361
- }
362
-
363
- .multiselect__select {
364
- height: 100%;
365
- }
366
-
367
- .multiselect__tags {
368
- .multiselect__tag {
369
- padding: 5px 20px 4px 10px;
370
- font-size: 12px;
371
- }
372
- }
373
-
374
- .multiselect {
375
- min-height: auto;
376
- }
377
-
378
- .multiselect--active {
379
- height: 36px !important;
380
- z-index: 50;
381
- }
382
-
383
- .multiselect .multiselect__tags {
384
- min-height: 36px !important;
385
- padding: 4px 30px 4px 20px;
386
- font-size: 13px;
387
-
388
- .multiselect__single {
389
- font-size: 12px;
390
- }
391
-
392
- .multiselect__placeholder {
393
- padding: 5px 0 0;
394
- font-size: 13px;
395
- font-weight: 500;
396
- }
397
- }
398
-
399
- .multiselect__input,
400
- .multiselect__single {
401
- font-size: 13px !important;
402
- font-weight: 500;
403
- line-height: 1.5;
404
- // padding-bottom: 4px;
405
- display: flex;
406
- align-items: center;
407
-
408
- &::placeholder {
409
- font-weight: 500;
410
- line-height: 1.6;
411
- font-size: 13px;
412
- }
413
- }
414
- }
415
-
416
- &.is-extra-small {
417
- label {
418
- font-size: 13px;
419
- top: 8px;
420
-
421
- &.show-label {
422
- font-size: 12px;
423
- top: -9px;
424
- }
425
- }
426
-
427
- .button.is-information {
428
- width: 32px;
429
- height: 32px;
430
- }
431
-
432
- .multiselect__select {
433
- height: 100%;
434
- }
435
-
436
- .multiselect__tags {
437
- .multiselect__tag {
438
- padding: 5px 20px 4px 10px;
439
- font-size: 12px;
440
- }
441
- }
442
-
443
- .multiselect {
444
- min-height: auto;
445
- }
446
-
447
- .multiselect--active {
448
- height: 32px !important;
449
- z-index: 50;
450
- }
451
-
452
- .multiselect .multiselect__tags {
453
- min-height: 32px !important;
454
- padding: 3px 30px 4px 20px;
455
- font-size: 13px;
456
- display: flex;
457
- align-items: center;
458
- .multiselect__single {
459
- font-size: 12px;
460
- }
461
-
462
- .multiselect__placeholder {
463
- padding: 5px 0 0;
464
- font-size: 13px;
465
- font-weight: 500;
466
- }
467
- }
468
-
469
- .multiselect__input,
470
- .multiselect__single {
471
- font-size: 13px !important;
472
- font-weight: 500;
473
- line-height: 1.5;
474
- // padding-bottom: 4px;
475
- display: flex;
476
- align-items: center;
477
-
478
- &::placeholder {
479
- font-weight: 500;
480
- line-height: 1.6;
481
- font-size: 13px;
482
- }
483
- }
484
- }
485
-
486
- &.is-danger {
487
- input,
488
- .ac-card,
489
- textarea {
490
- border: 1px solid $danger;
491
- }
492
-
493
- p {
494
- color: $danger;
495
- }
496
- }
497
-
498
- &.is-loading {
499
- input,
500
- .ac-card,
501
- textarea {
502
- border: 1px solid $info;
503
- opacity: 0.5;
504
- }
505
-
506
- p {
507
- color: $info;
508
- opacity: 0.5;
509
- }
510
- }
511
-
512
- .is-danger {
513
- font-size: 12px;
514
- line-height: 22px;
515
- color: $danger;
516
- text-align: left;
517
-
518
- i.fa {
519
- padding-right: 10px;
520
- }
521
- }
522
-
523
- .multiselect__select {
524
- height: calc(100% - 2px);
525
- border-radius: 0 4px 4px 0;
526
- background-color: transparent !important;
527
- }
528
-
529
- label {
530
- font-size: 16px;
531
- left: 20px;
532
- top: 11px;
533
- cursor: text;
534
- color: $primary-10;
535
- position: absolute;
536
- z-index: 99;
537
- transition: 0.3s ease-in-out;
538
-
539
- .is-required {
540
- img {
541
- position: absolute;
542
- top: 7px;
543
- padding-left: 3px;
544
- }
545
- }
546
-
547
- &.show-label {
548
- top: -10px;
549
- left: 15px;
550
- padding: 0 5px;
551
- font-size: 13px;
552
- color: $black-5;
553
-
554
- &::after {
555
- background-color: $white-100;
556
- }
557
- }
558
-
559
- &:after {
560
- position: absolute;
561
- content: "";
562
- left: 0;
563
- top: 50%;
564
- background-color: $white-100;
565
- width: 100%;
566
- height: 2px;
567
- margin-top: -1px;
568
- z-index: -1;
569
- }
570
-
571
- &.is-required {
572
- &:after {
573
- width: calc(100% + 10px);
574
- }
575
- }
576
- }
577
- }
578
- li {
579
- .multiselect__option {
580
- font-size: 13px;
581
- color: $primary-10;
582
- }
583
- }
584
- .multiselect__option--selected {
585
- label {
586
- right: 30px;
587
- }
588
- }
589
- .multi-select-wrapper.is-small {
590
- .multiselect .multiselect__tags {
591
- .multiselect__input,
592
- .multiselect__single {
593
- top: 3.5px !important;
594
- }
595
- }
596
- .multiselect .multiselect__tags .multiselect__placeholder {
597
- padding-top: 3.5px !important;
598
- }
599
- }
600
- // has info button start
601
- .multi-select-wrapper {
602
- &.has-info-button {
603
- .multiselect__select {
604
- z-index: 99;
605
- right: 30px;
606
- }
607
- &.has-refresh-button {
608
- .multiselect__select {
609
- z-index: 99;
610
- right: 60px;
611
- }
612
- .button {
613
- &.is-refresh {
614
- right: 30px;
615
- }
616
- }
617
- }
618
- .button {
619
- &.is-information {
620
- right: 0;
621
- }
622
- }
623
- }
624
- &.has-refresh-button {
625
- .multiselect__select {
626
- z-index: 99;
627
- right: 30px;
628
- }
629
- .button {
630
- &.is-refresh {
631
- right: 0;
632
- }
633
- }
634
- }
635
-
636
- .button {
637
- &.is-information,
638
- &.is-refresh {
639
- background-color: transparent;
640
- border: none;
641
- position: absolute;
642
- height: 36px;
643
- width: 36px;
644
- z-index: 90;
645
- margin-top: 0;
646
-
647
- &:focus {
648
- outline: none;
649
- box-shadow: none;
650
- background-color: #e4e8ef;
651
- transform: scale(0.8);
652
- }
653
- }
654
- &.is-refresh.spin {
655
- i {
656
- animation: spin 1s linear infinite;
657
- }
658
- }
659
- }
660
- }
661
-
662
- @-moz-keyframes spin {
663
- from {
664
- -moz-transform: rotate(0deg);
665
- }
666
- to {
667
- -moz-transform: rotate(360deg);
668
- }
669
- }
670
- @-webkit-keyframes spin {
671
- from {
672
- -webkit-transform: rotate(0deg);
673
- }
674
- to {
675
- -webkit-transform: rotate(360deg);
676
- }
677
- }
678
- @keyframes spin {
679
- from {
680
- transform: rotate(0deg);
681
- }
682
- to {
683
- transform: rotate(360deg);
684
- }
685
- }
686
- // has info button end
687
-
688
- // dark theme start
689
- .is-dark-theme {
690
- .multiselect__content-wrapper {
691
- background: var(--dark-bg-light);
692
- border: 1px solid $primary-90;
693
-
694
- // scroll
695
- &::-webkit-scrollbar {
696
- border-radius: 50px;
697
- width: 3px;
698
- }
699
-
700
- &::-moz-scrollbar {
701
- border-radius: 50px;
702
- width: 3px;
703
- }
704
-
705
- &::-ms-scrollbar {
706
- border-radius: 50px;
707
- width: 3px;
708
- }
709
-
710
- &::-webkit-scrollbar:hover {
711
- width: 7px;
712
- }
713
-
714
- &::-moz-scrollbar:hover {
715
- width: 7px;
716
- }
717
-
718
- &::-ms-scrollbar:hover {
719
- width: 7px;
720
- }
721
-
722
- &::-webkit-scrollbar-thumb {
723
- background-color: $black-80;
724
- border-radius: 50px;
725
- height: 2px !important;
726
- }
727
-
728
- &::-moz-scrollbar-thumb {
729
- background-color: $black-80;
730
- border-radius: 50px;
731
- height: 2px !important;
732
- }
733
-
734
- &::-ms-scrollbar-thumb {
735
- background-color: $black-80;
736
- border-radius: 50px;
737
- height: 2px !important;
738
- }
739
-
740
- &::-webkit-scrollbar-thumb:hover {
741
- background-color: $black-80;
742
- }
743
-
744
- &::-moz-scrollbar-thumb:hover {
745
- background-color: $black-80;
746
- }
747
-
748
- &::-ms-scrollbar-thumb:hover {
749
- background-color: $black-80;
750
- }
751
-
752
- &:hover::-webkit-scrollbar-corner {
753
- height: 40px;
754
- }
755
-
756
- &:hover::-moz-scrollbar-corner {
757
- height: 40px;
758
- }
759
-
760
- &:hover::-ms-scrollbar-corner {
761
- height: 40px;
762
- }
763
-
764
- // scroll
765
-
766
- .multiselect__option--selected {
767
- background: var(--dark-bg);
768
- color: var(--ac-white-text);
769
- }
770
- }
771
-
772
- .multi-select-wrapper {
773
- background: var(--dark-bg-light);
774
-
775
- .multiselect__content-wrapper {
776
- background-color: var(--dark-bg-light);
777
- background: var(--dark-bg-light);
778
-
779
- // scroll
780
- &::-webkit-scrollbar {
781
- border-radius: 50px;
782
- width: 3px;
783
- }
784
-
785
- &::-moz-scrollbar {
786
- border-radius: 50px;
787
- width: 3px;
788
- }
789
-
790
- &::-ms-scrollbar {
791
- border-radius: 50px;
792
- width: 3px;
793
- }
794
-
795
- &::-webkit-scrollbar:hover {
796
- width: 7px;
797
- }
798
-
799
- &::-moz-scrollbar:hover {
800
- width: 7px;
801
- }
802
-
803
- &::-ms-scrollbar:hover {
804
- width: 7px;
805
- }
806
-
807
- &::-webkit-scrollbar-thumb {
808
- background-color: $black-80;
809
- border-radius: 50px;
810
- height: 2px !important;
811
- }
812
-
813
- &::-moz-scrollbar-thumb {
814
- background-color: $black-80;
815
- border-radius: 50px;
816
- height: 2px !important;
817
- }
818
-
819
- &::-ms-scrollbar-thumb {
820
- background-color: $black-80;
821
- border-radius: 50px;
822
- height: 2px !important;
823
- }
824
-
825
- &::-webkit-scrollbar-thumb:hover {
826
- background-color: $black-80;
827
- }
828
-
829
- &::-moz-scrollbar-thumb:hover {
830
- background-color: $black-80;
831
- }
832
-
833
- &::-ms-scrollbar-thumb:hover {
834
- background-color: $black-80;
835
- }
836
-
837
- &:hover::-webkit-scrollbar-corner {
838
- height: 40px;
839
- }
840
-
841
- &:hover::-moz-scrollbar-corner {
842
- height: 40px;
843
- }
844
-
845
- &:hover::-ms-scrollbar-corner {
846
- height: 40px;
847
- }
848
-
849
- // scroll
850
-
851
- .multiselect__content .multiselect__element .multiselect__option {
852
- color: var(--ac-white-text);
853
- }
854
-
855
- .multiselect__option--group {
856
- color: var(--ac-white-text);
857
- background-color: var(--dark-bg-light);
858
- }
859
-
860
- .multiselect__option--selected {
861
- color: var(--ac-white-text);
862
- background-color: var(--dark-bg-light);
863
- }
864
- }
865
- }
866
- }
867
- // dark theme end
868
- /****************************************
869
- Responsive Classes
870
- *****************************************/
871
- // Extra small devices (portrait phones, less than 576px)
872
- @media (max-width: 575.98px) {
873
- }
874
-
875
- // Small devices (landscape phones, 576px and up)
876
- @media (min-width: 576px) and (max-width: 767.98px) {
877
- }
878
-
879
- // Medium devices (tablets, 768px and up)
880
- @media (min-width: 768px) and (max-width: 991.98px) {
881
- }
882
-
883
- // Large devices (desktops, 992px and up)
884
- @media (min-width: 992px) and (max-width: 1199.98px) {
885
- }
886
-
887
- // Extra large devices (large desktops, 1200px and up)
888
- @media (min-width: 1200px) {
889
- }
890
- </style>
121
+ <style lang="scss"></style>