@ecomplus/storefront-components 1.0.0-beta.19 → 1.0.0-beta.191
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.
- package/.version +0 -0
- package/CHANGELOG.md +1333 -135
- package/all.js +3 -1
- package/dist/1.storefront-components.min.js +2 -0
- package/dist/1.storefront-components.min.js.map +1 -0
- package/dist/2.storefront-components.min.js +5 -0
- package/dist/2.storefront-components.min.js.map +1 -0
- package/dist/3.storefront-components.min.js +5 -0
- package/dist/3.storefront-components.min.js.map +1 -0
- package/dist/storefront-components.min.js +33 -12
- package/dist/storefront-components.min.js.map +1 -1
- package/package.json +17 -12
- package/src/APagination.vue +2 -0
- package/src/AShare.vue +2 -0
- package/src/AccountAddresses.vue +3 -0
- package/src/AccountForm.vue +3 -0
- package/src/AccountPoints.vue +3 -0
- package/src/BuyTogether.vue +3 -0
- package/src/EarnPointsProgress.vue +3 -0
- package/src/ItemCustomizations.vue +2 -0
- package/src/KitProductVariations.vue +3 -0
- package/src/PointsApplier.vue +2 -0
- package/src/ProductQuickview.vue +3 -0
- package/src/QuantitySelector.vue +3 -0
- package/src/RecommendedItems.vue +3 -0
- package/src/ShippingLine.vue +1 -0
- package/src/TheCart.vue +3 -0
- package/src/html/APagination.html +90 -0
- package/src/html/APrices.html +24 -4
- package/src/html/AShare.html +31 -0
- package/src/html/AccountAddresses.html +90 -0
- package/src/html/AccountForm.html +269 -0
- package/src/html/AccountPoints.html +39 -0
- package/src/html/AddressForm.html +9 -7
- package/src/html/BuyTogether.html +60 -0
- package/src/html/CartItem.html +86 -38
- package/src/html/CartQuickview.html +28 -5
- package/src/html/DiscountApplier.html +3 -3
- package/src/html/EarnPointsProgress.html +28 -0
- package/src/html/InputDate.html +1 -1
- package/src/html/InputDocNumber.html +1 -0
- package/src/html/InputPhone.html +1 -1
- package/src/html/InstantSearch.html +3 -3
- package/src/html/ItemCustomizations.html +14 -0
- package/src/html/KitProductVariations.html +92 -0
- package/src/html/LoginBlock.html +34 -32
- package/src/html/LoginModal.html +9 -4
- package/src/html/PaymentOption.html +7 -5
- package/src/html/PointsApplier.html +26 -0
- package/src/html/ProductCard.html +68 -8
- package/src/html/ProductGallery.html +21 -3
- package/src/html/ProductQuickview.html +64 -0
- package/src/html/ProductVariations.html +30 -3
- package/src/html/QuantitySelector.html +85 -0
- package/src/html/RecommendedItems.html +48 -0
- package/src/html/SearchEngine.html +101 -24
- package/src/html/ShippingCalculator.html +84 -3
- package/src/html/ShippingLine.html +5 -2
- package/src/html/TheAccount.html +43 -9
- package/src/html/TheCart.html +156 -0
- package/src/html/TheProduct.html +416 -138
- package/src/js/APagination.js +74 -0
- package/src/js/APicture.js +27 -7
- package/src/js/APrices.js +80 -41
- package/src/js/AShare.js +83 -0
- package/src/js/AccountAddresses.js +201 -0
- package/src/js/AccountForm.js +312 -0
- package/src/js/AccountPoints.js +63 -0
- package/src/js/AddressForm.js +80 -35
- package/src/js/BuyTogether.js +246 -0
- package/src/js/CartItem.js +67 -14
- package/src/js/CartQuickview.js +20 -1
- package/src/js/DiscountApplier.js +181 -50
- package/src/js/EarnPointsProgress.js +77 -0
- package/src/js/InputDate.js +8 -8
- package/src/js/InputDocNumber.js +20 -0
- package/src/js/ItemCustomizations.js +10 -0
- package/src/js/KitProductVariations.js +218 -0
- package/src/js/LoginBlock.js +47 -6
- package/src/js/LoginModal.js +18 -10
- package/src/js/PaymentOption.js +28 -1
- package/src/js/PointsApplier.js +110 -0
- package/src/js/ProductCard.js +115 -11
- package/src/js/ProductGallery.js +32 -12
- package/src/js/ProductQuickview.js +72 -0
- package/src/js/ProductVariations.js +76 -19
- package/src/js/QuantitySelector.js +175 -0
- package/src/js/RecommendedItems.js +178 -0
- package/src/js/SearchEngine.js +185 -55
- package/src/js/ShippingCalculator.js +176 -35
- package/src/js/ShippingLine.js +44 -5
- package/src/js/TheAccount.js +97 -6
- package/src/js/TheCart.js +146 -0
- package/src/js/TheProduct.js +387 -43
- package/src/js/helpers/add-idle-callback.js +7 -0
- package/src/js/helpers/check-form-validity.js +3 -0
- package/src/js/helpers/favorite-products.js +24 -0
- package/src/js/helpers/scroll-to-element.js +10 -0
- package/src/js/helpers/sort-apps.js +14 -0
- package/src/js/helpers/wait-storefront-info.js +21 -0
- package/src/scss/APicture.scss +2 -0
- package/src/scss/APrices.scss +13 -1
- package/src/scss/AccountAddresses.scss +27 -0
- package/src/scss/AccountForm.scss +5 -0
- package/src/scss/AccountPoints.scss +17 -0
- package/src/scss/BuyTogether.scss +38 -0
- package/src/scss/CartItem.scss +17 -1
- package/src/scss/EarnPointsProgress.scss +6 -0
- package/src/scss/InstantSearch.scss +1 -0
- package/src/scss/KitProductVariations.scss +72 -0
- package/src/scss/LoginBlock.scss +5 -0
- package/src/scss/PaymentOption.scss +10 -1
- package/src/scss/ProductCard.scss +63 -25
- package/src/scss/ProductGallery.scss +4 -2
- package/src/scss/ProductQuickview.scss +36 -0
- package/src/scss/ProductVariations.scss +20 -4
- package/src/scss/QuantitySelector.scss +39 -0
- package/src/scss/RecommendedItems.scss +28 -0
- package/src/scss/SearchEngine.scss +9 -5
- package/src/scss/ShippingCalculator.scss +42 -1
- package/src/scss/ShippingLine.scss +24 -0
- package/src/scss/TheAccount.scss +4 -0
- package/src/scss/TheCart.scss +54 -0
- package/src/scss/TheProduct.scss +146 -1
- package/webpack.config.js +20 -6
package/src/scss/APrices.scss
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
.prices {
|
|
2
2
|
line-height: var(--line-height-sm);
|
|
3
3
|
|
|
4
|
+
small:not(.prices__discount-label) {
|
|
5
|
+
text-transform: lowercase;
|
|
6
|
+
}
|
|
7
|
+
|
|
4
8
|
&:not(.prices--big) {
|
|
5
9
|
font-size: var(--font-size-sm);
|
|
6
10
|
|
|
@@ -12,6 +16,10 @@
|
|
|
12
16
|
&__value {
|
|
13
17
|
display: block;
|
|
14
18
|
font-size: var(--font-size-lg);
|
|
19
|
+
|
|
20
|
+
small {
|
|
21
|
+
font-size: var(--font-size-sm);
|
|
22
|
+
}
|
|
15
23
|
}
|
|
16
24
|
|
|
17
25
|
&--big {
|
|
@@ -33,10 +41,14 @@
|
|
|
33
41
|
|
|
34
42
|
small {
|
|
35
43
|
font-size: 100%;
|
|
36
|
-
text-transform: lowercase;
|
|
37
44
|
}
|
|
38
45
|
}
|
|
39
46
|
|
|
47
|
+
&__points {
|
|
48
|
+
margin-bottom: var(--spacer-2);
|
|
49
|
+
color: var(--secondary);
|
|
50
|
+
}
|
|
51
|
+
|
|
40
52
|
&:not(.prices--literal) {
|
|
41
53
|
.prices__compare {
|
|
42
54
|
color: var(--gray);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.account-addresses {
|
|
2
|
+
&__card {
|
|
3
|
+
margin-bottom: 1rem;
|
|
4
|
+
font-size: .9rem;
|
|
5
|
+
|
|
6
|
+
label {
|
|
7
|
+
width: 100%;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&__actions {
|
|
12
|
+
margin-top: .5rem;
|
|
13
|
+
|
|
14
|
+
.btn {
|
|
15
|
+
margin-right: .5rem;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__address {
|
|
20
|
+
margin-bottom: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&__line,
|
|
24
|
+
&__city {
|
|
25
|
+
display: block;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.account-points {
|
|
2
|
+
&__entry small {
|
|
3
|
+
text-transform: lowercase;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
&__info {
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
align-items: center;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&__entry-title {
|
|
13
|
+
display: flex;
|
|
14
|
+
width: 100%;
|
|
15
|
+
justify-content: space-between;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
.buy-together {
|
|
2
|
+
&__title {
|
|
3
|
+
text-align: center;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
&__row {
|
|
7
|
+
justify-content: center;
|
|
8
|
+
align-items: center;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&__item {
|
|
12
|
+
max-width: 275px;
|
|
13
|
+
margin: 0 auto;
|
|
14
|
+
padding-bottom: 2rem !important;
|
|
15
|
+
|
|
16
|
+
&::after {
|
|
17
|
+
content: '+';
|
|
18
|
+
position: absolute;
|
|
19
|
+
right: 50%;
|
|
20
|
+
font-size: 1.5rem;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&:last-child::after {
|
|
24
|
+
content: '=';
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@media (min-width: 767px) {
|
|
28
|
+
max-width: none;
|
|
29
|
+
padding-right: var(--spacer-2);
|
|
30
|
+
padding-left: var(--spacer-2);
|
|
31
|
+
|
|
32
|
+
&::after {
|
|
33
|
+
top: 50%;
|
|
34
|
+
right: 0;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
package/src/scss/CartItem.scss
CHANGED
|
@@ -35,6 +35,10 @@
|
|
|
35
35
|
font-size: var(--font-size-sm);
|
|
36
36
|
line-height: var(--line-height-sm);
|
|
37
37
|
margin-bottom: var(--spacer-2);
|
|
38
|
+
|
|
39
|
+
&-subtitle {
|
|
40
|
+
display: block;
|
|
41
|
+
}
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
&__quantity {
|
|
@@ -57,8 +61,20 @@
|
|
|
57
61
|
}
|
|
58
62
|
|
|
59
63
|
.close {
|
|
60
|
-
padding: var(--spacer-2);
|
|
64
|
+
padding-left: var(--spacer-2);
|
|
61
65
|
color: var(--danger);
|
|
62
66
|
font-size: var(--font-size);
|
|
63
67
|
}
|
|
68
|
+
|
|
69
|
+
&__freebie {
|
|
70
|
+
float: right;
|
|
71
|
+
padding: 0 var(--spacer-2);
|
|
72
|
+
text-transform: lowercase;
|
|
73
|
+
color: var(--success);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&--freebie .cart-item__prices {
|
|
77
|
+
text-decoration: line-through;
|
|
78
|
+
font-size: var(--font-size-sm);
|
|
79
|
+
}
|
|
64
80
|
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
.kit-product-variations {
|
|
2
|
+
max-width: 350px;
|
|
3
|
+
&__item {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items:flex-start;
|
|
6
|
+
overflow-x: hidden;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
margin-bottom: .5rem;
|
|
9
|
+
max-width: 350px;
|
|
10
|
+
|
|
11
|
+
a {
|
|
12
|
+
color: inherit;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
picture {
|
|
16
|
+
flex: 0 0 115px;
|
|
17
|
+
width: 115px;
|
|
18
|
+
height: auto;
|
|
19
|
+
margin-right: .5rem;
|
|
20
|
+
|
|
21
|
+
img {
|
|
22
|
+
border-radius: var(--border-radius);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
small {
|
|
27
|
+
line-height: 1.3;
|
|
28
|
+
display: inline-block;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&__info {
|
|
33
|
+
h2 {
|
|
34
|
+
font-size: var(--font-size-sm);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&__item-head {
|
|
39
|
+
display: flex;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&__info {
|
|
43
|
+
display: flex;
|
|
44
|
+
justify-content: space-around;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&__buy {
|
|
49
|
+
button {
|
|
50
|
+
width: 100%;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&__actions {
|
|
55
|
+
button {
|
|
56
|
+
text-transform: uppercase;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.glide__pagination {
|
|
61
|
+
text-align: center;
|
|
62
|
+
padding-bottom: 10px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&--hide {
|
|
66
|
+
display: none !important;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&--show {
|
|
70
|
+
margin-left: 3px;
|
|
71
|
+
}
|
|
72
|
+
}
|
package/src/scss/LoginBlock.scss
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
&:not(:first-of-type) {
|
|
7
|
-
margin-top: var(--spacer-
|
|
7
|
+
margin-top: var(--spacer-2);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
&__icon {
|
|
@@ -24,11 +24,20 @@
|
|
|
24
24
|
&__discount {
|
|
25
25
|
text-transform: lowercase;
|
|
26
26
|
font-size: var(--font-size);
|
|
27
|
+
|
|
28
|
+
&-value {
|
|
29
|
+
text-transform: none;
|
|
30
|
+
}
|
|
27
31
|
}
|
|
28
32
|
|
|
29
33
|
&__installment {
|
|
30
34
|
margin-bottom: 0;
|
|
31
35
|
font-size: var(--font-size-sm);
|
|
36
|
+
|
|
37
|
+
> li {
|
|
38
|
+
display: flex;
|
|
39
|
+
justify-content: space-between;
|
|
40
|
+
}
|
|
32
41
|
}
|
|
33
42
|
|
|
34
43
|
small {
|
|
@@ -7,6 +7,20 @@ $product-card-picture-lg: 250px !default;
|
|
|
7
7
|
padding: var(--spacer-2);
|
|
8
8
|
font-size: var(--font-size);
|
|
9
9
|
border-radius: var(--border-radius);
|
|
10
|
+
height: 100%;
|
|
11
|
+
|
|
12
|
+
> section {
|
|
13
|
+
height: 100%;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&__prices {
|
|
19
|
+
flex: 1;
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
justify-content: flex-end;
|
|
23
|
+
}
|
|
10
24
|
|
|
11
25
|
&__offer-stamp {
|
|
12
26
|
background-color: var(--success);
|
|
@@ -45,7 +59,6 @@ $product-card-picture-lg: 250px !default;
|
|
|
45
59
|
&__picture {
|
|
46
60
|
position: absolute;
|
|
47
61
|
display: block;
|
|
48
|
-
border-radius: var(--border-radius);
|
|
49
62
|
flex: 0 0 100%;
|
|
50
63
|
|
|
51
64
|
img {
|
|
@@ -81,46 +94,72 @@ $product-card-picture-lg: 250px !default;
|
|
|
81
94
|
}
|
|
82
95
|
|
|
83
96
|
&__name {
|
|
97
|
+
--max-lines: 3;
|
|
84
98
|
padding-top: var(--spacer-1);
|
|
85
99
|
font-size: var(--font-size-sm);
|
|
86
100
|
line-height: var(--line-height-sm);
|
|
87
|
-
height: calc(var(--line-height-sm) * var(--font-size-sm) * 3);
|
|
88
|
-
box-sizing: content-box !important;
|
|
89
101
|
overflow: hidden;
|
|
90
102
|
font-weight: var(--font-normal);
|
|
91
|
-
display: block;
|
|
92
103
|
z-index: 1;
|
|
104
|
+
display: -webkit-box;
|
|
105
|
+
-webkit-line-clamp: var(--max-lines);
|
|
106
|
+
-webkit-box-orient: vertical;
|
|
107
|
+
|
|
108
|
+
@media (min-width: 992px) {
|
|
109
|
+
--max-lines: 2;
|
|
110
|
+
}
|
|
93
111
|
}
|
|
94
112
|
|
|
95
|
-
&
|
|
96
|
-
|
|
113
|
+
&__favorite {
|
|
114
|
+
position: absolute;
|
|
115
|
+
top: var(--spacer-1);
|
|
116
|
+
font-size: var(--font-size-lg);
|
|
117
|
+
z-index: 9;
|
|
118
|
+
|
|
119
|
+
.active {
|
|
120
|
+
color: var(--red);
|
|
121
|
+
}
|
|
97
122
|
}
|
|
98
123
|
|
|
99
124
|
&__buy {
|
|
125
|
+
position: relative;
|
|
100
126
|
margin-top: var(--spacer-1);
|
|
127
|
+
|
|
128
|
+
&-loading {
|
|
129
|
+
position: absolute;
|
|
130
|
+
left: var(--spacer-2);
|
|
131
|
+
top: 50%;
|
|
132
|
+
margin-top: -8px;
|
|
133
|
+
}
|
|
101
134
|
}
|
|
102
135
|
|
|
103
|
-
|
|
104
|
-
|
|
136
|
+
@media (hover: hover) {
|
|
137
|
+
&:hover {
|
|
138
|
+
box-shadow: var(--box-shadow-sm);
|
|
105
139
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
140
|
+
.product-card__offer-stamp {
|
|
141
|
+
border-top-right-radius: 0;
|
|
142
|
+
border-bottom-right-radius: 0;
|
|
143
|
+
}
|
|
110
144
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
145
|
+
.product-card__picture.loaded {
|
|
146
|
+
position: inherit;
|
|
147
|
+
opacity: 1;
|
|
114
148
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
149
|
+
+ .picture {
|
|
150
|
+
position: absolute;
|
|
151
|
+
opacity: 0;
|
|
152
|
+
z-index: -1;
|
|
153
|
+
}
|
|
119
154
|
}
|
|
120
|
-
}
|
|
121
155
|
|
|
122
|
-
|
|
123
|
-
|
|
156
|
+
.product-card__buy {
|
|
157
|
+
opacity: 1;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.product-card__favorite {
|
|
161
|
+
opacity: 0.7;
|
|
162
|
+
}
|
|
124
163
|
}
|
|
125
164
|
}
|
|
126
165
|
|
|
@@ -145,9 +184,8 @@ $product-card-picture-lg: 250px !default;
|
|
|
145
184
|
|
|
146
185
|
.product-card__name {
|
|
147
186
|
padding-top: var(--spacer-2);
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
text-overflow: ellipsis;
|
|
187
|
+
margin-bottom: 0;
|
|
188
|
+
--max-lines: 2;
|
|
151
189
|
}
|
|
152
190
|
|
|
153
191
|
.product-card__buy {
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
display: inline-flex;
|
|
21
21
|
top: 100%;
|
|
22
22
|
margin-top: -35px;
|
|
23
|
+
flex-wrap: wrap;
|
|
23
24
|
|
|
24
25
|
@media (min-width: 992px) {
|
|
25
26
|
position: static;
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
opacity: .5;
|
|
37
38
|
transition: opacity .15s linear;
|
|
38
39
|
cursor: pointer;
|
|
39
|
-
margin
|
|
40
|
+
margin: 0 15px 15px 0;
|
|
40
41
|
|
|
41
42
|
&:last-of-type {
|
|
42
43
|
margin-right: 0;
|
|
@@ -81,7 +82,8 @@
|
|
|
81
82
|
padding: var(--spacer-2) 0;
|
|
82
83
|
font-size: var(--font-size);
|
|
83
84
|
|
|
84
|
-
i,
|
|
85
|
+
i,
|
|
86
|
+
svg {
|
|
85
87
|
color: var(--primary-light);
|
|
86
88
|
margin-right: var(--spacer-1);
|
|
87
89
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
.product-quickview {
|
|
2
|
+
&__box {
|
|
3
|
+
z-index: 1090;
|
|
4
|
+
position: fixed;
|
|
5
|
+
top: 0;
|
|
6
|
+
left: 0;
|
|
7
|
+
width: 100vw;
|
|
8
|
+
max-height: 100vh;
|
|
9
|
+
border-radius: 0;
|
|
10
|
+
overflow-y: auto;
|
|
11
|
+
|
|
12
|
+
@media (min-width: 576px) {
|
|
13
|
+
width: 90vw;
|
|
14
|
+
margin-left: 5vw;
|
|
15
|
+
max-height: 90vh;
|
|
16
|
+
margin-top: 5vh;
|
|
17
|
+
border-radius: var(--border-radius);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&__loading {
|
|
22
|
+
padding: var(--spacer-5);
|
|
23
|
+
text-align: center;
|
|
24
|
+
|
|
25
|
+
.spinner-border {
|
|
26
|
+
height: 5rem;
|
|
27
|
+
width: 5rem;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&__btn-redirect {
|
|
32
|
+
display: block;
|
|
33
|
+
max-width: 400px;
|
|
34
|
+
margin: var(--spacer-4) auto var(--spacer-5);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -7,25 +7,41 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
&__value {
|
|
11
|
+
margin-left: var(--spacer-2);
|
|
12
|
+
font-size: var(--font-size-sm);
|
|
13
|
+
|
|
14
|
+
.i-check {
|
|
15
|
+
color: var(--success);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&--empty {
|
|
19
|
+
color: var(--text-muted);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
10
23
|
&__option {
|
|
11
24
|
min-height: 2.3rem;
|
|
12
25
|
min-width: 2.3rem;
|
|
13
26
|
margin-bottom: var(--spacer-2);
|
|
14
27
|
border: var(--border-width) solid var(--border-color);
|
|
15
28
|
|
|
16
|
-
|
|
17
|
-
|
|
29
|
+
@media (hover: hover) {
|
|
30
|
+
&:hover {
|
|
31
|
+
border-color: var(--secondary-light);
|
|
32
|
+
}
|
|
18
33
|
}
|
|
19
34
|
|
|
20
35
|
&:not(:last-of-type) {
|
|
21
36
|
margin-right: var(--spacer-2);
|
|
22
37
|
}
|
|
23
38
|
|
|
24
|
-
&--selected:not(
|
|
39
|
+
&--selected:not(.disabled) {
|
|
25
40
|
border-color: var(--secondary);
|
|
41
|
+
box-shadow: 0 0 0 .1rem rgba(var(--secondary-rgb), .6);
|
|
26
42
|
}
|
|
27
43
|
|
|
28
|
-
|
|
44
|
+
&.disabled {
|
|
29
45
|
cursor: not-allowed;
|
|
30
46
|
position: relative;
|
|
31
47
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
.quantity-selector {
|
|
2
|
+
&__btn-container {
|
|
3
|
+
min-width: 7rem;
|
|
4
|
+
|
|
5
|
+
button {
|
|
6
|
+
max-width: 28px;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&__item {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
margin-bottom: var(--spacer-2);
|
|
14
|
+
|
|
15
|
+
.btn {
|
|
16
|
+
box-shadow: none;
|
|
17
|
+
text-decoration: none;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&__input {
|
|
22
|
+
max-width: 2.5rem;
|
|
23
|
+
padding-left: var(--spacer-1);
|
|
24
|
+
padding-right: var(--spacer-1);
|
|
25
|
+
text-align: center;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&__label {
|
|
29
|
+
font-size: var(--font-size-sm);
|
|
30
|
+
line-height: var(--line-height-sm);
|
|
31
|
+
margin-left: var(--spacer-1);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.alert {
|
|
35
|
+
max-width: 300px;
|
|
36
|
+
margin-bottom: 0;
|
|
37
|
+
margin-top: var(--spacer-3);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.recommended-items {
|
|
2
|
+
&__title {
|
|
3
|
+
text-align: center;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
&__load-more {
|
|
7
|
+
text-align: center;
|
|
8
|
+
margin-bottom: var(--spacer-3);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.row {
|
|
12
|
+
justify-content: space-around;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.product-card {
|
|
16
|
+
margin-bottom: var(--spacer-2);
|
|
17
|
+
|
|
18
|
+
&__prices {
|
|
19
|
+
justify-content: center;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&__buy {
|
|
23
|
+
opacity: 1;
|
|
24
|
+
position: static;
|
|
25
|
+
display: block;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
margin-bottom: 3px;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
.
|
|
69
|
+
.i-search {
|
|
70
70
|
opacity: .6;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
@@ -82,6 +82,7 @@
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
button {
|
|
85
|
+
max-width: 100%;
|
|
85
86
|
padding-left: 0;
|
|
86
87
|
color: var(--secondary);
|
|
87
88
|
font-size: var(--font-size-lg);
|
|
@@ -96,16 +97,16 @@
|
|
|
96
97
|
transition: opacity .25s;
|
|
97
98
|
}
|
|
98
99
|
|
|
99
|
-
.
|
|
100
|
+
.i-chevron-up {
|
|
100
101
|
display: none;
|
|
101
102
|
}
|
|
102
103
|
|
|
103
104
|
&[aria-expanded=true] {
|
|
104
|
-
.
|
|
105
|
+
.i-chevron-down {
|
|
105
106
|
display: none;
|
|
106
107
|
}
|
|
107
108
|
|
|
108
|
-
.
|
|
109
|
+
.i-chevron-up {
|
|
109
110
|
display: inherit;
|
|
110
111
|
}
|
|
111
112
|
}
|
|
@@ -133,7 +134,6 @@
|
|
|
133
134
|
|
|
134
135
|
&__selected {
|
|
135
136
|
margin-left: var(--spacer-2);
|
|
136
|
-
margin-bottom: var(--spacer-2);
|
|
137
137
|
|
|
138
138
|
> small {
|
|
139
139
|
color: var(--gray);
|
|
@@ -146,6 +146,10 @@
|
|
|
146
146
|
|
|
147
147
|
&__info {
|
|
148
148
|
padding-bottom: var(--spacer-3);
|
|
149
|
+
|
|
150
|
+
button {
|
|
151
|
+
margin-bottom: var(--spacer-2);
|
|
152
|
+
}
|
|
149
153
|
}
|
|
150
154
|
|
|
151
155
|
&__terms > span {
|