@wizishop/angular-components 0.0.181 → 0.0.185

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.
@@ -534,97 +534,241 @@ $wac-subtitle-color: #7A87A1!default;
534
534
  }
535
535
  }
536
536
  }
537
- .selected-list {
537
+ .wac-search {
538
538
  width: 100%;
539
+ min-height: 50px;
540
+ border-radius: 3px;
541
+ background-color: $wac-white;
542
+ position: relative;
543
+ z-index: 2;
544
+ border: 1px solid $wac-border-light;
545
+ transition: 0.3s ease;
546
+ &.open {
547
+ border-color: $wac-wizishop-blue;
548
+ }
539
549
  &__wrapper {
550
+ position: relative;
540
551
  display: flex;
541
- flex-direction: column;
542
- align-items: flex-start;
543
- justify-content: flex-start;
544
- &__head {
552
+ justify-content: space-between;
553
+ align-items: stretch;
554
+ align-content: stretch;
555
+ flex-wrap: nowrap;
556
+ width: 100%;
557
+ min-height: 50px;
558
+ @include media('<tablet') {
559
+ padding: 0 12px;
560
+ }
561
+ input {
562
+ background: transparent;
563
+ border: none;
564
+ color: $wac-main-text;
565
+ font-size: rem(14);
566
+ height: 50px;
567
+ line-height: 50px;
568
+ padding: 0 20px 0 48px;
569
+ font-weight: 400;
545
570
  width: 100%;
546
- min-height: rem(60);
547
- display: flex;
548
- justify-content: space-between;
549
- padding: 10px 20px;
550
- background-color: $wac-gray-background;
551
- margin: 0 0 10px;
552
- > p {
553
- display: flex;
554
- align-items: center;
555
- white-space: nowrap;
556
- font-size: rem(16);
557
- line-height: rem(19);
558
- font-weight: 500;
571
+ @include media('<tablet') {
572
+ padding: 0 0 0 10px;
559
573
  }
560
-
561
- &__button {
562
- height: rem(40);
563
- width: fit-content;
564
- margin-left: auto;
565
-
566
- &__mobile {
567
- @include media('>=1024px') {
568
- display: none;
569
- }
574
+ &::-webkit-input-placeholder {
575
+ /* Chrome/Opera/Safari */
576
+ color: $wac-multiple-search-input-color;
577
+ opacity: 1;
578
+ font-weight: 400;
579
+ @include media('<tablet') {
580
+ font-size: rem(11);
570
581
  }
571
-
572
- &__notMobile {
573
- @include media('<1024px') {
574
- display: none;
575
- }
582
+ }
583
+ &::-moz-placeholder {
584
+ /* Firefox 19+ */
585
+ color: $wac-multiple-search-input-color;
586
+ opacity: 1;
587
+ font-weight: 400;
588
+ @include media('<tablet') {
589
+ font-size: rem(11);
590
+ }
591
+ }
592
+ &:-ms-input-placeholder {
593
+ /* IE 10+ */
594
+ color: $wac-multiple-search-input-color;
595
+ opacity: 1;
596
+ font-weight: 400;
597
+ @include media('<tablet') {
598
+ font-size: rem(11);
599
+ }
600
+ }
601
+ &:-moz-placeholder {
602
+ /* Firefox 18- */
603
+ color: $wac-multiple-search-input-color;
604
+ opacity: 1;
605
+ font-weight: 400;
606
+ @include media('<tablet') {
607
+ font-size: rem(11);
608
+ }
609
+ }
610
+ &:focus {
611
+ & + button i {
612
+ color: $wac-main-text;
613
+ }
614
+ &::-webkit-input-placeholder {
615
+ /* Chrome/Opera/Safari */
616
+ color: $wac-white;
617
+ opacity: 1;
618
+ }
619
+ &::-moz-placeholder {
620
+ /* Firefox 19+ */
621
+ color: $wac-white;
622
+ opacity: 1;
623
+ }
624
+ &:-ms-input-placeholder {
625
+ /* IE 10+ */
626
+ color: $wac-white;
627
+ opacity: 1;
628
+ }
629
+ &:-moz-placeholder {
630
+ /* Firefox 18- */
631
+ color: $wac-white;
632
+ opacity: 1;
576
633
  }
577
-
578
634
  }
579
-
580
635
  }
581
- &__content {
636
+ button {
637
+ display: flex;
638
+ align-items: center;
639
+ align-content: center;
640
+ justify-content: center;
641
+ width: 18px;
642
+ height: 18px;
643
+ border-radius: 3px;
644
+ position: absolute;
645
+ left: 20px;
646
+ top: 50%;
647
+ transform: translateY(-50%);
648
+ border: none;
649
+ cursor: pointer;
650
+ background-color: $wac-white;
651
+ i {
652
+ font-size: rem(18);
653
+ color: $wac-color-icon-search-multiple-search;
654
+ transition: 0.3s ease;
655
+ }
656
+ &:hover {
657
+ i {
658
+ color: $wac-wizishop-blue !important;
659
+ }
660
+ }
661
+ }
662
+ }
663
+ &__absolute {
664
+ position: absolute;
665
+ top: 100%;
666
+ margin-top: rem(14);
667
+ left: -1px;
668
+ width: auto;
669
+ min-width: calc(100% - 38px);
670
+ max-width: calc(100% + 2px);
671
+ border: 1px solid $wac-border-light;
672
+ border-radius: 3px;
673
+ display: flex;
674
+ flex-direction: column;
675
+ justify-content: flex-start;
676
+ align-items: flex-start;
677
+ background-color: $wac-white;
678
+ max-height: 260px;
679
+ height: auto;
680
+ visibility: visible;
681
+ opacity: 1;
682
+ box-shadow: 3px 3px 20px $wac-select-box-shadow;
683
+ padding: 10px;
684
+ &.hidden {
685
+ visibility: hidden;
686
+ opacity: 0;
687
+ & > * {
688
+ opacity: 0;
689
+ transition: 0s;
690
+ }
691
+ }
692
+ .ps {
693
+ max-height: 240px;
694
+ }
695
+ &.open,
696
+ &.open.hidden {
697
+ position: relative;
698
+ left: auto;
699
+ top: 0;
700
+ transform: translateX(-1px);
701
+ visibility: visible;
702
+ opacity: 1;
703
+ & > * {
704
+ opacity: 1;
705
+ transition: 0s;
706
+ }
707
+ }
708
+ &__item {
582
709
  width: 100%;
710
+ font-size: rem(14);
711
+ line-height: rem(30);
712
+ cursor: pointer;
713
+ transition: 0.3s ease;
714
+ position: relative;
583
715
  display: flex;
584
- flex-wrap: wrap;
585
- align-items: flex-start;
586
- align-content: flex-start;
587
716
  justify-content: flex-start;
588
- &__item {
589
- white-space: nowrap;
590
- margin: 0 10px 10px 0;
591
- border: 1px solid $wac-border-form;
592
- border-radius: 2px;
593
- color: $wac-second-color;
594
- height: rem(40);
717
+ align-content: center;
718
+ align-items: center;
719
+ color: $wac-second-color;
720
+ > div {
721
+ width: 100%;
595
722
  display: flex;
596
- justify-content: center;
597
723
  align-items: center;
598
- padding: 0 20px;
599
- transition: .3s ease;
600
- font-size: rem(16);
601
- line-height: rem(19);
602
- font-weight: 500;
603
- cursor: pointer;
604
- &:hover, &:focus {
605
- border: 1px solid $wac-main-text;
606
- }
607
- > i {
608
- color: $wac-green-color;
609
- max-width: 0;
610
- display: block;
611
- transition: .3s ease;
612
- overflow: hidden;
613
- }
614
- &.active {
724
+ align-content: center;
725
+ }
726
+ .icon {
727
+ width: 24px;
728
+ margin: 0 10px 0 0;
729
+ height: auto;
730
+ max-height: 24px;
731
+ }
732
+ &:not(:last-child) {
733
+ margin: 0 0 rem(10);
734
+ }
735
+ &:empty {
736
+ display: none;
737
+ }
738
+ &:first-child {
739
+ border-width: 1px 0 1px;
740
+ }
741
+ &:hover,
742
+ &:focus {
743
+ background-color: $wac-gray-background;
744
+ color: $wac-main-text;
745
+ }
746
+ > div {
747
+ padding: 0 10px;
748
+ &.selected {
749
+ background-color: $wac-gray-background;
615
750
  color: $wac-main-text;
616
- > i {
617
- max-width: unset;
618
- margin: 0 0 0 10px;
619
- }
620
- }
621
- &:first-child {
622
- margin-left: 18px;
623
751
  }
624
752
  }
625
753
  }
754
+ &__empty {
755
+ display: flex;
756
+ width: 100%;
757
+ justify-content: center;
758
+ align-items: center;
759
+ padding: 10px;
760
+ span {
761
+ font-size: rem(16);
762
+ font-weight: 400;
763
+ text-align: center;
764
+ color: $wac-second-color;
765
+ display: inline-block;
766
+ line-height: rem(25);
767
+ }
768
+ }
626
769
  }
627
- }.wac-alert-popup {
770
+ }
771
+ .wac-alert-popup {
628
772
  .alert {
629
773
  z-index: 999999;
630
774
  position: fixed;
@@ -827,260 +971,116 @@ $wac-subtitle-color: #7A87A1!default;
827
971
  font-size: rem(20);
828
972
  color: $white;
829
973
  }
830
- .is-success & {
831
- background-color: darken($wac-color-success-popup-alert, 20%);
832
- &:hover, &:focus {
833
- background-color: darken($wac-color-success-popup-alert, 30%);
834
- }
835
- }
836
- .is-danger & {
837
- background-color: darken($wac-primary-button, 10%);
838
- &:hover, &:focus {
839
- background-color: darken($wac-primary-button, 15%);
840
- }
841
- }
842
- .fullsize & {
843
- top: 50%;
844
- transform: translateY(-50%);
845
- }
846
- }
847
-
848
- }
849
- .wac-search {
850
- width: 100%;
851
- min-height: 50px;
852
- border-radius: 3px;
853
- background-color: $wac-white;
854
- position: relative;
855
- z-index: 2;
856
- border: 1px solid $wac-border-light;
857
- transition: 0.3s ease;
858
- &.open {
859
- border-color: $wac-wizishop-blue;
860
- }
861
- &__wrapper {
862
- position: relative;
863
- display: flex;
864
- justify-content: space-between;
865
- align-items: stretch;
866
- align-content: stretch;
867
- flex-wrap: nowrap;
868
- width: 100%;
869
- min-height: 50px;
870
- @include media('<tablet') {
871
- padding: 0 12px;
872
- }
873
- input {
874
- background: transparent;
875
- border: none;
876
- color: $wac-main-text;
877
- font-size: rem(14);
878
- height: 50px;
879
- line-height: 50px;
880
- padding: 0 20px 0 48px;
881
- font-weight: 400;
882
- width: 100%;
883
- @include media('<tablet') {
884
- padding: 0 0 0 10px;
885
- }
886
- &::-webkit-input-placeholder {
887
- /* Chrome/Opera/Safari */
888
- color: $wac-multiple-search-input-color;
889
- opacity: 1;
890
- font-weight: 400;
891
- @include media('<tablet') {
892
- font-size: rem(11);
893
- }
894
- }
895
- &::-moz-placeholder {
896
- /* Firefox 19+ */
897
- color: $wac-multiple-search-input-color;
898
- opacity: 1;
899
- font-weight: 400;
900
- @include media('<tablet') {
901
- font-size: rem(11);
902
- }
903
- }
904
- &:-ms-input-placeholder {
905
- /* IE 10+ */
906
- color: $wac-multiple-search-input-color;
907
- opacity: 1;
908
- font-weight: 400;
909
- @include media('<tablet') {
910
- font-size: rem(11);
911
- }
912
- }
913
- &:-moz-placeholder {
914
- /* Firefox 18- */
915
- color: $wac-multiple-search-input-color;
916
- opacity: 1;
917
- font-weight: 400;
918
- @include media('<tablet') {
919
- font-size: rem(11);
920
- }
921
- }
922
- &:focus {
923
- & + button i {
924
- color: $wac-main-text;
925
- }
926
- &::-webkit-input-placeholder {
927
- /* Chrome/Opera/Safari */
928
- color: $wac-white;
929
- opacity: 1;
930
- }
931
- &::-moz-placeholder {
932
- /* Firefox 19+ */
933
- color: $wac-white;
934
- opacity: 1;
935
- }
936
- &:-ms-input-placeholder {
937
- /* IE 10+ */
938
- color: $wac-white;
939
- opacity: 1;
940
- }
941
- &:-moz-placeholder {
942
- /* Firefox 18- */
943
- color: $wac-white;
944
- opacity: 1;
945
- }
974
+ .is-success & {
975
+ background-color: darken($wac-color-success-popup-alert, 20%);
976
+ &:hover, &:focus {
977
+ background-color: darken($wac-color-success-popup-alert, 30%);
946
978
  }
947
979
  }
948
- button {
949
- display: flex;
950
- align-items: center;
951
- align-content: center;
952
- justify-content: center;
953
- width: 18px;
954
- height: 18px;
955
- border-radius: 3px;
956
- position: absolute;
957
- left: 20px;
980
+ .is-danger & {
981
+ background-color: darken($wac-primary-button, 10%);
982
+ &:hover, &:focus {
983
+ background-color: darken($wac-primary-button, 15%);
984
+ }
985
+ }
986
+ .fullsize & {
958
987
  top: 50%;
959
988
  transform: translateY(-50%);
960
- border: none;
961
- cursor: pointer;
962
- background-color: $wac-white;
963
- i {
964
- font-size: rem(18);
965
- color: $wac-color-icon-search-multiple-search;
966
- transition: 0.3s ease;
967
- }
968
- &:hover {
969
- i {
970
- color: $wac-wizishop-blue !important;
971
- }
972
- }
973
989
  }
974
990
  }
975
- &__absolute {
976
- position: absolute;
977
- top: 100%;
978
- margin-top: rem(14);
979
- left: -1px;
980
- width: auto;
981
- min-width: calc(100% - 38px);
982
- max-width: calc(100% + 2px);
983
- border: 1px solid $wac-border-light;
984
- border-radius: 3px;
991
+
992
+ }
993
+ .selected-list {
994
+ width: 100%;
995
+ &__wrapper {
985
996
  display: flex;
986
997
  flex-direction: column;
987
- justify-content: flex-start;
988
998
  align-items: flex-start;
989
- background-color: $wac-white;
990
- max-height: 260px;
991
- height: auto;
992
- visibility: visible;
993
- opacity: 1;
994
- box-shadow: 3px 3px 20px $wac-select-box-shadow;
995
- padding: 10px;
996
- &.hidden {
997
- visibility: hidden;
998
- opacity: 0;
999
- & > * {
1000
- opacity: 0;
1001
- transition: 0s;
1002
- }
1003
- }
1004
- .ps {
1005
- max-height: 240px;
1006
- }
1007
- &.open,
1008
- &.open.hidden {
1009
- position: relative;
1010
- left: auto;
1011
- top: 0;
1012
- transform: translateX(-1px);
1013
- visibility: visible;
1014
- opacity: 1;
1015
- & > * {
1016
- opacity: 1;
1017
- transition: 0s;
1018
- }
1019
- }
1020
- &__item {
999
+ justify-content: flex-start;
1000
+ &__head {
1021
1001
  width: 100%;
1022
- font-size: rem(14);
1023
- line-height: rem(30);
1024
- cursor: pointer;
1025
- transition: 0.3s ease;
1026
- position: relative;
1002
+ min-height: rem(60);
1027
1003
  display: flex;
1028
- justify-content: flex-start;
1029
- align-content: center;
1030
- align-items: center;
1031
- color: $wac-second-color;
1032
- > div {
1033
- width: 100%;
1004
+ justify-content: space-between;
1005
+ padding: 10px 20px;
1006
+ background-color: $wac-gray-background;
1007
+ margin: 0 0 10px;
1008
+ > p {
1034
1009
  display: flex;
1035
1010
  align-items: center;
1036
- align-content: center;
1037
- }
1038
- .icon {
1039
- width: 24px;
1040
- margin: 0 10px 0 0;
1041
- height: auto;
1042
- max-height: 24px;
1043
- }
1044
- &:not(:last-child) {
1045
- margin: 0 0 rem(10);
1046
- }
1047
- &:empty {
1048
- display: none;
1049
- }
1050
- &:first-child {
1051
- border-width: 1px 0 1px;
1052
- }
1053
- &:hover,
1054
- &:focus {
1055
- background-color: $wac-gray-background;
1056
- color: $wac-main-text;
1011
+ white-space: nowrap;
1012
+ font-size: rem(16);
1013
+ line-height: rem(19);
1014
+ font-weight: 500;
1057
1015
  }
1058
- > div {
1059
- padding: 0 10px;
1060
- &.selected {
1061
- background-color: $wac-gray-background;
1062
- color: $wac-main-text;
1016
+
1017
+ &__button {
1018
+ height: rem(40);
1019
+ width: fit-content;
1020
+ margin-left: auto;
1021
+
1022
+ &__mobile {
1023
+ @include media('>=1024px') {
1024
+ display: none;
1025
+ }
1026
+ }
1027
+
1028
+ &__notMobile {
1029
+ @include media('<1024px') {
1030
+ display: none;
1031
+ }
1063
1032
  }
1033
+
1064
1034
  }
1035
+
1065
1036
  }
1066
- &__empty {
1067
- display: flex;
1037
+ &__content {
1068
1038
  width: 100%;
1069
- justify-content: center;
1070
- align-items: center;
1071
- padding: 10px;
1072
- span {
1073
- font-size: rem(16);
1074
- font-weight: 400;
1075
- text-align: center;
1039
+ display: flex;
1040
+ flex-wrap: wrap;
1041
+ align-items: flex-start;
1042
+ align-content: flex-start;
1043
+ justify-content: flex-start;
1044
+ &__item {
1045
+ white-space: nowrap;
1046
+ margin: 0 10px 10px 0;
1047
+ border: 1px solid $wac-border-form;
1048
+ border-radius: 2px;
1076
1049
  color: $wac-second-color;
1077
- display: inline-block;
1078
- line-height: rem(25);
1050
+ height: rem(40);
1051
+ display: flex;
1052
+ justify-content: center;
1053
+ align-items: center;
1054
+ padding: 0 20px;
1055
+ transition: .3s ease;
1056
+ font-size: rem(16);
1057
+ line-height: rem(19);
1058
+ font-weight: 500;
1059
+ cursor: pointer;
1060
+ &:hover, &:focus {
1061
+ border: 1px solid $wac-main-text;
1062
+ }
1063
+ > i {
1064
+ color: $wac-green-color;
1065
+ max-width: 0;
1066
+ display: block;
1067
+ transition: .3s ease;
1068
+ overflow: hidden;
1069
+ }
1070
+ &.active {
1071
+ color: $wac-main-text;
1072
+ > i {
1073
+ max-width: unset;
1074
+ margin: 0 0 0 10px;
1075
+ }
1076
+ }
1077
+ &:first-child {
1078
+ margin-left: 18px;
1079
+ }
1079
1080
  }
1080
1081
  }
1081
1082
  }
1082
- }
1083
- .wac-block {
1083
+ }.wac-block {
1084
1084
  background-color: $white;
1085
1085
  @include padding(rem(30));
1086
1086
  box-shadow: 0 rem(2) rem(5) rgba(45, 62, 85, 0.05);
@@ -2170,6 +2170,51 @@ $wac-subtitle-color: #7A87A1!default;
2170
2170
  }
2171
2171
  }
2172
2172
  }
2173
+ .wac-content-with-buttons {
2174
+ display: flex;
2175
+ align-items: center;
2176
+ width: 100%;
2177
+ @include media('<tablet') {
2178
+ flex-direction: column;
2179
+ justify-content: flex-start;
2180
+ align-items: flex-start;
2181
+ }
2182
+ &__text {
2183
+ width: 100%;
2184
+ &__count {
2185
+ margin: 10px 0 0;
2186
+ width: 100%;
2187
+ display: flex;
2188
+ align-items: flex-end;
2189
+ justify-content: flex-start;
2190
+ > span {
2191
+ &:first-child {
2192
+ font-size: rem(12);
2193
+ font-style: italic;
2194
+ color: $wac-color-text-grey;
2195
+ line-height: rem(16);
2196
+ display: inline-block;
2197
+ transform: translateY(-3px);
2198
+ }
2199
+ &:last-child {
2200
+ display: inline-block;
2201
+ margin: 0 0 0 20px;
2202
+ }
2203
+ }
2204
+ }
2205
+ }
2206
+ &__cta {
2207
+ display: flex;
2208
+ align-items: center;
2209
+ width: auto;
2210
+ > div {
2211
+ margin: 0 0 0 20px;
2212
+ }
2213
+ @include media('<tablet') {
2214
+ margin: 15px 0 0;
2215
+ }
2216
+ }
2217
+ }
2173
2218
 
2174
2219
  .wac-switch {
2175
2220
  input {
@@ -2743,6 +2788,7 @@ $wac-subtitle-color: #7A87A1!default;
2743
2788
  &__left {
2744
2789
  width: auto;
2745
2790
  display: flex;
2791
+ flex-wrap: wrap;
2746
2792
  align-items: center;
2747
2793
  align-content: center;
2748
2794
  margin: 0 10px 0 0;
@@ -2784,6 +2830,31 @@ $wac-subtitle-color: #7A87A1!default;
2784
2830
  }
2785
2831
  }
2786
2832
  }
2833
+ &__nowrap {
2834
+ width: 100%;
2835
+ display: flex;
2836
+ align-items: center;
2837
+ .center & {
2838
+ justify-content: center;
2839
+ }
2840
+ }
2841
+ .subtitle {
2842
+ padding: 0 0 0 60px;
2843
+ .center & {
2844
+ padding: 0;
2845
+ display: flex;
2846
+ justify-content: center;
2847
+ }
2848
+ &:empty {
2849
+ display: none;
2850
+ }
2851
+ &:not(:empty) {
2852
+ margin: 12px 0 0;
2853
+ }
2854
+ }
2855
+ > *:not(a) {
2856
+ width: 100%;
2857
+ }
2787
2858
  }
2788
2859
  &__right {
2789
2860
  width: 100%;
@@ -3943,6 +4014,12 @@ span.wac-tooltip {
3943
4014
  font-style: italic;
3944
4015
  }
3945
4016
 
4017
+ .subtitle {
4018
+ &:last-child {
4019
+ margin: 0;
4020
+ }
4021
+ }
4022
+
3946
4023
  .package-subtitle {
3947
4024
  margin: 10px 0 30px;
3948
4025
  }