wickes-css2 2.98.0-develop.12 → 2.98.0-develop.13

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.
@@ -80,7 +80,7 @@ function calculateFreeDelivery(data) {
80
80
  $(this).find(osEl.summaryDelivery).before(function () {
81
81
  return `
82
82
  <div class="checkout-widget__item checkout-widget__item-free">
83
- <span>
83
+ <span class="checkout-widget__text">
84
84
  ${data.messageForFreeDelivery}
85
85
  </span>
86
86
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wickes-css2",
3
- "version": "2.98.0-develop.12",
3
+ "version": "2.98.0-develop.13",
4
4
  "description": "CSS and JS and page templates in use by Wickes",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -879,12 +879,12 @@ Wick.BasketData = (function () {
879
879
  "appliedProductPromotions": [],
880
880
  "appliedOrderPromotions": [],
881
881
  "promotionsInfo": null,
882
- "clickAndCollectOnly": true,
882
+ "clickAndCollectOnly": false,
883
883
  "deliveryItemsQuantity": 1,
884
884
  "pickupItemsQuantity": 2,
885
- "freeDelivery": false,
885
+ "freeDelivery": true,
886
886
  "subtotalWithoutCharity": {"value": 19.0, "formattedValue": "£19.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "19.00"},
887
- "messageForFreeDelivery": null,
887
+ "messageForFreeDelivery": "Free delivery<i class=\"icon fas fa-check\"></i>",
888
888
  "pickupOrderGroups": [
889
889
  {
890
890
  "entries": [
@@ -80,7 +80,7 @@ function calculateFreeDelivery(data) {
80
80
  $(this).find(osEl.summaryDelivery).before(function () {
81
81
  return `
82
82
  <div class="checkout-widget__item checkout-widget__item-free">
83
- <span>
83
+ <span class="checkout-widget__text">
84
84
  ${data.messageForFreeDelivery}
85
85
  </span>
86
86
  </div>
@@ -1,4 +1,14 @@
1
1
  .modal.billie-modal {
2
+
3
+ :where(ul, ol) {
4
+ list-style: revert;
5
+ }
6
+
7
+ :where(li) {
8
+ display: list-item;
9
+ list-style: inherit;
10
+ }
11
+
2
12
  .modal-header,
3
13
  .modal-footer {
4
14
  position: sticky;
@@ -113,50 +113,6 @@ $ios-notch-offset: 80px !default;
113
113
  }
114
114
  }
115
115
 
116
- .checkout-widget {
117
- &__voucher-accordion {
118
- margin-top: 10px;
119
- }
120
-
121
- &__voucher-toggle {
122
- margin-bottom: 8px;
123
- cursor: pointer;
124
- display: flex;
125
- justify-content: space-between;
126
- color: $blue;
127
- font-size: .875rem;
128
-
129
- &.collapsed {
130
- margin-bottom: 0;
131
-
132
- .checkout-widget__icon {
133
- transform: rotate(180deg);
134
- }
135
- }
136
- }
137
-
138
- &__icon {
139
- width: 16px;
140
- height: 16px;
141
- display: flex;
142
- justify-content: center;
143
- align-items: center;
144
- }
145
-
146
- &__voucher-section {
147
- margin-top: 1rem;
148
- }
149
-
150
- &__voucher-list {
151
- list-style: none;
152
- padding: 0;
153
- }
154
-
155
- &__voucher-value {
156
- font-weight: bold;
157
- }
158
- }
159
-
160
116
  .summary__mobile-order.collapsed .summary__icon {
161
117
  transform: rotate(0deg);
162
118
  }
@@ -176,11 +132,14 @@ $ios-notch-offset: 80px !default;
176
132
  }
177
133
 
178
134
  .checkout-widget__item-free {
135
+ line-height: 1.375rem;
136
+
179
137
  .icon {
180
- margin-left: 5px;
181
- margin-bottom: -2px;
182
- vertical-align: bottom;
183
- color: #67a589;
138
+ margin-left: 8px;
139
+ vertical-align: middle;
140
+ color: $green;
141
+ width: 1rem;
142
+ height: 1rem;
184
143
  }
185
144
  }
186
145
 
@@ -0,0 +1,56 @@
1
+ @import '../helpers/helpers';
2
+
3
+ .checkout-widget {
4
+ &__voucher-accordion {
5
+ margin-top: 10px;
6
+ }
7
+
8
+ &__voucher-toggle {
9
+ margin-bottom: 8px;
10
+ cursor: pointer;
11
+ display: flex;
12
+ justify-content: space-between;
13
+ color: $blue;
14
+ font-size: .875rem;
15
+
16
+ &.collapsed {
17
+ margin-bottom: 0;
18
+
19
+ .checkout-widget__icon {
20
+ transform: rotate(180deg);
21
+ }
22
+ }
23
+ }
24
+
25
+ &__icon {
26
+ width: 16px;
27
+ height: 16px;
28
+ display: flex;
29
+ justify-content: center;
30
+ align-items: center;
31
+ }
32
+
33
+ &__voucher-section {
34
+ margin-top: 1rem;
35
+ }
36
+
37
+ &__voucher-list {
38
+ list-style: none;
39
+ padding: 0;
40
+ }
41
+
42
+ &__voucher-value {
43
+ font-weight: bold;
44
+ }
45
+ }
46
+
47
+ .collapsing {
48
+ height: 0;
49
+ overflow: hidden;
50
+ transition: height .3s ease-in-out;
51
+ }
52
+
53
+ .collapse.show {
54
+ height: auto;
55
+ transition: height .3s ease-in-out;
56
+ }
@@ -88,6 +88,7 @@
88
88
  @import 'components/error-frame';
89
89
  @import 'components/cards-slider';
90
90
  @import 'components/sticky-element-appearance';
91
+ @import 'components/voucher-accordion';
91
92
 
92
93
  // Pages
93
94
  @import 'pages/contact-us';
@@ -134,6 +134,15 @@
134
134
  &__main {
135
135
  padding-top: 40px;
136
136
 
137
+ :where(ul, ol) {
138
+ list-style: revert;
139
+ }
140
+
141
+ :where(li) {
142
+ display: list-item;
143
+ list-style: inherit;
144
+ }
145
+
137
146
  @include media-breakpoint-only(md) {
138
147
  padding-top: 35px;
139
148
  }