wickes-css2 2.105.0-develop.1 → 2.105.0-develop.2

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.
@@ -2,8 +2,8 @@ var Wick = Wick || {};
2
2
 
3
3
  Wick.KlarnaModalScrollDisable = (function () {
4
4
  const $body = $('body'),
5
- klarnaPopUp = 'klarna-osm-interstitial',
6
- scrollDisableClass = 'overflow-hidden';
5
+ klarnaPopUp = 'klarna-osm-interstitial',
6
+ scrollDisableClass = 'overflow-hidden';
7
7
 
8
8
  window.addEventListener(klarnaPopUp, (e) => {
9
9
  let isKlarnaPopUpActive = e.detail.action === 'show';
@@ -301,5 +301,4 @@ Wick.onlineExclusive = (function () {
301
301
  $('html, body').animate({scrollTop: dn}, 1000);
302
302
  });
303
303
  });
304
-
305
304
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wickes-css2",
3
- "version": "2.105.0-develop.1",
3
+ "version": "2.105.0-develop.2",
4
4
  "description": "CSS and JS and page templates in use by Wickes",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -28,7 +28,18 @@
28
28
  <div class="calendar__row">
29
29
  <div class="calendar__row_days">
30
30
  {{/if}}
31
- <span class="calendar__cell calendar__cell_cnt{{#if isInactive}} calendar__cell_inactive{{/if}}">{{day}}</span>
31
+ <span class="calendar__cell calendar__cell_cnt{{#if isInactive}} calendar__cell_inactive{{/if}}{{#if (eq day '1')}}{{#unless isInactive}} calendar__cell_rapid{{/unless}}{{/if}}">
32
+ {{#if (eq day '1')}}
33
+ {{#unless isInactive}}
34
+ {{day}}
35
+ <span class="label-rapid">Rapid</span>
36
+ {{else}}
37
+ {{day}}
38
+ {{/unless}}
39
+ {{else}}
40
+ {{day}}
41
+ {{/if}}
42
+ </span>
32
43
  {{#if (eq (mod_inc @index 7) 0)}}
33
44
  </div>
34
45
  </div>
@@ -53,11 +64,19 @@
53
64
  </div>
54
65
  </div>
55
66
  <div class="delivery-time">
56
- {{> delivery-types
57
- title=titleDelivery
58
- subtitle=subtitleDelivery
59
- classImg=imgDelivery
60
- }}
67
+ <div class="delivery-time__rapid-hint">
68
+ <span class="icon-wrap icon-wrap--large">
69
+ <i class="fas fa-shipping-fast icon"></i>
70
+ </span>
71
+ <p class="description">
72
+ Select todays’ day on the calendar to get Wickes Rapid delivery
73
+ </p>
74
+ </div>
75
+ {{> delivery-types
76
+ title=titleDelivery
77
+ subtitle=subtitleDelivery
78
+ classImg=imgDelivery
79
+ }}
61
80
  </div>
62
81
  </div>
63
82
  </div>
@@ -2,8 +2,8 @@ var Wick = Wick || {};
2
2
 
3
3
  Wick.KlarnaModalScrollDisable = (function () {
4
4
  const $body = $('body'),
5
- klarnaPopUp = 'klarna-osm-interstitial',
6
- scrollDisableClass = 'overflow-hidden';
5
+ klarnaPopUp = 'klarna-osm-interstitial',
6
+ scrollDisableClass = 'overflow-hidden';
7
7
 
8
8
  window.addEventListener(klarnaPopUp, (e) => {
9
9
  let isKlarnaPopUpActive = e.detail.action === 'show';
@@ -301,5 +301,4 @@ Wick.onlineExclusive = (function () {
301
301
  $('html, body').animate({scrollTop: dn}, 1000);
302
302
  });
303
303
  });
304
-
305
304
  })();
@@ -595,4 +595,9 @@ div .design-appointment {
595
595
  display: flex;
596
596
  align-items: center;
597
597
  justify-content: center;
598
+
599
+ &--large {
600
+ width: 48px;
601
+ height: 48px;
602
+ }
598
603
  }
@@ -118,7 +118,7 @@
118
118
  .messages {
119
119
  display: flex;
120
120
  flex-direction: column;
121
- border: none;
121
+ border: 0;
122
122
  background: none;
123
123
 
124
124
  &__text {
@@ -151,7 +151,7 @@
151
151
  justify-content: space-between;
152
152
  grid-gap: 8px;
153
153
  padding: 8px 0;
154
- border: none;
154
+ border: 0;
155
155
 
156
156
  & + .products__item {
157
157
  border-top: 1px solid $gray-light;
@@ -184,7 +184,7 @@
184
184
  min-width: 24px;
185
185
  padding: 4px;
186
186
  background: 0 0;
187
- border: none;
187
+ border: 0;
188
188
  display: flex;
189
189
  align-items: center;
190
190
  justify-content: center;
@@ -290,8 +290,8 @@
290
290
  }
291
291
 
292
292
  &[disabled] {
293
- border: none;
294
- opacity: 0.6;
293
+ border: 0;
294
+ opacity: .6;
295
295
  }
296
296
  }
297
297
  }
@@ -299,7 +299,7 @@
299
299
  .btn--remove,
300
300
  .btn--quantity {
301
301
  &:hover {
302
- opacity: 0.7;
302
+ opacity: .7;
303
303
  }
304
304
  }
305
305
 
@@ -335,7 +335,7 @@
335
335
  transition: all .3s ease;
336
336
 
337
337
  &.footer-fixed {
338
- box-shadow: 0px -4px 12px 0px rgba(0, 0, 0, .08);
338
+ box-shadow: 0 -4px 12px 0 rgba(0, 0, 0, .08);
339
339
  position: fixed;
340
340
  width: 100%;
341
341
  left: 0;
@@ -406,7 +406,7 @@
406
406
  }
407
407
 
408
408
  .custom-slider__footer {
409
- box-shadow: 0px -4px 12px 0px rgba(0, 0, 0, .08);
409
+ box-shadow: 0 -4px 12px 0 rgba(0, 0, 0, .08);
410
410
  flex-direction: column;
411
411
  }
412
412
  }
@@ -436,7 +436,7 @@
436
436
  font-weight: 700;
437
437
  }
438
438
 
439
- &[aria-expanded="true"] {
439
+ &[aria-expanded='true'] {
440
440
  .icon-wrap .arrow-icon {
441
441
  transform: rotate(180deg);
442
442
  }
@@ -534,7 +534,7 @@
534
534
  transform: rotate(180deg);
535
535
  }
536
536
 
537
- &[aria-expanded="true"] {
537
+ &[aria-expanded='true'] {
538
538
  .icon {
539
539
  transform: rotate(0);
540
540
  }
@@ -142,6 +142,48 @@
142
142
  font-weight: 500;
143
143
  font-size: 1rem;
144
144
  }
145
+
146
+ &_rapid {
147
+ display: inline;
148
+ align-items: center;
149
+ position: relative;
150
+
151
+ &::after {
152
+ content: '';
153
+ position: relative;
154
+ display: block;
155
+ background: $ma-white;
156
+ border-radius: 50%;
157
+ width: 34px;
158
+ height: 34px;
159
+ top: -34px;
160
+ left: calc(50% - 34px / 2);
161
+ z-index: $circle-z-index;
162
+ }
163
+
164
+ .label-rapid {
165
+ @include font-size(10);
166
+ @include line-height(10);
167
+ border-radius: 30px;
168
+ border: 1px solid $white;
169
+ background: $pacific-depths;
170
+ position: absolute;
171
+ bottom: -8px;
172
+ left: 50%;
173
+ font-weight: 700;
174
+ transform: translate(-50%, 0);
175
+ padding: 2px 4px;
176
+ color: $white;
177
+ z-index: $label-z-index;
178
+ pointer-events: none;
179
+ }
180
+
181
+ &.calendar__cell_selected {
182
+ &::after {
183
+ background: $blue;
184
+ }
185
+ }
186
+ }
145
187
  }
146
188
 
147
189
  &.date-selection_selected {
@@ -29,6 +29,36 @@
29
29
  display: none;
30
30
  }
31
31
  }
32
+
33
+ &__rapid-hint {
34
+ border-top: 1px dashed $blue-dark;
35
+ display: flex;
36
+ padding: 24px;
37
+ flex-direction: column;
38
+ justify-content: center;
39
+ align-items: center;
40
+ gap: 8px;
41
+ align-self: stretch;
42
+
43
+ .description {
44
+ @include font-size(14);
45
+ @include line-height(22);
46
+ text-align: center;
47
+ font-weight: 400;
48
+ max-width: 226px;
49
+ margin-bottom: 0;
50
+ }
51
+
52
+ .icon {
53
+ font-size: 2rem;
54
+ height: auto;
55
+ color: $blue-satin;
56
+ }
57
+
58
+ .date-selection_selected & {
59
+ display: none;
60
+ }
61
+ }
32
62
  }
33
63
 
34
64
  .calendar {
@@ -81,6 +111,49 @@
81
111
  background: $blue;
82
112
  color: $white;
83
113
  }
114
+
115
+ &_rapid {
116
+ display: inline;
117
+ align-items: center;
118
+ position: relative;
119
+
120
+ &::after {
121
+ content: '';
122
+ position: relative;
123
+ display: block;
124
+ background: $ma-white;
125
+ border-radius: 50%;
126
+ width: 34px;
127
+ height: 34px;
128
+ top: -34px;
129
+ left: calc(50% - 34px / 2);
130
+ z-index: $circle-z-index;
131
+ }
132
+
133
+ .label-rapid {
134
+ @include font-size(10);
135
+ @include line-height(10);
136
+ border-radius: 30px;
137
+ border: 1px solid $white;
138
+ background: $pacific-depths;
139
+ position: absolute;
140
+ bottom: -8px;
141
+ left: 50%;
142
+ font-style: normal;
143
+ font-weight: 700;
144
+ transform: translate(-50%, 0);
145
+ padding: 2px 4px;
146
+ color: $white;
147
+ z-index: $label-z-index;
148
+ pointer-events: none;
149
+ }
150
+
151
+ &.calendar__cell_selected {
152
+ &:after {
153
+ background: $blue;
154
+ }
155
+ }
156
+ }
84
157
  }
85
158
  }
86
159
 
@@ -249,6 +322,12 @@
249
322
 
250
323
  .delivery-time {
251
324
  width: 100%;
325
+
326
+ &__rapid-hint {
327
+ border-top: 0;
328
+ background: $white;
329
+ height: 100%;
330
+ }
252
331
  }
253
332
 
254
333
  .date-selection {
@@ -167,6 +167,8 @@ $btn-focus-width: 0;
167
167
 
168
168
  //// z-indexes
169
169
  $filters: 8;
170
+ $label-z-index: 2;
171
+ $circle-z-index: -1;
170
172
  $main-nav-overlay: 9;
171
173
  $offer-banner: 10;
172
174
  $popover: 100;
@@ -27,4 +27,3 @@
27
27
  @import 'components/kitchen/plp-filters';
28
28
  @import 'components/kitchen/filter-modal';
29
29
  @import 'components/kitchen/sort-by';
30
-