wickes-css2 2.103.0-develop.5 → 2.103.0-develop.7

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.
@@ -1,51 +1,51 @@
1
1
  function returnMembers() {
2
- return {
3
- canLoadMore: true,
4
- members: [
5
- {
6
- 'id': 'john.doe@wickes.co.uk',
7
- 'name': 'John Doe',
8
- 'email': 'john.doe@wickes.co.uk',
9
- 'date': '24/02/2022',
10
- 'order-history-url': 'page_tradePro_order-history.html',
11
- "status": "PENDING",
12
- "card-label": "Pending"
13
- },
14
- {
15
- 'id': 'john.doe2@wickes.co.uk',
16
- 'name': 'John Doe2',
17
- 'email': 'john.doe2@wickes.co.uk',
18
- 'date': '24/02/2022',
19
- 'order-history-url': 'page_tradePro_order-history.html',
20
- 'card-label': 'Other label'
21
- },
22
- {
23
- 'id': 'john.doe3@wickes.co.uk',
24
- 'name': 'John Doe3',
25
- 'email': 'john.doe3@wickes.co.uk',
26
- 'date': '24/02/2022',
27
- 'order-history-url': 'page_tradePro_order-history.html',
28
- }
29
- ],
30
- };
2
+ return {
3
+ canLoadMore: true,
4
+ members: [
5
+ {
6
+ id: 'john.doe@wickes.co.uk',
7
+ name: 'John Doe',
8
+ email: 'john.doe@wickes.co.uk',
9
+ date: '24/02/2022',
10
+ 'order-history-url': 'page_tradePro_order-history.html',
11
+ status: 'PENDING',
12
+ 'card-label': 'Pending',
13
+ },
14
+ {
15
+ id: 'john.doe2@wickes.co.uk',
16
+ name: 'John Doe2',
17
+ email: 'john.doe2@wickes.co.uk',
18
+ date: '24/02/2022',
19
+ 'order-history-url': 'page_tradePro_order-history.html',
20
+ 'card-label': 'Other label',
21
+ },
22
+ {
23
+ id: 'john.doe3@wickes.co.uk',
24
+ name: 'John Doe3',
25
+ email: 'john.doe3@wickes.co.uk',
26
+ date: '24/02/2022',
27
+ 'order-history-url': 'page_tradePro_order-history.html',
28
+ },
29
+ ],
30
+ };
31
31
  }
32
32
 
33
33
  function initAccountHubFunctionality() {
34
- Wick.AccountHub.initAccountHub();
35
- Wick.AccountHub.initAccountHubRemove();
34
+ Wick.AccountHub.initAccountHub();
35
+ Wick.AccountHub.initAccountHubRemove();
36
36
 
37
- $(window).on(Wick.AccountHub.LOAD_MORE_EVENT, function (e) {
38
- setTimeout(() => {
39
- e.detail.resolve(returnMembers());
40
- }, 1000);
41
- });
37
+ $(window).on(Wick.AccountHub.LOAD_MORE_EVENT, function (e) {
38
+ setTimeout(() => {
39
+ e.detail.resolve(returnMembers());
40
+ }, 1000);
41
+ });
42
42
  }
43
43
 
44
44
  $(document).ready(function () {
45
- if (!$('.account-hub').length) {
46
- return;
47
- }
48
- initAccountHubFunctionality();
45
+ if (!$('.account-hub').length) {
46
+ return;
47
+ }
48
+ initAccountHubFunctionality();
49
49
  });
50
50
 
51
51
  const ALREADY_EXIST_EMAIL = 'fe@wickes.co.uk';
package/package.json CHANGED
@@ -1,11 +1,23 @@
1
1
  {
2
2
  "name": "wickes-css2",
3
- "version": "2.103.0-develop.5",
3
+ "version": "2.103.0-develop.7",
4
4
  "description": "CSS and JS and page templates in use by Wickes",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "lint:fix": "sass-lint-auto-fix",
8
- "build": "gulp build"
8
+ "build": "gulp build",
9
+ "prepare": "husky install",
10
+ "setup:husky": "yarn prepare && npx husky add .husky/pre-commit \"yarn lint-staged\" && git add .husky/pre-commit"
11
+ },
12
+ "lint-staged": {
13
+ "src/js/**/*.js": [
14
+ "eslint --fix",
15
+ "prettier --write"
16
+ ],
17
+ "src/scss/**/*.{scss,css}": [
18
+ "prettier --write",
19
+ "sass-lint-auto-fix"
20
+ ]
9
21
  },
10
22
  "keywords": [
11
23
  "css",
@@ -48,11 +60,14 @@
48
60
  "gulp-uglify": "^3.0.2",
49
61
  "gulp-watch": "^5.0.0",
50
62
  "handlebars-layouts": "^3.1.4",
63
+ "husky": "8.0.3",
64
+ "lint-staged": "13.2.3",
51
65
  "mocha": "^6.2.2",
52
66
  "node-sass": "^4.0.0",
53
67
  "postcss": "^8.4.16",
54
68
  "postcss-combine-duplicated-selectors": "^10.0.3",
55
69
  "postcss-combine-media-query": "^1.0.1",
70
+ "prettier": "^3.7.4",
56
71
  "pug": "2.0.4",
57
72
  "sass": "^1.54.9",
58
73
  "sass-lint-auto-fix": "^0.21.2",
@@ -1,19 +1,9 @@
1
1
  <div class="srp-injected">
2
2
  <div class="srp-injected__content clamped-text">
3
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>
4
+ The right lighting can turn your bathroom into a sanctuary, blending style and practicality. From sleek ceiling
5
+ lights to illuminated and elegant wall fixtures, each of our options is designed to elevate your space. Create a
6
+ warm, inviting glow that turns your bathroom into a haven of comfort and style.
17
7
  </p>
18
8
  </div>
19
9
  </div>
@@ -1,49 +1,49 @@
1
1
  function returnMembers() {
2
- return {
3
- canLoadMore: true,
4
- members: [
5
- {
6
- 'id': 'john.doe@wickes.co.uk',
7
- 'name': 'John Doe',
8
- 'email': 'john.doe@wickes.co.uk',
9
- 'date': '24/02/2022',
10
- 'order-history-url': 'page_tradePro_order-history.html',
11
- "status": "PENDING",
12
- "card-label": "Pending"
13
- },
14
- {
15
- 'id': 'john.doe2@wickes.co.uk',
16
- 'name': 'John Doe2',
17
- 'email': 'john.doe2@wickes.co.uk',
18
- 'date': '24/02/2022',
19
- 'order-history-url': 'page_tradePro_order-history.html',
20
- 'card-label': 'Other label'
21
- },
22
- {
23
- 'id': 'john.doe3@wickes.co.uk',
24
- 'name': 'John Doe3',
25
- 'email': 'john.doe3@wickes.co.uk',
26
- 'date': '24/02/2022',
27
- 'order-history-url': 'page_tradePro_order-history.html',
28
- }
29
- ],
30
- };
2
+ return {
3
+ canLoadMore: true,
4
+ members: [
5
+ {
6
+ id: 'john.doe@wickes.co.uk',
7
+ name: 'John Doe',
8
+ email: 'john.doe@wickes.co.uk',
9
+ date: '24/02/2022',
10
+ 'order-history-url': 'page_tradePro_order-history.html',
11
+ status: 'PENDING',
12
+ 'card-label': 'Pending',
13
+ },
14
+ {
15
+ id: 'john.doe2@wickes.co.uk',
16
+ name: 'John Doe2',
17
+ email: 'john.doe2@wickes.co.uk',
18
+ date: '24/02/2022',
19
+ 'order-history-url': 'page_tradePro_order-history.html',
20
+ 'card-label': 'Other label',
21
+ },
22
+ {
23
+ id: 'john.doe3@wickes.co.uk',
24
+ name: 'John Doe3',
25
+ email: 'john.doe3@wickes.co.uk',
26
+ date: '24/02/2022',
27
+ 'order-history-url': 'page_tradePro_order-history.html',
28
+ },
29
+ ],
30
+ };
31
31
  }
32
32
 
33
33
  function initAccountHubFunctionality() {
34
- Wick.AccountHub.initAccountHub();
35
- Wick.AccountHub.initAccountHubRemove();
34
+ Wick.AccountHub.initAccountHub();
35
+ Wick.AccountHub.initAccountHubRemove();
36
36
 
37
- $(window).on(Wick.AccountHub.LOAD_MORE_EVENT, function (e) {
38
- setTimeout(() => {
39
- e.detail.resolve(returnMembers());
40
- }, 1000);
41
- });
37
+ $(window).on(Wick.AccountHub.LOAD_MORE_EVENT, function (e) {
38
+ setTimeout(() => {
39
+ e.detail.resolve(returnMembers());
40
+ }, 1000);
41
+ });
42
42
  }
43
43
 
44
44
  $(document).ready(function () {
45
- if (!$('.account-hub').length) {
46
- return;
47
- }
48
- initAccountHubFunctionality();
45
+ if (!$('.account-hub').length) {
46
+ return;
47
+ }
48
+ initAccountHubFunctionality();
49
49
  });
@@ -1,4 +1,4 @@
1
- {{#extend "base" hybrisClass="hybris-class" pageClass="products-list-page retail-media" title="Products list" globalSearchV2="true" pagePlp=true}}
1
+ {{#extend "base" hybrisClass="hybris-class" pageClass="products-list-page retail-media category-seo-config" title="Products list" globalSearchV2="true" pagePlp=true}}
2
2
  {{#content "head" mode="append" pagePlp=true}}
3
3
  <link type="text/css" rel="stylesheet" href="./css/components/global-search.css">
4
4
  {{/content}}
@@ -10,6 +10,7 @@
10
10
  <h1 class="page-header__title">
11
11
  Fire Doors
12
12
  </h1>
13
+ {{> srp-injected}}
13
14
  </div>
14
15
 
15
16
  {{> color-picker-plp }}
@@ -21,6 +21,7 @@
21
21
  // Pages
22
22
  @import 'pages/page_category-landing';
23
23
  @import 'components/clamp-content';
24
+ @import 'pages/facets';
24
25
 
25
26
  //fix long banner in page
26
27
  .long-banner-wrap {
@@ -29,7 +29,7 @@
29
29
 
30
30
  &__address {
31
31
  .fa-map-marker-alt {
32
- max-width: .75rem;
32
+ max-width: 0.75rem;
33
33
  }
34
34
  }
35
35
  }
@@ -54,11 +54,11 @@
54
54
  }
55
55
 
56
56
  .offer-banner__link-arrow {
57
- max-width: .625rem;
57
+ max-width: 0.625rem;
58
58
  }
59
59
 
60
60
  @include media-breakpoint-down(sm) {
61
- .cards-store-list:not(:nth-child(-n+4)) {
61
+ .cards-store-list:not(:nth-child(-n + 4)) {
62
62
  display: none;
63
63
  }
64
64
  }
@@ -0,0 +1,120 @@
1
+ // --------------------------------------------------------------------------
2
+ // Surfaces
3
+ // --------------------------------------------------------------------------
4
+ $surface-surf-primary: $white; // #ffffff
5
+
6
+ // --------------------------------------------------------------------------
7
+ // Containers
8
+ // --------------------------------------------------------------------------
9
+ $container-cont-01: $white; // #ffffff
10
+ $container-cont-02: $gray-bg; // #f8f8f8
11
+ $container-cont-03: $gray-light; // #eeeeee
12
+ $container-cont-04: $warm-grey; // #8b8b8b
13
+
14
+ $container-cont-brand: $blue-dark; // #0a3055
15
+ $container-cont-brand-light: $ma-white; // #f4f9fe
16
+ $container-cont-action: $blue; // #0277bd
17
+ $container-cont-checkout: $green; // #67a509
18
+ $container-cont-offer: $red; // #cf000f
19
+
20
+ // --------------------------------------------------------------------------
21
+ // Borders
22
+ // --------------------------------------------------------------------------
23
+ $border-brand: $blue-dark; // #0a3055
24
+ $border-bold: $gray-dark; // #3e3e3e
25
+ $border-default: $gray; // #cccccc
26
+ $border-secondary: $gray-light; // #eeeeee
27
+ $border-focus: $blue; // #0277bd
28
+ $border-error: $red; // #cf000f
29
+ $border-inverted: $white; // #ffffff
30
+
31
+ // --------------------------------------------------------------------------
32
+ // Text
33
+ // --------------------------------------------------------------------------
34
+ $text-body: $gray-dark; // #3e3e3e
35
+ $text-secondary: $squant; // #666666
36
+ $text-tertiary: $warm-grey; // #8b8b8b
37
+ $text-quinary: $gray-wait; // #9d9d9c
38
+ $text-inverted: $white; // #ffffff
39
+ $text-brand: $blue-dark; // #0a3055
40
+ $text-link: $blue; // #0277bd
41
+ $text-offer: $red; // #cf000f
42
+ $text-success: $green; // #67a509
43
+ $text-error: $red; // #cf000f
44
+
45
+ // --------------------------------------------------------------------------
46
+ // Icons
47
+ // --------------------------------------------------------------------------
48
+ $icon-brand: $blue-dark; // #0a3055
49
+ $icon-primary: $gray-dark; // #3e3e3e
50
+ $icon-secondary: $warm-grey; // #8b8b8b
51
+ $icon-tertiary: $gray; // #cccccc
52
+ $icon-inverted: $white; // #ffffff
53
+ $icon-action: $blue; // #0277bd
54
+ $icon-checkout: $green; // #67a509
55
+ $icon-success: $green; // #67a509
56
+ $icon-warning: $orange; // #ffc439
57
+ $icon-error: $red; // #cf000f
58
+ $icon-brand-light: $blue-satin; // #99b5cf
59
+
60
+ // --------------------------------------------------------------------------
61
+ // Labels / Badges
62
+ // --------------------------------------------------------------------------
63
+ $label-offer: $red; // #cf000f
64
+ $label-new: $green-light; // #9acd32
65
+ $label-clearance: $yellow; // #f7ca18
66
+
67
+ // --------------------------------------------------------------------------
68
+ // Logos
69
+ // --------------------------------------------------------------------------
70
+ $logo-main: $pacific-depths; // #004587
71
+ $logo-stroke-text: $white; // #ffffff
72
+ $logo-tradepro: $gray-wait; // #9d9d9c
73
+
74
+ // --------------------------------------------------------------------------
75
+ // Notifications
76
+ // --------------------------------------------------------------------------
77
+ $notification-success-bg: rgba($green, .05); // #67a5090d
78
+ $notification-warning-bg: rgba($orange, .05); // #ffc4390d
79
+ $notification-error-bg: rgba($red, .05); // #cf000f0d
80
+
81
+ // --------------------------------------------------------------------------
82
+ // State overlays (generic)
83
+ // --------------------------------------------------------------------------
84
+ $state-overlay-hover: rgba($black, .2); // #00000033
85
+ $state-overlay-pressed: rgba($black, .4); // #00000066
86
+ $state-overlay-disabled: rgba($white, .6); // #ffffff99
87
+
88
+ // --------------------------------------------------------------------------
89
+ // Additional (brand / payments / design usage)
90
+ // --------------------------------------------------------------------------
91
+ $additional-design-appointment: #2d8093;
92
+ $additional-review-star-pdp: #f7941d;
93
+ $additional-paypal: $orange; // #ffc439
94
+ $additional-klarna: #ffb3c7;
95
+ $additional-finance: $virid-darker; // #205c56
96
+ $additional-events: $virid-darkest; // #00857c
97
+
98
+ // --------------------------------------------------------------------------
99
+ // Button overlays (primary action = blue)
100
+ // --------------------------------------------------------------------------
101
+ $button-overlay-action-default: $blue; // #0277bd
102
+ $button-overlay-action-hover: rgba($blue, .2); // 20% opacity
103
+ $button-overlay-action-pressed: rgba($blue, .4); // 40% opacity
104
+ $button-overlay-action-disabled: rgba($blue, .6); // 60% opacity
105
+
106
+ // --------------------------------------------------------------------------
107
+ // Checkout overlays (success / checkout = green)
108
+ // --------------------------------------------------------------------------
109
+ $checkout-overlay-action-default: $green; // #67a509
110
+ $checkout-overlay-action-hover: rgba($green, .2); // 20% opacity
111
+ $checkout-overlay-action-pressed: rgba($green, .4); // 40% opacity
112
+ $checkout-overlay-action-disabled: rgba($green, .6); // 60% opacity
113
+
114
+ // --------------------------------------------------------------------------
115
+ // Offer overlays (error / offer = red)
116
+ // --------------------------------------------------------------------------
117
+ $offer-overlay-action-default: $red; // #cf000f
118
+ $offer-overlay-action-hover: rgba($red, .2); // 20% opacity
119
+ $offer-overlay-action-pressed: rgba($red, .4); // 40% opacity
120
+ $offer-overlay-action-disabled: rgba($red, .6); // 60% opacity
@@ -400,3 +400,5 @@ $christine: #ec6608;
400
400
  $monza: #e30613;
401
401
  $downriver: #0c3153;
402
402
  $rose-pink: #ff858d;
403
+
404
+ @import 'colors-semantic';
@@ -0,0 +1,86 @@
1
+ @import '../helpers/variables';
2
+ @import '../helpers/helpers';
3
+
4
+ .category-seo-config {
5
+
6
+ .legal-info {
7
+ > div {
8
+ a {
9
+ color: $blue;
10
+ }
11
+
12
+ p {
13
+ font-weight: 400;
14
+ line-height: 24px;
15
+ }
16
+
17
+ h3 {
18
+ font-weight: 500;
19
+ font-size: 1.25rem;
20
+ line-height: 32px;
21
+ color: inherit;
22
+ }
23
+
24
+ h4 {
25
+ font-weight: 500;
26
+ font-size: 1.125rem;
27
+ line-height: 24px;
28
+ color: inherit;
29
+ }
30
+ }
31
+ }
32
+
33
+ .page-header {
34
+ p {
35
+ line-height: 24px;
36
+ font-weight: 400;
37
+ }
38
+
39
+ h1 {
40
+ font-weight: 500;
41
+ font-size: 1.625rem;
42
+ line-height: 36px;
43
+ }
44
+
45
+ &__title {
46
+ font-weight: 500;
47
+ font-size: 1.625rem;
48
+ line-height: 36px;
49
+ text-align: left;
50
+ color: inherit;
51
+ }
52
+ }
53
+ }
54
+
55
+ @include media-breakpoint-up(md) {
56
+ .category-seo-config {
57
+ .page-header {
58
+
59
+ h1 {
60
+ line-height: 46px;
61
+ font-size: 2.125rem;
62
+ }
63
+
64
+ &__title {
65
+ font-size: 2.125rem;
66
+ line-height: 46px;
67
+ text-align: center;
68
+ }
69
+ }
70
+
71
+ .legal-info {
72
+ > div {
73
+ h3 {
74
+ font-size: 1.5rem;
75
+ line-height: 32px;
76
+ }
77
+
78
+ h4 {
79
+ font-size: 1.125rem;
80
+ line-height: 24px;
81
+ font-weight: 700;
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
@@ -30,3 +30,4 @@
30
30
 
31
31
  // Pages
32
32
  @import 'pages/page_products-list-combined';
33
+ @import 'pages/facets';