wickes-css2 2.106.0-develop.3 → 2.106.0-develop.4

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.106.0-develop.3",
3
+ "version": "2.106.0-develop.4",
4
4
  "description": "CSS and JS and page templates in use by Wickes",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -125,7 +125,7 @@
125
125
  "branches": [
126
126
  "alt-master",
127
127
  {
128
- "name": "develop",
128
+ "name": "custom-tag/0.5.0-icons",
129
129
  "prerelease": "${name.replace(/^custom-tag\\//g, '')}"
130
130
  }
131
131
  ],
@@ -63,7 +63,7 @@
63
63
  {{/content}}
64
64
  {{#content "foot" mode="append"}}
65
65
  <script defer src="./js/page/plp.js"></script>
66
- <script defer src="./js/page/plp-img-v2.js"></script>
66
+
67
67
  <script defer src="./js/page/plp-cards-v2.js"></script>
68
68
  <script defer src="./js/search-filter.min.js"></script>
69
69
  {{/content}}
@@ -70,7 +70,7 @@
70
70
 
71
71
  <script defer src="./js/plp.bundle.min.js"></script>
72
72
  <script defer src="./js/energy-efficiency.min.js"></script>
73
- <script defer src="./js/page/plp-img-v2.js"></script>
73
+
74
74
  <script defer src="./js/page/plp-cards-v2.js"></script>
75
75
  <script defer src="./js/search-filter.min.js"></script>
76
76
  {{/content}}
@@ -69,7 +69,7 @@
69
69
  {{/content}}
70
70
  {{#content "foot" mode="append"}}
71
71
  <script defer src="./js/page/plp.js"></script>
72
- <script defer src="./js/page/plp-img-v2.js"></script>
72
+
73
73
  <script defer src="./js/page/plp-cards-v2.js"></script>
74
74
  <script defer src="./js/plp-favourite-product.bundle.min.js"></script>
75
75
  <script defer src="./js/plp-filters.min.js"></script>
@@ -66,7 +66,7 @@
66
66
  {{/content}}
67
67
  {{#content "foot" mode="append"}}
68
68
  <script defer src="./js/page/plp.js"></script>
69
- <script defer src="./js/page/plp-img-v2.js"></script>
69
+
70
70
  <script defer src="./js/page/plp-cards-v2.js"></script>
71
71
  <script defer src="./js/search-filter.min.js"></script>
72
72
  {{/content}}
@@ -83,7 +83,7 @@
83
83
  {{#content "foot" mode="append"}}
84
84
  {{> kitchen/filter-modal isKitchenMode=false modalTitle="Filter by" }}
85
85
  <script defer src="./js/plp.bundle.min.js"></script>
86
- <script defer src="./js/page/plp-img-v2.js"></script>
86
+
87
87
  <script defer src="./js/page/plp-cards-v2.js"></script>
88
88
  <script defer src="./js/search-filter.min.js"></script>
89
89
  <script defer src="./js/plp-filters.min.js"></script>
@@ -60,7 +60,7 @@
60
60
  {{/content}}
61
61
  {{#content "foot" mode="append"}}
62
62
  <script defer src="./js/page/plp.js"></script>
63
- <script defer src="./js/page/plp-img-v2.js"></script>
63
+
64
64
  <script defer src="./js/page/plp-cards-v2.js"></script>
65
65
  <script defer src="./js/components/badge-cashback.js"></script>
66
66
  <script defer src="./js/search-filter.min.js"></script>
@@ -60,7 +60,7 @@
60
60
  {{/content}}
61
61
  {{#content "foot" mode="append"}}
62
62
  <script defer src="./js/page/plp.js"></script>
63
- <script defer src="./js/page/plp-img-v2.js"></script>
63
+
64
64
  <script defer src="./js/page/plp-cards-v2.js"></script>
65
65
  <script defer src="./js/components/badge-cashback.js"></script>
66
66
  <script defer src="./js/search-filter.min.js"></script>
@@ -72,7 +72,7 @@
72
72
  {{#content "foot" mode="append"}}
73
73
  <script defer src="./js/plp.bundle.min.js"></script>
74
74
  <script defer src="./js/energy-efficiency.min.js"></script>
75
- <script defer src="./js/page/plp-img-v2.js"></script>
75
+
76
76
  <script defer src="./js/page/plp-cards-v2.js"></script>
77
77
  <script defer src="./js/search-filter.min.js"></script>
78
78
  {{/content}}
@@ -337,7 +337,7 @@
337
337
  transition: all 0.3s ease;
338
338
 
339
339
  &.footer-fixed {
340
- box-shadow: 0px -4px 12px 0px rgba(0, 0, 0, 0.08);
340
+ box-shadow: 0 -4px 12px 0 rgba(0, 0, 0, 0.08);
341
341
  position: fixed;
342
342
  width: 100%;
343
343
  left: 0;
@@ -408,7 +408,7 @@
408
408
  }
409
409
 
410
410
  .custom-slider__footer {
411
- box-shadow: 0px -4px 12px 0px rgba(0, 0, 0, 0.08);
411
+ box-shadow: 0 -4px 12px 0 rgba(0, 0, 0, 0.08);
412
412
  flex-direction: column;
413
413
  }
414
414
  }
@@ -33,7 +33,6 @@ $error-bg: #fcf2f3; // Error notification background colour
33
33
  $positive: #8dc63f; // Positive colour
34
34
  $negative: #ed1c24; // Negative colour
35
35
  $blue-badge: #019ee3;
36
- $pacific-depths: #004587;
37
36
  $usp-icon-color: #1a77bc; // Usp icon color
38
37
  $pacific-depths: #004587;
39
38
  $line-through: #242424;
@@ -47,10 +46,6 @@ $footer-gray: #f5f5f5;
47
46
  $footer-bullet: #c8c8c8;
48
47
  $footer-copyright: #626262;
49
48
 
50
- $footer-gray: #f5f5f5;
51
- $footer-bullet: #c8c8c8;
52
- $footer-copyright: #626262;
53
-
54
49
  $white: #fff;
55
50
  $black: #000;
56
51
  $black-lite: #111;
@@ -67,7 +62,6 @@ $blue-ocean: #003058;
67
62
  $blue-ocean-dark: #0a3054;
68
63
  $gray-middle: #aaa;
69
64
  $light-blue: #e6f1f8;
70
-
71
65
  // Colour block colours
72
66
  $moon-shadow: #658089;
73
67
  $fawn: #f0ddce;
@@ -111,7 +105,7 @@ $black-transparent75: rgba(0, 0, 0, 0.75);
111
105
  $black-transparent80: rgba(0, 0, 0, 0.8);
112
106
  $blue-transparent20: rgba(2, 119, 189, 0.2);
113
107
  $blue-transparent10: rgba(2, 119, 189, 0.1);
114
- $blue-transparent3: #0277bd52;
108
+ $blue-transparent3: rgba(2, 119, 189, 0.32);
115
109
  $blue-transparent5: rgba(2, 119, 189, 0.05);
116
110
  $blue-transparent5-rgb: rgb(242, 248, 251);
117
111
  $dark-blue-transparent10: rgba(10, 48, 85, 0.1);
@@ -305,7 +299,7 @@ $btn-line-height-sm: $input-btn-line-height-sm !default;
305
299
 
306
300
  $btn-padding-y-lg: $input-btn-padding-y-lg !default;
307
301
  $btn-padding-x-lg: $input-btn-padding-x-lg !default;
308
- $btn-line-height-lg: $input-btn_line-height-lg !default;
302
+ $btn-line-height-lg: $input-btn-line-height-lg !default;
309
303
 
310
304
  $btn-border-radius: $border-radius !default;
311
305
  $btn-border-radius-lg: $border-radius-lg !default;
@@ -385,8 +379,7 @@ $zindex-share: 1 !default;
385
379
 
386
380
  // This variable affects the `.h-*` and `.w-*` classes.
387
381
  $sizes: () !default;
388
-
389
- /* sass-lint:disable indentation */
382
+ // sass-lint:disable indentation
390
383
  $sizes: map-merge(
391
384
  (
392
385
  25: 25%,
@@ -396,8 +389,7 @@ $sizes: map-merge(
396
389
  ),
397
390
  $sizes
398
391
  );
399
- /* sass-lint:enable indentation */
400
-
392
+ // sass-lint:enable indentation
401
393
  // Spacing
402
394
  //
403
395
  // Control the default styling of most Bootstrap elements by modifying these
@@ -407,8 +399,7 @@ $sizes: map-merge(
407
399
  // stylelint-disable
408
400
  $spacer: 1rem !default;
409
401
  $spacers: () !default;
410
-
411
- /* sass-lint:disable indentation */
402
+ // sass-lint:disable indentation
412
403
  $spacers: map-merge(
413
404
  (
414
405
  0: 0,
@@ -428,7 +419,7 @@ $spacers: map-merge(
428
419
  ),
429
420
  $spacers
430
421
  );
431
- /* sass-lint:enable indentation */
422
+ // sass-lint:enable indentation
432
423
 
433
424
  // Bootstrap Printing checked
434
425
  $print-page-size: a3 !default;
@@ -303,6 +303,7 @@ $color-bar-radius: 3px;
303
303
  margin-right: -4px;
304
304
  padding-left: 5px;
305
305
  padding-right: 5px;
306
+ width: 50%;
306
307
  }
307
308
 
308
309
  &:nth-of-type(1)::before,
@@ -338,6 +339,27 @@ $color-bar-radius: 3px;
338
339
  align-items: center;
339
340
  justify-content: center;
340
341
  border-bottom: 1px solid $gray;
342
+ width: 100%;
343
+
344
+ @supports (aspect-ratio: 1 / 1) {
345
+ aspect-ratio: 1 / 1;
346
+ }
347
+
348
+ @supports not (aspect-ratio: 1 / 1) {
349
+ &:before {
350
+ content: '';
351
+ display: block;
352
+ padding-top: 100%;
353
+ }
354
+ }
355
+
356
+ .card__img-v2 {
357
+ position: absolute;
358
+ inset: 0;
359
+ width: 100%;
360
+ height: 100%;
361
+ object-fit: contain;
362
+ }
341
363
 
342
364
  @include media-breakpoint-down(sm) {
343
365
  border: 1px solid $gray;
@@ -367,6 +389,16 @@ $color-bar-radius: 3px;
367
389
  }
368
390
  }
369
391
 
392
+ .card-sponsor-product {
393
+ @include media-breakpoint-down(sm) {
394
+ width: 50%;
395
+
396
+ .card {
397
+ width: 100%;
398
+ }
399
+ }
400
+ }
401
+
370
402
  .product-card {
371
403
  & .card__inner-v2:hover {
372
404
  border: 1px solid $gray-dark;
@@ -586,8 +618,8 @@ $color-bar-radius: 3px;
586
618
  .sort-products-list {
587
619
  &__section {
588
620
  @include make-col(6);
589
- color: black;
590
- border: none;
621
+ color: $black;
622
+ border: 0;
591
623
 
592
624
  > .form-row {
593
625
  margin-bottom: 0;
@@ -1,25 +0,0 @@
1
- $(document).ready(function () {
2
-
3
- let imgWrap = $('.products-list-v2 .card__img-wrap');
4
- let img = $('.products-list-v2 .card__img-v2');
5
-
6
- square();
7
-
8
- img.height(function () {
9
- if (Math.round($(this).height()) > Math.round($(this).width())) {
10
- $(this).height('99.9%'); //fix for ie
11
- } else if ((Math.round($(this).height()) < Math.round($(this).width()))){
12
- $(this).width('99.9%'); // fix for ie
13
- } else {
14
- $(this).width('99.9%'); // fix for ie
15
- $(this).height('99.9%'); // fix for ie
16
- }
17
- });
18
-
19
- function square() {
20
- let width = imgWrap.width();
21
- imgWrap.height(width);
22
- }
23
-
24
- $(window).on('resize', square);
25
- });
@@ -1,25 +0,0 @@
1
- $(document).ready(function () {
2
-
3
- let imgWrap = $('.products-list-v2 .card__img-wrap');
4
- let img = $('.products-list-v2 .card__img-v2');
5
-
6
- square();
7
-
8
- img.height(function () {
9
- if (Math.round($(this).height()) > Math.round($(this).width())) {
10
- $(this).height('99.9%'); //fix for ie
11
- } else if ((Math.round($(this).height()) < Math.round($(this).width()))){
12
- $(this).width('99.9%'); // fix for ie
13
- } else {
14
- $(this).width('99.9%'); // fix for ie
15
- $(this).height('99.9%'); // fix for ie
16
- }
17
- });
18
-
19
- function square() {
20
- let width = imgWrap.width();
21
- imgWrap.height(width);
22
- }
23
-
24
- $(window).on('resize', square);
25
- });