@wizishop/angular-components 0.0.226 → 0.0.228

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.
@@ -394,163 +394,74 @@ $wac-subtitle-color: #7A87A1!default;
394
394
  }
395
395
  }
396
396
  }
397
-
398
-
399
397
  .wac {
400
- &-select {
401
- width: 100%;
398
+ &-select-in-text {
399
+ width: auto;
402
400
  position: relative;
403
- height: 40px;
404
- border: 1px solid $wac-border-form;
405
- margin: 0;
406
- border-radius: 3px;
407
- z-index: 2;
408
- background-color: $wac-white;
409
- max-width: 100%;
401
+ display: flex;
402
+ align-items: center;
403
+ padding: 20px 0;
410
404
  &:hover,
411
405
  &:focus {
412
406
  z-index: 4;
413
407
  }
414
- &__label {
415
- padding: 0;
408
+ &__prepend,
409
+ &__after {
416
410
  font-size: rem(14);
417
411
  line-height: rem(16);
418
- margin: 0 0 rem(12);
419
- font-weight: 500;
412
+ color: $wac-main-text;
413
+ }
414
+ &__prepend {
415
+ margin: 0 rem(4) 0 0;
416
+ }
417
+ &__after {
418
+ margin: 0 0 0 rem(4);
420
419
  }
421
420
  &__current {
422
421
  display: flex;
423
- width: 100%;
424
- height: 38px;
422
+ width: auto;
425
423
  justify-content: space-between;
426
424
  align-items: center;
427
425
  align-content: center;
428
- padding: 0 0 0 20px;
429
- color: $wac-color-text-grey;
430
426
  font-size: rem(14);
431
427
  line-height: rem(16);
428
+ color: $wac-main-text;
432
429
  cursor: pointer;
433
430
  white-space: nowrap;
434
431
  text-overflow: ellipsis;
435
- max-width: 100%;
436
- overflow: hidden;
437
- &--withSearch {
438
- padding: 0;
439
- span {
440
- &:not(.icon):not(:last-child) {
441
- display: block;
442
- width: 100%;
443
- height: rem(38);
444
- line-height: rem(38);
445
- padding: 0 20px;
446
- }
447
- &.icon {
448
- & + span {
449
- padding: 0;
450
- }
451
- }
452
- &:last-child {
453
- margin: 0;
454
- }
455
- }
456
- &.open-search {
457
- span {
458
- &:not(.icon):not(:last-child) {
459
- display: none;
460
- }
461
- &.icon {
462
- display: none;
463
- }
464
- }
465
- }
466
- }
467
- span.icon {
468
- max-width: 24px;
469
- margin: 0 10px 0 0;
470
- i {
471
- font-size: rem(17);
472
- }
473
- img {
432
+ font-weight: 500;
433
+ position: relative;
434
+ span {
435
+ position: relative;
436
+ white-space: nowrap;
437
+ &:before {
438
+ content: '';
474
439
  display: block;
475
- max-width: rem(24);
476
- }
477
- &:empty {
478
- display: none;
479
- }
480
- }
481
- > span:not([class]):not(:last-child) {
482
- width: 100%;
483
- text-align: left;
484
- max-width: calc(100% - 58px);
485
- overflow: hidden;
486
- text-overflow: ellipsis;
487
- }
488
- span:last-child {
489
- width: 38px;
490
- min-width: 38px;
491
- height: 38px;
492
- margin: 0 0 0 20px;
493
- display: flex;
494
- justify-content: center;
495
- align-items: center;
496
- align-content: center;
497
- background-color: $wac-select-icon-background;
498
- border-radius: 0 3px 3px 0;
499
- z-index: 3;
500
- i {
501
- font-size: rem(12);
502
- color: $wac-second-color;
440
+ position: absolute;
441
+ bottom: -3px;
442
+ left: 0;
443
+ width: 100%;
444
+ height: 1.5px;
445
+ background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23e95656' stroke-width='1' stroke-dasharray='3%2c 6' stroke-dashoffset='4' stroke-linecap='square'/%3e%3c/svg%3e");
446
+ background-position: left top;
503
447
  }
504
- }
505
- &__search {
506
- position: relative;
507
- top: 0;
508
- left: 0;
509
- width: 100%;
510
- height: rem(38);
511
- display: flex;
512
- align-items: center;
513
- align-content: center;
514
- z-index: 2;
515
- padding: 0 0 0 rem(20);
516
- input {
517
- border: none;
448
+ &:after {
449
+ content: '';
450
+ display: block;
451
+ position: absolute;
452
+ top: 100%;
453
+ left: 0;
518
454
  width: 100%;
519
- box-shadow: none;
520
- margin: 0 0 0 rem(10);
521
- padding: 0;
522
- height: rem(38);
523
- line-height: rem(38);
524
- &:focus {
525
- &::-webkit-input-placeholder { /* Chrome/Opera/Safari */
526
- opacity: 0;
527
- }
528
- &::-moz-placeholder { /* Firefox 19+ */
529
- opacity: 0;
530
- }
531
- &:-ms-input-placeholder { /* IE 10+ */
532
- opacity: 0;
533
- }
534
- &:-moz-placeholder { /* Firefox 18- */
535
- opacity: 0;
536
- }
537
-
538
- }
455
+ height: 14px;
539
456
  }
540
457
  }
541
458
  }
542
- .select-disabled {
543
- background-color: #f5f8fa;
544
- cursor: not-allowed;
545
- }
546
459
  &__content {
547
460
  position: absolute;
548
461
  top: 100%;
549
462
  margin-top: rem(14);
550
- left: -1px;
463
+ left: 0;
551
464
  width: auto;
552
- min-width: calc(100% - 38px);
553
- max-width: calc(100% + 2px);
554
465
  border: 1px solid $wac-border-light;
555
466
  border-radius: 3px;
556
467
  display: flex;
@@ -558,18 +469,11 @@ $wac-subtitle-color: #7A87A1!default;
558
469
  justify-content: flex-start;
559
470
  align-items: flex-start;
560
471
  background-color: $wac-white;
561
- max-height: 260px;
472
+ max-height: 400px;
562
473
  height: auto;
563
474
  visibility: visible;
564
475
  opacity: 1;
565
476
  box-shadow: 3px 3px 20px $wac-select-box-shadow;
566
- padding: 10px;
567
- .to-top & {
568
- top: auto;
569
- bottom: 100%;
570
- margin-top: 0;
571
- margin-bottom: rem(14);
572
- }
573
477
  &.hidden {
574
478
  visibility: hidden;
575
479
  opacity: 0;
@@ -578,9 +482,6 @@ $wac-subtitle-color: #7A87A1!default;
578
482
  transition: 0s;
579
483
  }
580
484
  }
581
- .ps {
582
- max-height: 240px;
583
- }
584
485
  &.open,
585
486
  &.open.hidden {
586
487
  position: relative;
@@ -594,45 +495,10 @@ $wac-subtitle-color: #7A87A1!default;
594
495
  transition: 0s;
595
496
  }
596
497
  }
597
- &__cta {
598
- background-color: $wac-color-CTA-select;
599
- border: 1px solid $wac-border-CTA-select;
600
- color: $wac-main-text;
601
- font-size: rem(14);
602
- min-height: rem(40);
603
- display: flex;
604
- align-items: center;
605
- align-content: center;
606
- width: 100%;
607
- border-radius: 3px;
608
- cursor: pointer;
609
- transition: 0.3s ease;
610
- margin: 0 0 rem(10);
611
- padding: 0 20px;
612
- > div {
613
- display: flex;
614
- align-items: center;
615
- align-content: center;
616
- justify-content: flex-start;
617
- width: 100%;
618
- i {
619
- color: $wac-wizishop-blue;
620
- margin: 0 8px 0 0;
621
- }
622
- strong {
623
- display: inline-block;
624
- margin: 0 20px 0 0;
625
- }
626
- }
627
- &:hover,
628
- &:focus {
629
- background-color: darken($wac-color-CTA-select, 10%);
630
- }
631
- }
632
498
  &__item {
633
499
  width: 100%;
634
500
  font-size: rem(14);
635
- line-height: rem(30);
501
+ line-height: rem(40);
636
502
  cursor: pointer;
637
503
  transition: 0.3s ease;
638
504
  position: relative;
@@ -640,21 +506,18 @@ $wac-subtitle-color: #7A87A1!default;
640
506
  justify-content: flex-start;
641
507
  align-content: center;
642
508
  align-items: center;
643
- color: $wac-second-color;
509
+ font-weight: 400;
644
510
  > div {
645
- width: 100%;
646
- display: flex;
647
- align-items: center;
648
- align-content: center;
511
+ padding: 0 20px;
512
+ min-width: 100%;
513
+ &.selected {
514
+ background-color: $wac-hover-multiple-search;
515
+ color: $wac-main-text;
516
+ }
649
517
  }
650
518
  .icon {
651
519
  width: 24px;
652
520
  margin: 0 10px 0 0;
653
- height: auto;
654
- max-height: 24px;
655
- }
656
- &:not(:last-child) {
657
- margin: 0 0 rem(10);
658
521
  }
659
522
  &:empty {
660
523
  display: none;
@@ -667,28 +530,6 @@ $wac-subtitle-color: #7A87A1!default;
667
530
  background-color: $wac-gray-background;
668
531
  color: $wac-main-text;
669
532
  }
670
- > div {
671
- padding: 0 10px;
672
- &.selected {
673
- background-color: $wac-gray-background;
674
- color: $wac-main-text;
675
- }
676
- }
677
- }
678
- &__empty {
679
- display: flex;
680
- width: 100%;
681
- justify-content: center;
682
- align-items: center;
683
- padding: 10px;
684
- span {
685
- font-size: rem(16);
686
- font-weight: 400;
687
- text-align: center;
688
- color: $wac-second-color;
689
- display: inline-block;
690
- line-height: rem(25);
691
- }
692
533
  }
693
534
  }
694
535
  }
@@ -1426,8 +1267,21 @@ $wac-subtitle-color: #7A87A1!default;
1426
1267
  &:before {
1427
1268
  background-color: $wac-wizishop-blue;
1428
1269
  }
1270
+ &:hover, &:focus {
1271
+ .round {
1272
+ background-color: $wac-wizishop-blue;
1273
+ border-color: $wac-wizishop-blue;
1274
+ > span, > i {
1275
+ color: $wac-white;
1276
+ }
1277
+ }
1278
+ .name {
1279
+ color: $wac-wizishop-blue;
1280
+ }
1281
+ }
1429
1282
  }
1430
1283
 
1284
+
1431
1285
  &.current {
1432
1286
  &:before {
1433
1287
  height: 5px;
@@ -1471,21 +1325,9 @@ $wac-subtitle-color: #7A87A1!default;
1471
1325
  font-size: rem(14);
1472
1326
  font-weight: 500;
1473
1327
  color: $wac-second-color;
1474
- line-height: 1;
1475
- transition: .3s ease;
1476
- &.valid, &.current {
1477
- color: $wac-wizishop-blue;
1478
- }
1479
- }
1480
- &:hover:not(.valid), &:focus:not(.valid) {
1481
- .round {
1482
- background-color: $wac-wizishop-blue;
1483
- border-color: $wac-wizishop-blue;
1484
- > span, > i {
1485
- color: $wac-white;
1486
- }
1487
- }
1488
- .name {
1328
+ line-height: 1;
1329
+ transition: .3s ease;
1330
+ &.valid, &.current {
1489
1331
  color: $wac-wizishop-blue;
1490
1332
  }
1491
1333
  }
@@ -5317,6 +5159,7 @@ span.wac-tooltip {
5317
5159
  }
5318
5160
 
5319
5161
  &.alone {
5162
+ max-width: 40px!important;
5320
5163
  .wac-button__loader span {
5321
5164
  left: 14.6px;
5322
5165
  }
@@ -6508,74 +6351,163 @@ h4.wac-h4 {
6508
6351
  }
6509
6352
  }
6510
6353
  }
6354
+
6355
+
6511
6356
  .wac {
6512
- &-select-in-text {
6513
- width: auto;
6357
+ &-select {
6358
+ width: 100%;
6514
6359
  position: relative;
6515
- display: flex;
6516
- align-items: center;
6517
- padding: 20px 0;
6360
+ height: 40px;
6361
+ border: 1px solid $wac-border-form;
6362
+ margin: 0;
6363
+ border-radius: 3px;
6364
+ z-index: 2;
6365
+ background-color: $wac-white;
6366
+ max-width: 100%;
6518
6367
  &:hover,
6519
6368
  &:focus {
6520
6369
  z-index: 4;
6521
6370
  }
6522
- &__prepend,
6523
- &__after {
6371
+ &__label {
6372
+ padding: 0;
6524
6373
  font-size: rem(14);
6525
6374
  line-height: rem(16);
6526
- color: $wac-main-text;
6527
- }
6528
- &__prepend {
6529
- margin: 0 rem(4) 0 0;
6530
- }
6531
- &__after {
6532
- margin: 0 0 0 rem(4);
6375
+ margin: 0 0 rem(12);
6376
+ font-weight: 500;
6533
6377
  }
6534
6378
  &__current {
6535
6379
  display: flex;
6536
- width: auto;
6380
+ width: 100%;
6381
+ height: 38px;
6537
6382
  justify-content: space-between;
6538
6383
  align-items: center;
6539
6384
  align-content: center;
6385
+ padding: 0 0 0 20px;
6386
+ color: $wac-color-text-grey;
6540
6387
  font-size: rem(14);
6541
6388
  line-height: rem(16);
6542
- color: $wac-main-text;
6543
6389
  cursor: pointer;
6544
6390
  white-space: nowrap;
6545
6391
  text-overflow: ellipsis;
6546
- font-weight: 500;
6547
- position: relative;
6548
- span {
6549
- position: relative;
6550
- white-space: nowrap;
6551
- &:before {
6552
- content: '';
6553
- display: block;
6554
- position: absolute;
6555
- bottom: -3px;
6556
- left: 0;
6557
- width: 100%;
6558
- height: 1.5px;
6559
- background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23e95656' stroke-width='1' stroke-dasharray='3%2c 6' stroke-dashoffset='4' stroke-linecap='square'/%3e%3c/svg%3e");
6560
- background-position: left top;
6392
+ max-width: 100%;
6393
+ overflow: hidden;
6394
+ &--withSearch {
6395
+ padding: 0;
6396
+ span {
6397
+ &:not(.icon):not(:last-child) {
6398
+ display: block;
6399
+ width: 100%;
6400
+ height: rem(38);
6401
+ line-height: rem(38);
6402
+ padding: 0 20px;
6403
+ }
6404
+ &.icon {
6405
+ & + span {
6406
+ padding: 0;
6407
+ }
6408
+ }
6409
+ &:last-child {
6410
+ margin: 0;
6411
+ }
6561
6412
  }
6562
- &:after {
6563
- content: '';
6413
+ &.open-search {
6414
+ span {
6415
+ &:not(.icon):not(:last-child) {
6416
+ display: none;
6417
+ }
6418
+ &.icon {
6419
+ display: none;
6420
+ }
6421
+ }
6422
+ }
6423
+ }
6424
+ span.icon {
6425
+ max-width: 24px;
6426
+ margin: 0 10px 0 0;
6427
+ i {
6428
+ font-size: rem(17);
6429
+ }
6430
+ img {
6564
6431
  display: block;
6565
- position: absolute;
6566
- top: 100%;
6567
- left: 0;
6432
+ max-width: rem(24);
6433
+ }
6434
+ &:empty {
6435
+ display: none;
6436
+ }
6437
+ }
6438
+ > span:not([class]):not(:last-child) {
6439
+ width: 100%;
6440
+ text-align: left;
6441
+ max-width: calc(100% - 58px);
6442
+ overflow: hidden;
6443
+ text-overflow: ellipsis;
6444
+ }
6445
+ span:last-child {
6446
+ width: 38px;
6447
+ min-width: 38px;
6448
+ height: 38px;
6449
+ margin: 0 0 0 20px;
6450
+ display: flex;
6451
+ justify-content: center;
6452
+ align-items: center;
6453
+ align-content: center;
6454
+ background-color: $wac-select-icon-background;
6455
+ border-radius: 0 3px 3px 0;
6456
+ z-index: 3;
6457
+ i {
6458
+ font-size: rem(12);
6459
+ color: $wac-second-color;
6460
+ }
6461
+ }
6462
+ &__search {
6463
+ position: relative;
6464
+ top: 0;
6465
+ left: 0;
6466
+ width: 100%;
6467
+ height: rem(38);
6468
+ display: flex;
6469
+ align-items: center;
6470
+ align-content: center;
6471
+ z-index: 2;
6472
+ padding: 0 0 0 rem(20);
6473
+ input {
6474
+ border: none;
6568
6475
  width: 100%;
6569
- height: 14px;
6476
+ box-shadow: none;
6477
+ margin: 0 0 0 rem(10);
6478
+ padding: 0;
6479
+ height: rem(38);
6480
+ line-height: rem(38);
6481
+ &:focus {
6482
+ &::-webkit-input-placeholder { /* Chrome/Opera/Safari */
6483
+ opacity: 0;
6484
+ }
6485
+ &::-moz-placeholder { /* Firefox 19+ */
6486
+ opacity: 0;
6487
+ }
6488
+ &:-ms-input-placeholder { /* IE 10+ */
6489
+ opacity: 0;
6490
+ }
6491
+ &:-moz-placeholder { /* Firefox 18- */
6492
+ opacity: 0;
6493
+ }
6494
+
6495
+ }
6570
6496
  }
6571
6497
  }
6572
6498
  }
6499
+ .select-disabled {
6500
+ background-color: #f5f8fa;
6501
+ cursor: not-allowed;
6502
+ }
6573
6503
  &__content {
6574
6504
  position: absolute;
6575
6505
  top: 100%;
6576
6506
  margin-top: rem(14);
6577
- left: 0;
6507
+ left: -1px;
6578
6508
  width: auto;
6509
+ min-width: calc(100% - 38px);
6510
+ max-width: calc(100% + 2px);
6579
6511
  border: 1px solid $wac-border-light;
6580
6512
  border-radius: 3px;
6581
6513
  display: flex;
@@ -6583,11 +6515,18 @@ h4.wac-h4 {
6583
6515
  justify-content: flex-start;
6584
6516
  align-items: flex-start;
6585
6517
  background-color: $wac-white;
6586
- max-height: 400px;
6518
+ max-height: 260px;
6587
6519
  height: auto;
6588
6520
  visibility: visible;
6589
6521
  opacity: 1;
6590
6522
  box-shadow: 3px 3px 20px $wac-select-box-shadow;
6523
+ padding: 10px;
6524
+ .to-top & {
6525
+ top: auto;
6526
+ bottom: 100%;
6527
+ margin-top: 0;
6528
+ margin-bottom: rem(14);
6529
+ }
6591
6530
  &.hidden {
6592
6531
  visibility: hidden;
6593
6532
  opacity: 0;
@@ -6596,6 +6535,9 @@ h4.wac-h4 {
6596
6535
  transition: 0s;
6597
6536
  }
6598
6537
  }
6538
+ .ps {
6539
+ max-height: 240px;
6540
+ }
6599
6541
  &.open,
6600
6542
  &.open.hidden {
6601
6543
  position: relative;
@@ -6609,10 +6551,45 @@ h4.wac-h4 {
6609
6551
  transition: 0s;
6610
6552
  }
6611
6553
  }
6554
+ &__cta {
6555
+ background-color: $wac-color-CTA-select;
6556
+ border: 1px solid $wac-border-CTA-select;
6557
+ color: $wac-main-text;
6558
+ font-size: rem(14);
6559
+ min-height: rem(40);
6560
+ display: flex;
6561
+ align-items: center;
6562
+ align-content: center;
6563
+ width: 100%;
6564
+ border-radius: 3px;
6565
+ cursor: pointer;
6566
+ transition: 0.3s ease;
6567
+ margin: 0 0 rem(10);
6568
+ padding: 0 20px;
6569
+ > div {
6570
+ display: flex;
6571
+ align-items: center;
6572
+ align-content: center;
6573
+ justify-content: flex-start;
6574
+ width: 100%;
6575
+ i {
6576
+ color: $wac-wizishop-blue;
6577
+ margin: 0 8px 0 0;
6578
+ }
6579
+ strong {
6580
+ display: inline-block;
6581
+ margin: 0 20px 0 0;
6582
+ }
6583
+ }
6584
+ &:hover,
6585
+ &:focus {
6586
+ background-color: darken($wac-color-CTA-select, 10%);
6587
+ }
6588
+ }
6612
6589
  &__item {
6613
6590
  width: 100%;
6614
6591
  font-size: rem(14);
6615
- line-height: rem(40);
6592
+ line-height: rem(30);
6616
6593
  cursor: pointer;
6617
6594
  transition: 0.3s ease;
6618
6595
  position: relative;
@@ -6620,18 +6597,21 @@ h4.wac-h4 {
6620
6597
  justify-content: flex-start;
6621
6598
  align-content: center;
6622
6599
  align-items: center;
6623
- font-weight: 400;
6600
+ color: $wac-second-color;
6624
6601
  > div {
6625
- padding: 0 20px;
6626
- min-width: 100%;
6627
- &.selected {
6628
- background-color: $wac-hover-multiple-search;
6629
- color: $wac-main-text;
6630
- }
6602
+ width: 100%;
6603
+ display: flex;
6604
+ align-items: center;
6605
+ align-content: center;
6631
6606
  }
6632
6607
  .icon {
6633
6608
  width: 24px;
6634
6609
  margin: 0 10px 0 0;
6610
+ height: auto;
6611
+ max-height: 24px;
6612
+ }
6613
+ &:not(:last-child) {
6614
+ margin: 0 0 rem(10);
6635
6615
  }
6636
6616
  &:empty {
6637
6617
  display: none;
@@ -6644,6 +6624,28 @@ h4.wac-h4 {
6644
6624
  background-color: $wac-gray-background;
6645
6625
  color: $wac-main-text;
6646
6626
  }
6627
+ > div {
6628
+ padding: 0 10px;
6629
+ &.selected {
6630
+ background-color: $wac-gray-background;
6631
+ color: $wac-main-text;
6632
+ }
6633
+ }
6634
+ }
6635
+ &__empty {
6636
+ display: flex;
6637
+ width: 100%;
6638
+ justify-content: center;
6639
+ align-items: center;
6640
+ padding: 10px;
6641
+ span {
6642
+ font-size: rem(16);
6643
+ font-weight: 400;
6644
+ text-align: center;
6645
+ color: $wac-second-color;
6646
+ display: inline-block;
6647
+ line-height: rem(25);
6648
+ }
6647
6649
  }
6648
6650
  }
6649
6651
  }