@shift72/core-template 1.9.4 → 1.9.5

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/.editorconfig ADDED
@@ -0,0 +1,10 @@
1
+ # editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ indent_style = space
6
+ indent_size = 2
7
+ end_of_line = lf
8
+ charset = utf-8
9
+ trim_trailing_whitespace = true
10
+ insert_final_newline = true
package/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Changelog
2
2
 
3
- ## [Unreleased](https://github.com/shift72/core-template/compare/1.9.4...HEAD)
3
+ ## [Unreleased](https://github.com/shift72/core-template/compare/1.9.5...HEAD)
4
+
5
+ ## [1.9.5](https://github.com/shift72/core-template/compare/1.9.4...1.9.5)
6
+ ### Changed
7
+ - Slider arrows code refactor and add css variable to change arrow color.
4
8
 
5
9
  ## [1.9.4](https://github.com/shift72/core-template/compare/1.9.3...1.9.4)
6
10
  ### Added
package/kibble.json CHANGED
@@ -191,5 +191,5 @@
191
191
  "pageSize": 0
192
192
  }
193
193
  ],
194
- "coreTemplateVersion": "1.9.4"
194
+ "coreTemplateVersion": "1.9.5"
195
195
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shift72/core-template",
3
- "version": "1.9.4",
3
+ "version": "1.9.5",
4
4
  "description": "Shift72 core template",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -65,28 +65,26 @@
65
65
  justify-content: space-between;
66
66
  left: 0;
67
67
  opacity: 0;
68
- padding: 0px 15px; // No vertical padding so that in edge cases where multiple purchase options are displayed there's enough space.
68
+ padding: 0 15px; // No vertical padding so that in edge cases where multiple purchase options are displayed there's enough space.
69
69
  position: absolute;
70
70
  right: 0;
71
71
  top: 0;
72
72
  transition: opacity 0.25s ease-in;
73
73
  z-index: 100;
74
74
 
75
-
76
75
  .buttons {
77
76
  @extend .d-flex;
78
77
  align-items: center;
79
78
  flex-direction: row;
79
+
80
+ // If there are multiple types of buttons shown here, using flex gap
81
+ // will space them out.
82
+ gap: 16px;
80
83
  justify-content: center;
81
84
  padding-top: 10px;
82
85
  position: relative;
83
86
  width: 100%;
84
87
 
85
- // If there are multiple types of buttons shown here, using flex gap
86
- // will space them out.
87
- gap: 16px;
88
-
89
-
90
88
  s72-can-be-watched-now {
91
89
  margin-left: auto;
92
90
  }
@@ -121,7 +119,9 @@
121
119
  min-width: 140px;
122
120
  width: auto;
123
121
 
124
- .verb { font-size: 14px; }
122
+ .verb {
123
+ font-size: 14px;
124
+ }
125
125
  }
126
126
 
127
127
  .btn-wishlist .s72-btn-wishlist {
@@ -22,18 +22,19 @@
22
22
  }
23
23
 
24
24
  .swiper-button-next {
25
- background: rgba(var(--body-bg-rgb), 0.8) url('/images/icons/next.png') center center no-repeat;
26
25
  right: 0;
27
26
  }
28
27
 
29
28
  .swiper-button-prev {
30
- background: rgba(var(--body-bg-rgb), 0.8) url('/images/icons/prev.png') center center no-repeat;
31
29
  left: 0;
32
30
  }
33
31
 
34
32
  .swiper-button-prev,
35
33
  .swiper-button-next {
34
+ align-items: center;
35
+ background: rgba(var(--body-bg-rgb), 0.8) center center no-repeat;
36
36
  background-size: 30%;
37
+ display: flex;
37
38
  height: 100%;
38
39
  margin-top: 0;
39
40
  opacity: 0.8;
@@ -48,6 +49,14 @@
48
49
  @include media-breakpoint-down(sm) {
49
50
  display: none;
50
51
  }
52
+ svg {
53
+ display: block;
54
+ margin: 0 auto;
55
+ width: 20px;
56
+ path {
57
+ fill: var(--slider-button-color);
58
+ }
59
+ }
51
60
 
52
61
  &.swiper-button-disabled {
53
62
  display: none;
@@ -101,6 +101,7 @@
101
101
  --button-background-hover: var(--secondary);
102
102
  --trailer-button-text-color: var(--body-color);
103
103
  --mobile-nav-link-color: var(--body-color);
104
+ --slider-button-color: var(--body-color);
104
105
  --signin-sso-btn-text-color: var(--button-text-color);
105
106
  --signin-sso-btn-text-hover-color: var(--button-text-color-hover);
106
107
  --signin-sso-btn-background-color: var(--button-background);
@@ -0,0 +1,12 @@
1
+ {{ block sliderButtons()}}
2
+ <div class="swiper-button-prev s72-hide">
3
+ <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'>
4
+ <path d='M0,22L22,0l2.1,2.1L4.2,22l19.9,19.9L22,44L0,22L0,22L0,22z' fill='#000000'/>
5
+ </svg>
6
+ </div>
7
+ <div class="swiper-button-next s72-hide">
8
+ <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'>
9
+ <path d='M27,22L27,22L5,44l-2.1-2.1L22.8,22L2.9,2.1L5,0L27,22L27,22z' fill='#000000'/>
10
+ </svg>
11
+ </div>
12
+ {{ end }}
@@ -1,13 +1,14 @@
1
1
  {{import "./page_collection_item.jet"}}
2
2
  {{import "../common/slider.jet"}}
3
+ {{import "./slider-buttons.jet"}}
3
4
  {{block pageCollectionSlider()}}
4
5
  {{if len(.Items) > 0}}
5
6
  <section class="page-collection page-collection-slider page-collection-slider-{{.ItemsPerRow}} page-collection-slider-{{.ItemLayout}} slider-{{.ItemsPerRow}} slider-{{.ItemLayout}} page-collection-{{.ItemsPerRow}}-slider" aria-label="{{i18n("wcag_aria_label_collection_slider")}}">
6
7
  <div class="collection-wrapper-container swiper-wrapper-container">
7
8
  <div class="collection-container swiper-container" data-items-per-row="{{.ItemsPerRow}}" data-layout="{{.ItemLayout}}">
8
- {{if .DisplayName != ""}}
9
+ {{if .DisplayName != ""}}
9
10
  <div class="swiper-title">
10
- <h3>{{.DisplayName}}</h3>
11
+ <h3>{{.DisplayName}}</h3>
11
12
  </div>
12
13
  {{end}}
13
14
  <div class="swiper-wrapper">
@@ -18,8 +19,7 @@
18
19
  {{end}}
19
20
  </div>
20
21
  </div>
21
- <div class="swiper-button-prev swiper-button-white s72-hide"></div>
22
- <div class="swiper-button-next swiper-button-white s72-hide"></div>
22
+ {{ yield sliderButtons() }}
23
23
  </div>
24
24
  </section>
25
25
  {{end}}
@@ -1,5 +1,6 @@
1
1
  {{import "./page_collection_item.jet"}}
2
2
  {{import "../common/slider.jet"}}
3
+ {{import "./slider-buttons.jet"}}
3
4
  {{block wishlistCollection()}}
4
5
 
5
6
  {{if config("default_image_type") == "portrait"}}
@@ -39,8 +40,7 @@
39
40
  {{yield content}}
40
41
  </div>
41
42
  </div>
42
- <div class="swiper-button-prev swiper-button-white"></div>
43
- <div class="swiper-button-next swiper-button-white"></div>
43
+ {{ yield sliderButtons() }}
44
44
  </div>
45
45
  </section>
46
46
  </s72-userwishlist>
@@ -4,6 +4,7 @@
4
4
  {{import "../items/sub_item.jet"}}
5
5
  {{import "../collection/page_collection_item.jet"}}
6
6
  {{import "../collection/slider.jet"}}
7
+ {{import "../collection/slider-buttons.jet"}}
7
8
  {{import "../common/list.jet"}}
8
9
  {{import "../common/awards/item.jet"}}
9
10
  {{import "../common/sponsor-image.jet"}}
@@ -187,8 +188,7 @@
187
188
  {{end}}
188
189
  </div>
189
190
  </div>
190
- <div class="swiper-button-prev swiper-button-white"></div>
191
- <div class="swiper-button-next swiper-button-white"></div>
191
+ {{ yield sliderButtons() }}
192
192
  </div>
193
193
  </section>
194
194
  {{ end }}
@@ -5,6 +5,7 @@
5
5
  {{import "../collection/page_collection_item.jet"}}
6
6
  {{import "../common/list.jet"}}
7
7
  {{import "../common/cta_buttons.jet"}}
8
+ {{import "../collection/slider-buttons.jet"}}
8
9
 
9
10
  {{block head()}}
10
11
  {{yield seo() tvseason}}
@@ -124,8 +125,7 @@
124
125
  {{end}}
125
126
  </div>
126
127
  </div>
127
- <div class="swiper-button-prev swiper-button-white"></div>
128
- <div class="swiper-button-next swiper-button-white"></div>
128
+ {{ yield sliderButtons() }}
129
129
  </div>
130
130
  </section>
131
131
  {{end}}