@shift72/core-template 1.9.27 → 1.9.29

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/CHANGELOG.md CHANGED
@@ -1,6 +1,32 @@
1
1
  # Changelog
2
2
 
3
- ## [Unreleased](https://github.com/shift72/core-template/compare/1.9.27...HEAD)
3
+ ## [Unreleased](https://github.com/shift72/core-template/compare/1.9.29...HEAD)
4
+
5
+ ## [1.9.29](https://github.com/shift72/core-template/compare/1.9.28...1.9.29)
6
+
7
+ ### Added
8
+
9
+ - unique class and data tags on sliders / lists
10
+
11
+ ### Changed
12
+
13
+ - removed extra space in cast list
14
+ - tweak styling of meta detail links
15
+
16
+ ### Fixed
17
+
18
+ - Shadow under posters
19
+ - add missing poppins font files for italic / weights
20
+
21
+ ## [1.9.28](https://github.com/shift72/core-template/compare/1.9.27...1.9.28)
22
+
23
+ ### Added
24
+
25
+ - external_links_new_tab config to make external links in header / footer nav open in a new tab
26
+
27
+ ### Changed
28
+
29
+ - Cast list: remove erroneous space before comma. CSS tweaks for the link underlines
4
30
 
5
31
  ## [1.9.27](https://github.com/shift72/core-template/compare/1.9.26...1.9.27)
6
32
 
package/kibble.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "core-template",
3
- "version": "1.9.27",
4
- "siteUrl": "https://staging-store-kibble.shift72.com",
3
+ "version": "1.9.29",
4
+ "siteUrl": "https://tvoddemo.shift72.com",
5
5
  "builderVersion": "0.17.8",
6
6
  "defaultLanguage": "en",
7
7
  "languages": {
@@ -195,5 +195,5 @@
195
195
  "pageSize": 0
196
196
  }
197
197
  ],
198
- "coreTemplateVersion": "1.9.27"
198
+ "coreTemplateVersion": "1.9.29"
199
199
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shift72/core-template",
3
- "version": "1.9.27",
3
+ "version": "1.9.29",
4
4
  "description": "Shift72 core template",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -155,10 +155,12 @@
155
155
  }
156
156
 
157
157
  > .poster {
158
- margin-bottom: 5px;
158
+ margin-bottom: 25px;
159
159
  }
160
160
  }
161
-
161
+ s72-image {
162
+ display: flex;
163
+ }
162
164
  .poster {
163
165
  animation: fadein 2s;
164
166
  display: block;
@@ -167,6 +169,10 @@
167
169
  margin-right: 20px;
168
170
  width: 110px;
169
171
 
172
+ &.poster-image {
173
+ margin-bottom: 0px;
174
+ }
175
+
170
176
  @include media-breakpoint-up(xs) {
171
177
  width: 155px;
172
178
  }
@@ -277,6 +283,9 @@ s72-element-switcher,
277
283
  a {
278
284
  animation: fadein 2s;
279
285
 
286
+ text-decoration-color: rgba(var(--body-color-rgb), 0.6);
287
+ text-underline-offset: 0.15em;
288
+
280
289
  &:hover {
281
290
  text-decoration: none;
282
291
  }
@@ -484,7 +493,6 @@ s72-element-switcher {
484
493
  }
485
494
  }
486
495
 
487
-
488
496
  comment-section {
489
497
  display: block;
490
498
  margin-bottom: 3rem;
@@ -496,5 +504,4 @@ comment-section {
496
504
  padding-left: var(--page-detail-padding-hz-lg);
497
505
  padding-right: var(--page-detail-padding-hz-lg);
498
506
  }
499
-
500
507
  }
@@ -4,7 +4,7 @@
4
4
  <ul class="nav">
5
5
  {{ range navLinks }}
6
6
  <li class="nav-item {{ len(.Link.ExternalURL) == 0 && routeToSlug(.Link.Slug) == currentUrlPath ? "active" : "" }}">
7
- <a class="nav-link" href="{{ len(.Link.ExternalURL) > 0 ? .Link.ExternalURL : routeToSlug(.Link.Slug) }}">{{ .Label }}</a>
7
+ <a class="nav-link" href="{{ len(.Link.ExternalURL) > 0 ? .Link.ExternalURL : routeToSlug(.Link.Slug) }}" target="{{len(.Link.ExternalURL) > 0 && config("external_links_new_tab") == "true" ? "_blank" : "_self"}}">{{ .Label }}</a>
8
8
  </li>
9
9
  {{ end }}
10
10
  </ul>
@@ -1,4 +1,4 @@
1
1
  {{block font()}}
2
2
  <link rel="preconnect" href="https://fonts.gstatic.com">
3
- <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500&display=swap" rel="stylesheet">
3
+ <link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap" rel="stylesheet">
4
4
  {{end}}
@@ -52,7 +52,7 @@
52
52
  <a class="s72-dropdown-toggle nav-link" href="{{len(.Link.ExternalURL) > 0 ? .Link.ExternalURL : len(.Items) == 0 ? routeToSlug(.Link.Slug) : "#"}}">{{.Label}}</a>
53
53
  <div class="s72-dropdown-menu sub-nav-menu">
54
54
  {{range sub := .Items}}
55
- <a class="nav-link" href="{{len(sub.Link.ExternalURL) > 0 ? sub.Link.ExternalURL : routeToSlug(sub.Link.Slug) }}">{{sub.Label}}</a>
55
+ <a class="nav-link" href="{{len(sub.Link.ExternalURL) > 0 ? sub.Link.ExternalURL : routeToSlug(sub.Link.Slug) }}" target="{{len(.Link.ExternalURL) > 0 && config("external_links_new_tab") == "true" ? "_blank" : "_self"}}">{{sub.Label}}</a>
56
56
  {{end}}
57
57
  </div>
58
58
  <i class="fa fa-angle-down dropdown-caret"></i>
@@ -60,7 +60,7 @@
60
60
  </li>
61
61
  {{else}}
62
62
  <li class="nav-item {{len(.Link.ExternalURL) == 0 && routeToSlug(.Link.Slug) == currentUrlPath ? "active" : ""}}">
63
- <a class="nav-link" href="{{len(.Link.ExternalURL) > 0 ? .Link.ExternalURL : routeToSlug(.Link.Slug)}}">{{.Label}}</a>
63
+ <a class="nav-link" href="{{len(.Link.ExternalURL) > 0 ? .Link.ExternalURL : routeToSlug(.Link.Slug)}}" target="{{len(.Link.ExternalURL) > 0 && config("external_links_new_tab") == "true" ? "_blank" : "_self"}}" >{{.Label}}</a>
64
64
  </li>
65
65
  {{end}}
66
66
  {{end}}
@@ -2,9 +2,9 @@
2
2
 
3
3
  {{block pageCollectionList(showTitle=true)}}
4
4
  {{if len(.Items) > 0}}
5
- <section class="page-collection page-collection-list page-collection-list-{{.ItemsPerRow}} page-collection-list-{{.ItemLayout}} list-{{.ItemsPerRow}} list-{{.ItemLayout}} page-collection-{{.ItemsPerRow}}-list" aria-label="{{i18n("wcag_aria_label_collection_list")}}">
5
+ <section class="page-collection page-collection-list page-collection-list-{{.ItemsPerRow}} page-collection-list-{{.ItemLayout}} list-{{.ItemsPerRow}} list-{{.ItemLayout}} page-collection-{{.ItemsPerRow}}-list list-{{.TitleSlug}}" aria-label="{{i18n("wcag_aria_label_collection_list")}}">
6
6
  <div class="collection-wrapper-container">
7
- <div class="collection-container">
7
+ <div class="collection-container" data-title-slug="{{.TitleSlug}}">
8
8
  {{ if showTitle }}
9
9
  <div class="page-collection-list-title">
10
10
  <h3>{{.DisplayName}}</h3>
@@ -3,9 +3,9 @@
3
3
  {{import "./slider-buttons.jet"}}
4
4
  {{block pageCollectionSlider()}}
5
5
  {{if len(.Items) > 0}}
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
+ <section class="page-collection page-collection-slider page-collection-slider-{{.ItemsPerRow}} page-collection-slider-{{.ItemLayout}} slider-{{.ItemsPerRow}} slider-{{.ItemLayout}} page-collection-{{.ItemsPerRow}}-slider slider-{{.TitleSlug}}" aria-label="{{i18n("wcag_aria_label_collection_slider")}}">
7
7
  <div class="collection-wrapper-container swiper-wrapper-container">
8
- <div class="collection-container swiper-container" data-items-per-row="{{.ItemsPerRow}}" data-layout="{{.ItemLayout}}">
8
+ <div class="collection-container swiper-container" data-items-per-row="{{.ItemsPerRow}}" data-layout="{{.ItemLayout}}" data-title-slug="{{.TitleSlug}}">
9
9
  {{if .DisplayName != ""}}
10
10
  <div class="swiper-title">
11
11
  <h3>{{.DisplayName}}</h3>
@@ -90,8 +90,7 @@
90
90
  {{range index, member := film.Cast}}
91
91
  {{ path := "/search.html?q=" + member.Name }}
92
92
  {{ showCharacter := !isEnabled("site_hide_cast_character_name")}}
93
- <a href="{{ routeToPath(path) }}">{{member.Name}}</a>{{if len(member.Character) > 0 && showCharacter}}<span class="meta-detail-character"> ({{member.Character}})</span>{{end}}
94
- {{if index < len(film.Cast) - 1}}, {{end}}
93
+ <a href="{{ routeToPath(path) }}">{{member.Name}}</a>{{if len(member.Character) > 0 && showCharacter}}<span class="meta-detail-character"> ({{member.Character}})</span>{{end}}{{if index < len(film.Cast) - 1}}, {{end}}
95
94
  {{end}}
96
95
  </p>
97
96
  </div>