wickes-css2 2.100.0 → 2.101.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wickes-css2",
3
- "version": "2.100.0",
3
+ "version": "2.101.0-develop.1",
4
4
  "description": "CSS and JS and page templates in use by Wickes",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -108,7 +108,7 @@
108
108
  "branches": [
109
109
  "alt-master",
110
110
  {
111
- "name": "alt-master",
111
+ "name": "develop",
112
112
  "prerelease": "${name.replace(/^custom-tag\\//g, '')}"
113
113
  }
114
114
  ],
@@ -0,0 +1,19 @@
1
+ <div class="srp-injected">
2
+ <div class="srp-injected__content clamped-text">
3
+ <p>
4
+ <span style="font-size:12pt; font-variant:normal; white-space:pre-wrap">
5
+ <span style="font-family:'Helvetica Neue',sans-serif">
6
+ <span style="color:#000000">
7
+ <span style="font-weight:400">
8
+ <span style="font-style:normal">
9
+ <span style="text-decoration:none">
10
+ The right lighting can turn your bathroom into a sanctuary, blending style and practicality. From sleek ceiling lights to illuminated and elegant wall fixtures, each of our options is designed to elevate your space. Create a warm, inviting glow that turns your bathroom into a haven of comfort and style.
11
+ </span>
12
+ </span>
13
+ </span>
14
+ </span>
15
+ </span>
16
+ </span>
17
+ </p>
18
+ </div>
19
+ </div>
@@ -83,7 +83,7 @@
83
83
  },
84
84
  {
85
85
  "shipmentIcon": "fas fa-shipping-fast",
86
- "shipmentTitle": "Wickes Rapid Delivery from Southampton Store",
86
+ "shipmentTitle": "Rapid Delivery from Southampton Store",
87
87
  "shipmentInfo": "Dispatched. Delivery — within 3 hours",
88
88
  "itemsCount": 4,
89
89
  "trackingLink": "/"
@@ -280,7 +280,7 @@
280
280
  },
281
281
  {
282
282
  "shipmentIcon": "fas fa-shipping-fast",
283
- "shipmentTitle": "Wickes Rapid Delivery from Southampton Store",
283
+ "shipmentTitle": "Rapid Delivery from Southampton Store",
284
284
  "shipmentInfo": "Dispatched. Delivery — within 3 hours",
285
285
  "itemsCount": 4,
286
286
  "trackingLink": "/"
@@ -462,7 +462,7 @@
462
462
  },
463
463
  {
464
464
  "shipmentIcon": "fas fa-shipping-fast",
465
- "shipmentTitle": "Wickes Rapid Delivery from Southampton Store",
465
+ "shipmentTitle": "Rapid Delivery from Southampton Store",
466
466
  "shipmentInfo": "Dispatched. Delivery — within 3 hours",
467
467
  "itemsCount": 4,
468
468
  "trackingLink": "/"
@@ -157,7 +157,7 @@
157
157
  "subtotalTooltip": "Order level promotions and delivery charges are not included"
158
158
  },
159
159
  {
160
- "title": "Wickes Rapid",
160
+ "title": "Rapid Delivery",
161
161
  "subtotal": "£53.65",
162
162
  "track": "#",
163
163
  "deliveryRange": [
@@ -57,7 +57,7 @@
57
57
  },
58
58
  {
59
59
  "shipmentIcon": "fas fa-shipping-fast",
60
- "shipmentTitle": "Wickes Rapid Delivery from Southampton Store",
60
+ "shipmentTitle": "Rapid Delivery from Southampton Store",
61
61
  "shipmentInfo": "Dispatched. Delivery — within 3 hours",
62
62
  "itemsCount": 4,
63
63
  "trackingLink": "/"
@@ -7,6 +7,7 @@ Wick.ClampContent = {
7
7
  CLAMP_BUTTON_HTML: '<a class="clamp_btn clamp_btn-new" href="#">Read more</a>',
8
8
  MAX_LINES: 3,
9
9
  clampContentClass: 'clamp-content',
10
+ clampContentSafariClass: 'clamp-content--safari',
10
11
  clampContentSelector: '.clamp-content',
11
12
  clampElementsList: [
12
13
  '.page-header__intro',
@@ -66,9 +67,16 @@ Wick.ClampContent = {
66
67
  );
67
68
  });
68
69
  },
70
+ isSafari() {
71
+ return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
72
+ },
69
73
  getElementsForClamping() {
70
74
  Wick.ClampContent.clampElementsList.forEach((el) => {
71
75
  $(el).addClass(Wick.ClampContent.clampContentClass);
76
+
77
+ if (Wick.ClampContent.isSafari()) {
78
+ $(el).addClass(Wick.ClampContent.clampContentSafariClass);
79
+ }
72
80
  })
73
81
  },
74
82
  init() {
@@ -139,7 +139,7 @@ export function addDeliveryStock(e) {
139
139
 
140
140
  function addForDelivery(data) {
141
141
  Wick.BasketPage.showNotification(data);
142
- const statusCode = ['success', 'noStock', 'lowStock']
142
+ const statusCode = ['success', 'noStock', 'lowStock', 'maxOrderQuantityExceeded']
143
143
 
144
144
  if (statusCode.includes(data.statusCode)) {
145
145
  Wick.BasketPage.updateCart(true);
@@ -294,4 +294,4 @@ export function prettifyWisdomPostcode(e) {
294
294
  const postcode = targetPostcode.val();
295
295
  const prettifiedPostcode = transformPostcodeToCanonicalView(postcode);
296
296
  $(wisdomEl.postcodeInput).val(prettifiedPostcode);
297
- }
297
+ }
@@ -3,12 +3,20 @@
3
3
  {{#content "heading"}}
4
4
  <div class="page-header">
5
5
  <h1 class="page-header__title">Tools & Workwear</h1>
6
- <p class="page-header__intro">
7
- Our Tools & Workwear range features everything you could possibly need for a project. Protect yourself and your crew
8
- with our range of Safety Equipment and Workwear including clothing, footwear, jackets, overalls and protection for
9
- the
10
- eyes and ears.
11
- </p>
6
+ <div class="page-header__intro">
7
+ Our extensive range of Power Tools includes drills, grinders, sanders, saws and other carpentry tools, used by tradesmen and DIYers alike for a professional finish.
8
+ In addition to our Wickes own-brand range, we also stock trusted brands like
9
+ <a href="/buying-guides/makita">Makita</a>,
10
+ <a href="/buying-guides/DEWALT">DEWALT</a>,
11
+ <a href="/buying-guides/Einhell">Einhell</a>,
12
+ <a href="/featured/new-stanley-v20-range">Stanley FatMax V20</a>,
13
+ <a href="/Products/Tools+Workwear/Power-Tools/Nail-Guns/c/1089002?q=%3Arelevance%3AbrandName%3APaslode&amp;text=&amp;Paslode=Paslode#">Paslode</a>,
14
+ <a href="/buying-guides/bosch">Bosch</a> and <a href="/buying-guides/bosch-professional">Bosch Professional</a>.
15
+ <br>
16
+ <br>
17
+ Need help choosing a drill? then take a look at our handy
18
+ <a href="/drills-buying-guide">Drills Buying Guide</a>
19
+ </div>
12
20
  </div>
13
21
  {{/content}}
14
22
  {{#content "main"}}
@@ -1,6 +1,7 @@
1
1
  {{#extend "base" hybrisClass="hybris-class" pageClass="products-list-page" title="Products list" pagePlp=true switch-vat=true}}
2
- {{#content "head" mode="append" pagePlp=true}}{{/content}}
3
- <style></style>
2
+ {{#content "head" mode="append" pagePlp=true}}
3
+ <link type="text/css" rel="stylesheet" href="./css/pages/page_products-list.css">
4
+ {{/content}}
4
5
  {{#content "body"}}
5
6
  <main>
6
7
  <div class="container">
@@ -10,11 +11,7 @@
10
11
  Fire Doors
11
12
  </h1>
12
13
 
13
- <div class="srp-injected">
14
- <div class="srp-injected__content">
15
- <p>Outdoor wall lights are a stylish, yet effective solution to keeping your garden glowing as the day draws to a close. Whether it’s an extra bit of security from one of our outdoor wall lights with sensors, or a more vibrant, decorative addition, our full range of outdoor lighting is designed to bring a touch of life to your surroundings.</p>
16
- </div>
17
- </div>
14
+ {{> srp-injected}}
18
15
  </div>
19
16
 
20
17
  <div class="row">
@@ -12,6 +12,12 @@
12
12
  margin-bottom: 0;
13
13
  padding-bottom: 0;
14
14
  }
15
+
16
+ &--safari {
17
+ a {
18
+ display: contents;
19
+ }
20
+ }
15
21
  }
16
22
 
17
23
  .clamped-text {
@@ -30,8 +30,6 @@
30
30
  font-size: 16px;
31
31
  font-weight: 500;
32
32
  line-height: 1.5;
33
- padding: 1em 1.25em;
34
- margin-bottom: 20px;
35
33
  text-align: left;
36
34
 
37
35
  p {
@@ -319,10 +317,4 @@
319
317
  padding: 5px 0;
320
318
  }
321
319
  }
322
-
323
- .srp-injected {
324
- &__content {
325
- padding: 1.25em .75em;
326
- }
327
- }
328
320
  }