wickes-css2 2.111.0-why-not-add-refactor-fix.2 → 2.112.0-develop.1

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.
Files changed (40) hide show
  1. package/Readme.md +1 -1
  2. package/build/css/kitchen-plp-main.css +1 -1
  3. package/build/css/pdp-main-before-combine.css +1 -1
  4. package/build/css/pdp-main-non-critical.css +1 -1
  5. package/build/css/pdp-main.css +1 -1
  6. package/build/js/bloomreach-widget.min.js +1 -1
  7. package/build/js/emulation.min.js +8 -334
  8. package/build/js/page/{bloomreach-widget/complete-your-project-widget.js → bloomreach-widget.js} +359 -205
  9. package/package.json +1 -1
  10. package/src/components/.DS_Store +0 -0
  11. package/src/components/bloomreach/complete-card.hbs +32 -4
  12. package/src/components/pdp-price-actions.hbs +2 -2
  13. package/src/components/price-block-v2.hbs +0 -2
  14. package/src/data/data_kitchen-plp.json +7 -16
  15. package/src/js/emulation/bloomreach-widget-loading.js +2 -2
  16. package/src/js/emulation/mock.js +0 -309
  17. package/src/js/page/.DS_Store +0 -0
  18. package/src/js/page/{bloomreach-widget/complete-your-project-widget.js → bloomreach-widget.js} +359 -205
  19. package/src/page_product-details-bloomreach.html +1 -1
  20. package/src/page_product-details-with-global-search-v2.html +1 -2
  21. package/src/scss/components/bloomreach/_bloomreach.scss +0 -3
  22. package/src/scss/components/bloomreach/_complete-card.scss +38 -0
  23. package/src/scss/components/kitchen/_colour-swatches.scss +9 -3
  24. package/src/sitemap.html +4 -10
  25. package/build/js/page/bloomreach-widget/bloomreach-widget.js +0 -241
  26. package/build/js/page/bloomreach-widget/why-not-add-widget.js +0 -196
  27. package/src/components/bloomreach/why-not-add-card-skeleton.hbs +0 -14
  28. package/src/components/bloomreach/why-not-add-card.hbs +0 -73
  29. package/src/components/bloomreach/why-not-add-content.hbs +0 -41
  30. package/src/components/bloomreach/why-not-add-skeleton.hbs +0 -9
  31. package/src/components/bloomreach/why-not-add.hbs +0 -6
  32. package/src/components/reviews-rating.hbs +0 -22
  33. package/src/js/emulation/why-not-add-loading.js +0 -11
  34. package/src/js/emulation/why-not-add.js +0 -28
  35. package/src/js/page/bloomreach-widget/bloomreach-widget.js +0 -241
  36. package/src/js/page/bloomreach-widget/why-not-add-widget.js +0 -196
  37. package/src/page_product-details-with-why-not-add-single.html +0 -131
  38. package/src/scss/components/bloomreach/_reviews.scss +0 -60
  39. package/src/scss/components/bloomreach/_why-not-add-card.scss +0 -212
  40. package/src/scss/components/bloomreach/_why-not-add.scss +0 -143
@@ -1,60 +0,0 @@
1
- .reviews {
2
- display: flex;
3
- align-items: center;
4
- font-size: 0.75rem;
5
- margin-bottom: 8px;
6
-
7
- &-count {
8
- @include font-size(12);
9
- @include line-height(16);
10
- color: $warm-grey;
11
- display: inline-block;
12
- margin-left: 3px;
13
- }
14
-
15
- .rating-bg {
16
- color: $gray;
17
- position: relative;
18
-
19
- .fa-star {
20
- margin-right: 0;
21
- }
22
- }
23
-
24
- .rating-overlay {
25
- color: $yellow;
26
- position: absolute;
27
- left: 0;
28
- top: 0;
29
- display: flex;
30
- }
31
-
32
- .star-overlay {
33
- display: inline-block;
34
- overflow: hidden;
35
-
36
- & + .star-overlay {
37
- margin-left: 3.3px;
38
- }
39
- }
40
-
41
- }
42
-
43
- .why-not-add {
44
-
45
- .reviews {
46
- margin-bottom: 7px;
47
-
48
- .rating-bg {
49
- .fa-star {
50
- @include font-size(8.4);
51
- }
52
- }
53
-
54
- .star-overlay {
55
- & + .star-overlay {
56
- margin-left: 3px;
57
- }
58
- }
59
- }
60
- }
@@ -1,212 +0,0 @@
1
- .why-not-add-card {
2
- display: flex;
3
- gap: 8px;
4
- padding: 12px;
5
- border: 1px solid $gray-border;
6
- border-radius: 4px;
7
- background-color: $white;
8
-
9
- &__image {
10
- display: block;
11
- width: 68px;
12
- height: 68px;
13
- object-fit: cover;
14
- }
15
-
16
- &__content {
17
- display: flex;
18
- flex: 1 1 auto;
19
- flex-direction: column;
20
- gap: 2px;
21
- min-width: 0;
22
- }
23
-
24
- &__title {
25
- @include font-size(14);
26
- @include line-height(22);
27
-
28
- display: -webkit-box;
29
- overflow: hidden;
30
- color: $blue;
31
- font-weight: 500;
32
- text-decoration: none;
33
- -webkit-box-orient: vertical;
34
- -webkit-line-clamp: 2;
35
-
36
- &:hover {
37
- color: $blue-darker;
38
- text-decoration: underline;
39
- }
40
- }
41
-
42
- &__bottom {
43
- display: flex;
44
- align-items: flex-start;
45
- justify-content: space-between;
46
- }
47
-
48
- &__price-wrap {
49
- display: flex;
50
- flex-wrap: wrap;
51
- align-items: baseline;
52
- min-width: 0;
53
- padding-right: 8px;
54
- gap: 4px;
55
- }
56
-
57
- &__price {
58
- display: flex;
59
- flex-wrap: wrap;
60
- align-items: flex-end;
61
- gap: 5px;
62
- }
63
-
64
- &__was-price {
65
- @include font-size(14);
66
- @include line-height(15);
67
-
68
- color: $warm-grey;
69
- font-weight: 500;
70
- text-decoration: line-through;
71
- white-space: nowrap;
72
- }
73
-
74
- &__regular-price,
75
- &__sale-price {
76
- @include font-size(18);
77
- @include line-height(18);
78
-
79
- color: $blue-dark;
80
- font-weight: 700;
81
- white-space: nowrap;
82
- }
83
-
84
- &__sale-price {
85
- color: $red;
86
- }
87
-
88
- &__vat-label,
89
- &__delivery {
90
- @include font-size(12);
91
- @include line-height(15);
92
-
93
- color: $squant;
94
- }
95
-
96
- &__vat-label {
97
- color: $blue-dark;
98
- font-weight: $headings-font-weight;
99
- }
100
-
101
- &__delivery {
102
- width: 100%;
103
- }
104
-
105
- .btn {
106
- display: flex;
107
- align-self: flex-end;
108
- align-items: center;
109
- justify-content: center;
110
- min-width: 40px;
111
- width: 40px;
112
- height: 40px;
113
- box-sizing: border-box;
114
- border: 1px solid $green;
115
- border-radius: 3px;
116
- background-color: $green;
117
- color: $white;
118
- cursor: pointer;
119
-
120
- &:hover {
121
- background-color: $white;
122
- color: $green;
123
- }
124
-
125
- &--loading {
126
- background-color: $green;
127
- color: $white;
128
- pointer-events: none;
129
- }
130
- }
131
-
132
- &__cta-icon {
133
- font-size: 18px;
134
- }
135
-
136
- &__loader {
137
- .loader-path {
138
- stroke: $white;
139
- }
140
- }
141
-
142
- &--skeleton {
143
- display: grid;
144
- grid-template-columns: 68px minmax(0, 1fr) 40px;
145
- grid-template-rows: 14px 14px 12px 18px 15px;
146
- gap: 6px 8px;
147
- align-items: start;
148
-
149
- .why-not-add-card {
150
- &__image {
151
- grid-column: 1;
152
- grid-row: 1 / 6;
153
- width: 68px;
154
- height: 68px;
155
- }
156
-
157
- &__skeleton {
158
- &-title {
159
- grid-column: 2 / 4;
160
- grid-row: 1;
161
- width: 80%;
162
- height: 14px;
163
- }
164
-
165
- &-title-short {
166
- grid-column: 2 / 3;
167
- grid-row: 2;
168
- width: 55%;
169
- height: 14px;
170
- }
171
-
172
- &-reviews {
173
- grid-column: 2 / 3;
174
- grid-row: 3;
175
- width: 82px;
176
- height: 12px;
177
- }
178
-
179
- &-price {
180
- grid-column: 2 / 3;
181
- grid-row: 4;
182
- width: 64px;
183
- height: 18px;
184
- }
185
-
186
- &-delivery {
187
- grid-column: 2 / 3;
188
- grid-row: 5;
189
- width: 92px;
190
- height: 12px;
191
- }
192
-
193
- &-cta {
194
- grid-column: 3;
195
- grid-row: 4 / 6;
196
- align-self: end;
197
- width: 40px;
198
- height: 40px;
199
- border-radius: 3px;
200
- }
201
- }
202
- }
203
- }
204
- }
205
-
206
- @media screen and (max-width: 375px) {
207
- .why-not-add-card {
208
- &__vat-label {
209
- width: 100%;
210
- }
211
- }
212
- }
@@ -1,143 +0,0 @@
1
- .why-not-add {
2
- display: flex;
3
- flex-direction: column;
4
- gap: 12px;
5
- padding: 21px 0 12px;
6
- margin-bottom: -19px;
7
-
8
- &__header {
9
- display: flex;
10
- align-items: center;
11
- justify-content: space-between;
12
- }
13
-
14
- &__title {
15
- @include font-size(14);
16
- @include line-height(22);
17
-
18
- margin: 0;
19
- font-weight: 700;
20
- }
21
-
22
- &__arrows {
23
- display: flex;
24
- align-items: center;
25
- gap: 30px;
26
- }
27
-
28
- &__arrow {
29
- @include font-size(24);
30
-
31
- display: flex;
32
- align-items: center;
33
- justify-content: center;
34
- width: 15px;
35
- height: 24px;
36
- padding: 0;
37
- border: 0;
38
- background: transparent;
39
- color: $blue;
40
- cursor: pointer;
41
-
42
- &--disabled,
43
- &.swiper-button-disabled {
44
- color: $warm-grey;
45
- cursor: default;
46
- pointer-events: none;
47
- }
48
-
49
- &:focus {
50
- outline: none;
51
- }
52
-
53
- &:focus-visible {
54
- outline: 2px solid $blue;
55
- outline-offset: 3px;
56
- }
57
- }
58
-
59
- &__slider {
60
- width: 100%;
61
- }
62
-
63
- &__slide {
64
- height: auto;
65
- }
66
-
67
- &__pagination {
68
- display: flex;
69
- align-items: center;
70
- justify-content: center;
71
- gap: 6px;
72
- min-height: 6px;
73
- }
74
-
75
- &__pagination-item {
76
- cursor: pointer;
77
- appearance: none;
78
- display: block;
79
- position: relative;
80
- width: 6px;
81
- height: 6px;
82
- padding: 0;
83
- border: 0;
84
- border-radius: 8px;
85
- background-color: $warm-grey;
86
- line-height: 0;
87
- transition-property: width, background-color;
88
- transition-duration: 0.25s;
89
- transition-timing-function: ease;
90
- outline: none;
91
-
92
- &:before {
93
- content: '';
94
- position: absolute;
95
- top: 50%;
96
- left: 50%;
97
- transform: translate(-50%, -50%);
98
- width: 200%;
99
- height: 200%;
100
- z-index: $dropdown-z-index;
101
- }
102
-
103
- &--active {
104
- width: 24px;
105
- background-color: $blue;
106
- cursor: default;
107
- z-index: $label-z-index;
108
- }
109
-
110
- &:focus {
111
- outline: none;
112
- }
113
-
114
- &:focus-visible {
115
- outline: 2px solid $blue;
116
- outline-offset: 2px;
117
- }
118
- }
119
-
120
- &--skeleton {
121
- gap: 12px;
122
-
123
- .why-not-add {
124
- &__header {
125
- min-height: 22px;
126
- }
127
-
128
- &__skeleton-title {
129
- width: 112px;
130
- height: 14px;
131
- }
132
-
133
- &__skeleton-cards {
134
- width: 100%;
135
- overflow: hidden;
136
- }
137
- }
138
- }
139
- }
140
-
141
- [data-why-not-add-widget] + .pdp-price__quantity-calculator {
142
- margin-top: 20px
143
- }