@shift72/core-template 1.6.0 → 1.7.0

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,7 +1,19 @@
1
1
  # Changelog
2
2
 
3
- ## [Unreleased](https://github.com/shift72/core-template/compare/1.6.0...HEAD)
3
+ ## [Unreleased](https://github.com/shift72/core-template/compare/1.7.0...HEAD)
4
4
 
5
+ ## [1.7.0](https://github.com/shift72/core-template/compare/1.6.0...1.7.0)
6
+
7
+ ### Added
8
+ - Bonus content and episode show/hide component.
9
+
10
+ ### Changed
11
+ - Modified powered_by_url translations.
12
+ - Various spacing style changes.
13
+
14
+ ### Fixed
15
+ - Pricing buttons no longer get squashed in Firefox.
16
+ - Spacing issues on small screens.
5
17
 
6
18
  ## [1.6.0](https://github.com/shift72/core-template/compare/1.5.1...1.6.0)
7
19
 
package/kibble.json CHANGED
@@ -185,5 +185,5 @@
185
185
  "pageSize": 0
186
186
  }
187
187
  ],
188
- "coreTemplateVersion": "1.6.0"
188
+ "coreTemplateVersion": "1.7.0"
189
189
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shift72/core-template",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "Shift72 core template",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -9,7 +9,7 @@
9
9
  "other": "Shift72"
10
10
  },
11
11
  "powered_by_url": {
12
- "other": "https://www.screenplus.com"
12
+ "other": "https://www.shift72.com"
13
13
  },
14
14
  "in_partnership_with": {
15
15
  "other": "En col·laboració amb"
@@ -9,7 +9,7 @@
9
9
  "other": "Shift72"
10
10
  },
11
11
  "powered_by_url": {
12
- "other": "https://www.screenplus.com"
12
+ "other": "https://www.shift72.com"
13
13
  },
14
14
  "in_partnership_with": {
15
15
  "other": "i samarbejde med"
@@ -9,7 +9,7 @@
9
9
  "other": "Shift72"
10
10
  },
11
11
  "powered_by_url": {
12
- "other": "https://www.screenplus.com"
12
+ "other": "https://www.shift72.com"
13
13
  },
14
14
  "in_partnership_with": {
15
15
  "other": "in einer Beziehung mit"
@@ -682,7 +682,7 @@
682
682
  "other": "Die Zahlung wurde nicht akzeptiert. Bitte schließen Sie das Fenster und versuchen Sie es noch einmal."
683
683
  },
684
684
  "meta_detail_cast_title": {
685
- "other": "Gießen"
685
+ "other": "Cast"
686
686
  },
687
687
  "meta_detail_crew_title": {
688
688
  "other": "Besatzung"
@@ -9,7 +9,7 @@
9
9
  "other": "Shift72"
10
10
  },
11
11
  "powered_by_url": {
12
- "other": "https://www.screenplus.com"
12
+ "other": "https://www.shift72.com"
13
13
  },
14
14
  "in_partnership_with": {
15
15
  "other": "in partnership with"
@@ -9,7 +9,7 @@
9
9
  "other": "Shift72"
10
10
  },
11
11
  "powered_by_url": {
12
- "other": "https://www.screenplus.com"
12
+ "other": "https://www.shift72.com"
13
13
  },
14
14
  "in_partnership_with": {
15
15
  "other": "koostöös"
@@ -6,10 +6,10 @@
6
6
  "other": "Powered by"
7
7
  },
8
8
  "powered_by_name": {
9
- "other": "ScreenPlus"
9
+ "other": "Shift72"
10
10
  },
11
11
  "powered_by_url": {
12
- "other": "https://www.screenplus.com"
12
+ "other": "https://www.shift72.com"
13
13
  },
14
14
  "in_partnership_with": {
15
15
  "other": "in partnership with"
@@ -9,7 +9,7 @@
9
9
  "other": "Shift72"
10
10
  },
11
11
  "powered_by_url": {
12
- "other": "https://www.screenplus.com"
12
+ "other": "https://www.shift72.com"
13
13
  },
14
14
  "in_partnership_with": {
15
15
  "other": "u suradnji s"
@@ -9,7 +9,7 @@
9
9
  "other": "Shift72"
10
10
  },
11
11
  "powered_by_url": {
12
- "other": "https://www.screenplus.com"
12
+ "other": "https://www.shift72.com"
13
13
  },
14
14
  "in_partnership_with": {
15
15
  "other": "in partnership with"
@@ -9,7 +9,7 @@
9
9
  "other": "Shift72"
10
10
  },
11
11
  "powered_by_url": {
12
- "other": "https://www.screenplus.com"
12
+ "other": "https://www.shift72.com"
13
13
  },
14
14
  "in_partnership_with": {
15
15
  "other": "in partnership with"
@@ -6,10 +6,10 @@
6
6
  "other": "Powered by"
7
7
  },
8
8
  "powered_by_name": {
9
- "other": "ScreenPlus"
9
+ "other": "Shift72"
10
10
  },
11
11
  "powered_by_url": {
12
- "other": "https://www.screenplus.com"
12
+ "other": "https://www.shift72.com"
13
13
  },
14
14
  "in_partnership_with": {
15
15
  "other": "in partnership with"
@@ -9,7 +9,7 @@
9
9
  "other": "Shift72"
10
10
  },
11
11
  "powered_by_url": {
12
- "other": "https://www.screenplus.com"
12
+ "other": "https://www.shift72.com"
13
13
  },
14
14
  "in_partnership_with": {
15
15
  "other": "in partnership with"
@@ -6,7 +6,7 @@
6
6
  "other": "Distribuído por"
7
7
  },
8
8
  "powered_by_name": {
9
- "other": "ScreenPlus"
9
+ "other": "Shift72"
10
10
  },
11
11
  "powered_by_url": {
12
12
  "other": "https://www.shift72.com"
@@ -4,6 +4,7 @@ s72-availability-label {
4
4
  @include body-1-style;
5
5
  line-height: 24px;
6
6
  margin-bottom: 16px;
7
+ margin-top: -4px;
7
8
 
8
9
  &::before {
9
10
  @extend .fa;
@@ -3,11 +3,12 @@
3
3
 
4
4
  &.meta-awards-all {
5
5
  display: grid;
6
- gap: 30px 104px;
7
- margin-bottom: 0px;
6
+ gap: 28px 104px;
7
+ margin-bottom: 0;
8
8
  margin-top: 20px;
9
9
 
10
10
  @include media-breakpoint-up(md) {
11
+ grid-auto-rows: 1fr;
11
12
  grid-template-columns: repeat(2, minmax(0, 320px));
12
13
  }
13
14
  }
@@ -1,14 +1,10 @@
1
1
  /* stylelint-disable selector-max-compound-selectors, max-nesting-depth */
2
2
  @mixin text-cta-btn {
3
3
  margin: 0;
4
+ min-width: 140px;
4
5
  padding: 6px 12px;
5
6
  white-space: nowrap;
6
7
  width: 100%;
7
-
8
- @include media-breakpoint-up(xs) {
9
- min-width: fit-content;
10
- width: 140px;
11
- }
12
8
  }
13
9
 
14
10
  .cta-buttons {
@@ -17,7 +13,7 @@
17
13
  margin-bottom: 8px;
18
14
 
19
15
  @include media-breakpoint-up(xs) {
20
- grid-auto-columns: min-content;
16
+ grid-template-columns: max-content max-content;
21
17
  grid-template-rows: 1fr;
22
18
  }
23
19
 
@@ -37,7 +33,7 @@
37
33
  grid-template-columns: 1fr 1fr;
38
34
 
39
35
  @include media-breakpoint-up(xs) {
40
- grid-template-columns: none;
36
+ grid-template-columns: repeat(auto-fit, minmax(140px, max-content));
41
37
  }
42
38
 
43
39
  > * {
@@ -158,6 +154,10 @@
158
154
  .s72-btn-can-be-watched {
159
155
  @include text-cta-btn;
160
156
 
157
+ @include media-breakpoint-up(xs) {
158
+ max-width: max-content;
159
+ }
160
+
161
161
  .padder {
162
162
  display: none;
163
163
  }
@@ -174,11 +174,9 @@
174
174
  gap: 16px;
175
175
  grid-template-rows: 1fr;
176
176
  justify-items: center;
177
- padding: 0 36px;
178
177
 
179
178
  @include media-breakpoint-up(xs) {
180
179
  grid-template-columns: min-content min-content min-content;
181
- padding: 0;
182
180
  }
183
181
 
184
182
  > * {
@@ -227,3 +227,14 @@ s72-availability-label .availability-state::before {
227
227
  @extend .fa-circle;
228
228
  @extend .s72-icon;
229
229
  }
230
+
231
+ // Rule: icon classes in relish should be prefxed with 's72-'
232
+ .s72-icon-down {
233
+ @extend .fa;
234
+ @extend .fa-angle-down;
235
+ }
236
+
237
+ .s72-icon-up {
238
+ @extend .fa;
239
+ @extend .fa-angle-up;
240
+ }
@@ -147,10 +147,14 @@
147
147
  .sponsor {
148
148
  margin-bottom: 12px;
149
149
 
150
- @include media-breakpoint-up(xs) {
150
+ @include media-breakpoint-up(lg) {
151
151
  margin-bottom: 20px;
152
152
  }
153
153
  }
154
+
155
+ > .poster {
156
+ margin-bottom: 5px;
157
+ }
154
158
  }
155
159
 
156
160
  .poster {
@@ -172,6 +176,10 @@
172
176
  .live {
173
177
  display: none;
174
178
  }
179
+
180
+ .s72-image {
181
+ display: initial;
182
+ }
175
183
  }
176
184
 
177
185
  .poster-wrapper .sponsor {
@@ -190,7 +198,8 @@
190
198
 
191
199
  s72-element-switcher,
192
200
  .meta-detail-bonus-content,
193
- .meta-detail-episodes-content {
201
+ .meta-detail-episodes-content,
202
+ .meta-awards-all {
194
203
  flex: 1 1 100%;
195
204
  max-width: 728px;
196
205
 
@@ -221,7 +230,12 @@ s72-element-switcher,
221
230
  }
222
231
 
223
232
  .meta-detail-synopsis {
233
+ margin-bottom: -4px;
224
234
  max-width: 728px;
235
+
236
+ @include media-breakpoint-up(xs) {
237
+ margin-bottom: 0;
238
+ }
225
239
  @include media-breakpoint-up(xl) {
226
240
  max-width: 1100px;
227
241
  }
@@ -229,7 +243,7 @@ s72-element-switcher,
229
243
 
230
244
  .meta-detail-synopsis,
231
245
  .meta-detail-switcher-tagline {
232
- padding-top: 22px;
246
+ padding-top: 12px;
233
247
 
234
248
  p {
235
249
  animation: fadein 2s;
@@ -268,19 +282,6 @@ s72-element-switcher,
268
282
  }
269
283
  }
270
284
 
271
- .recommendations-collection {
272
- padding-top: 20px;
273
- @include media-breakpoint-up(md) {
274
- padding-top: 0;
275
- }
276
- @include media-breakpoint-up(lg) {
277
- padding-top: 20px;
278
- }
279
- @include media-breakpoint-up(xl) {
280
- padding-top: 80px;
281
- }
282
- }
283
-
284
285
  .meta-detail-bundle {
285
286
  .meta-detail-bg {
286
287
  opacity: 0.4;
@@ -399,7 +400,10 @@ s72-element-switcher,
399
400
 
400
401
  .meta-detail-episodes-content,
401
402
  .meta-detail-bonus-content {
402
- margin-bottom: 40px;
403
+ margin-bottom: 18px;
404
+ @include media-breakpoint-up(lg) {
405
+ margin-bottom: 32px;
406
+ }
403
407
 
404
408
  h2 {
405
409
  @include heading-3-style;
@@ -416,10 +420,13 @@ s72-element-switcher,
416
420
 
417
421
  .element-switcher-wrapper {
418
422
  display: grid;
419
- gap: 50px;
420
- grid-template-columns: auto auto;
421
423
  width: 100%;
422
424
 
425
+ @include media-breakpoint-up(lg) {
426
+ gap: 50px;
427
+ grid-template-columns: auto auto;
428
+ }
429
+
423
430
  .sponsor {
424
431
  display: none;
425
432
  padding-top: 10px;
@@ -450,6 +457,7 @@ s72-element-switcher {
450
457
  margin-bottom: 62px;
451
458
 
452
459
  .s72-toggle {
460
+ bottom: -36px;
453
461
  &:hover {
454
462
  color: var(--body-color-hover);
455
463
  }
@@ -460,7 +468,6 @@ s72-element-switcher {
460
468
  display: grid;
461
469
  gap: 20px;
462
470
  grid-template-columns: repeat(1, 1fr);
463
- padding-bottom: 20px;
464
471
 
465
472
  @include media-breakpoint-up(lg) {
466
473
  grid-template-columns: repeat(2, 1fr);
@@ -52,6 +52,5 @@
52
52
  .meta-detail-content .meta-detail-tagline-and-classification {
53
53
  align-items: center;
54
54
  display: flex !important;
55
- padding-bottom: 12px;
56
- padding-top: 5px;
55
+ padding: 5px 0 16px;
57
56
  }
@@ -1,14 +1,23 @@
1
1
  .sub-item {
2
2
  display: grid;
3
- grid-gap: 15px;
3
+ gap: 1px 15px;
4
4
  grid-template-columns: 112px minmax(100px, 1fr);
5
5
  grid-template-rows: auto minmax(0, 1fr);
6
- margin-bottom: 15px;
7
- padding-bottom: 15px;
6
+ margin-bottom: 16px;
7
+ padding-bottom: 16px;
8
8
 
9
9
  @include media-breakpoint-up(sm) {
10
10
  grid-template-columns: 175px minmax(100px, 1fr);
11
11
  grid-template-rows: auto auto minmax(0, 1fr);
12
+
13
+ &:last-of-type {
14
+ margin-bottom: 0;
15
+ padding-bottom: 0;
16
+ }
17
+ }
18
+
19
+ @include media-breakpoint-up(lg) {
20
+ gap: 5px 15px;
12
21
  }
13
22
 
14
23
  h3 {
@@ -37,17 +46,20 @@
37
46
  }
38
47
 
39
48
  .synopsis {
49
+ animation: fadein 2s;
40
50
  font-size: 16px;
41
51
  font-weight: $font-weight-light;
42
52
  grid-column: 1 / 3;
43
53
  letter-spacing: 0.6px;
44
54
  line-height: 1.25;
45
55
  margin-top: 5px;
56
+ overflow: hidden;
46
57
 
47
58
  @include media-breakpoint-up(sm) {
59
+ display: block !important;
48
60
  grid-column: auto;
49
61
  grid-row: 2;
50
- margin-bottom: 10px;
62
+ margin-bottom: 7px;
51
63
  }
52
64
 
53
65
  p {
@@ -110,3 +122,16 @@
110
122
  .s72-playback-progress-bar {
111
123
  background-color: var(--secondary);
112
124
  }
125
+
126
+ s72-show-hide-switcher {
127
+ display: block;
128
+ margin-bottom: 15px;
129
+ padding-bottom: 15px;
130
+ transition: height 0.5s ease;
131
+
132
+ .s72-toggle {
133
+ @include media-breakpoint-up(sm) {
134
+ display: none;
135
+ }
136
+ }
137
+ }
@@ -7,10 +7,10 @@
7
7
  .collection-container {
8
8
  padding: 0 0 40px;
9
9
  @include media-breakpoint-up(md) {
10
- padding: 15px 20px 20px;
10
+ padding: 10px 20px 20px;
11
11
  }
12
12
  @include media-breakpoint-up(lg) {
13
- padding: 15px 50px 20px;
13
+ padding: 10px 50px 20px;
14
14
  }
15
15
  }
16
16
 
@@ -48,7 +48,7 @@
48
48
  $font-size: var(--heading-3-style-font-size),
49
49
  $letter-spacing: var(--heading-3-style-letter-spacing),
50
50
  $font-weight: $font-weight-normal,
51
- $margin-bottom: 6px,
51
+ $margin-bottom: 12px,
52
52
  $line-height: 24px
53
53
  );
54
54
  @include media-breakpoint-up(sm) {
@@ -106,9 +106,9 @@
106
106
  --page-padding-top: 120px;
107
107
  --page-padding-top-md: 120px;
108
108
  --page-padding-top-lg: 180px;
109
- --page-detail-padding-top: 245px;
110
- --page-detail-padding-top-md: 290px;
111
- --page-detail-padding-top-lg: 440px;
109
+ --page-detail-padding-top: 160px;
110
+ --page-detail-padding-top-md: 248px;
111
+ --page-detail-padding-top-lg: 400px;
112
112
 
113
113
  --heading-1-style-letter-spacing: normal;
114
114
  --heading-2-style-letter-spacing: normal;
@@ -33,13 +33,13 @@
33
33
  {{if config("default_image_type") == "portrait"}}
34
34
  {{yield sponsor() film}}
35
35
 
36
- {{if film.ImageMap["Portrait"] != ""}}
37
36
  <div class="poster poster-portrait">
38
- <s72-availability-status data-slug="{{film.Slug}}"></s72-availability-status>
39
- <s72-image src="{{film.ImageMap["Classification"]}}" alt="" class="classification-image">
40
- <s72-image src="{{film.ImageMap["Portrait"]}}" alt="{{film.Title}}" class="poster poster-image poster-image-portrait"></s72-image>
37
+ {{if film.ImageMap["Portrait"] != ""}}
38
+ <s72-availability-status data-slug="{{film.Slug}}"></s72-availability-status>
39
+ <s72-image src="{{film.ImageMap["Classification"]}}" alt="" class="classification-image">
40
+ <s72-image src="{{film.ImageMap["Portrait"]}}" alt="{{film.Title}}" class="poster poster-image poster-image-portrait"></s72-image>
41
+ {{end}}
41
42
  </div>
42
- {{end}}
43
43
  {{end}}
44
44
  </div>
45
45
 
@@ -157,9 +157,7 @@
157
157
  <h2>{{i18n("meta_detail_bonus_title")}}</h2>
158
158
  {{yield list(itemsPerRow=4, itemLayout="landscape") content}}
159
159
  {{range bonus := film.Bonuses}}
160
- <div class="sub-item">
161
- {{yield subItem(item=bonus)}}
162
- </div>
160
+ {{yield subItem(item=bonus)}}
163
161
  {{end}}
164
162
  {{end}}
165
163
  </section>
@@ -1,22 +1,26 @@
1
1
  {{ block subItem(item) }}
2
- <div class="poster-container">
3
- <div class="poster">
4
- <s72-availability-status slug="{{item.Slug}}"></s72-availability-status>
5
- <s72-image src="{{item.Images.Landscape}}" alt="{{item.Title}}" class="poster-image poster-image-landscape"></s72-image>
6
- <s72-play-button data-slug="{{item.Slug}}" title="{{item.Title}}"></s72-play-button>
7
- <s72-playback-progress slug="{{item.Slug}}"></s72-playback-progress>
8
- </div>
9
- </div>
10
- <h3>{{item.Title}}</h3>
11
- {{if item.Runtime > 0 }}
12
- <span class="runtime">
13
- {{if item.Runtime.Hours() > 0}}
14
- {{item.Runtime.Hours()}}{{i18n("runtime_hours")}}
2
+ <s72-show-hide-switcher target-elem=".synopsis">
3
+ <div class="sub-item">
4
+ <div class="poster-container">
5
+ <div class="poster">
6
+ <s72-availability-status slug="{{item.Slug}}"></s72-availability-status>
7
+ <s72-image src="{{item.Images.Landscape}}" alt="{{item.Title}}" class="poster-image poster-image-landscape"></s72-image>
8
+ <s72-play-button data-slug="{{item.Slug}}" title="{{item.Title}}"></s72-play-button>
9
+ <s72-playback-progress slug="{{item.Slug}}"></s72-playback-progress>
10
+ </div>
11
+ </div>
12
+ <h3>{{item.Title}}</h3>
13
+ {{if item.Runtime > 0 }}
14
+ <span class="runtime">
15
+ {{if item.Runtime.Hours() > 0}}
16
+ {{item.Runtime.Hours()}}{{i18n("runtime_hours")}}
17
+ {{end}}
18
+ {{item.Runtime.Minutes()}}{{i18n("runtime_minutes")}}
19
+ </span>
20
+ {{end}}
21
+ {{if item.Overview}}
22
+ <div class="synopsis s72-hide">{{item.Overview | raw}}</div> {* hide class prevents FOUC *}
15
23
  {{end}}
16
- {{item.Runtime.Minutes()}}{{i18n("runtime_minutes")}}
17
- </span>
18
- {{end}}
19
- {{if item.Overview}}
20
- <div class="synopsis">{{item.Overview | raw}}</div>
21
- {{end}}
24
+ </div>
25
+ </s72-show-hide-switcher>
22
26
  {{ end }}
@@ -81,9 +81,7 @@
81
81
  <h2>{{i18n("meta_detail_episodes_title")}}</h2>
82
82
  {{yield list(itemsPerRow=4, itemLayout="portrait") content}}
83
83
  {{range episode := tvseason.Episodes}}
84
- <div class="sub-item">
85
- {{yield subItem(item=episode)}}
86
- </div>
84
+ {{yield subItem(item=episode)}}
87
85
  {{end}}
88
86
  {{end}}
89
87
  </div>
@@ -94,9 +92,7 @@
94
92
  <h2>{{i18n("meta_detail_bonus_title")}}</h2>
95
93
  {{yield list(itemsPerRow=4, itemLayout="landscape") content}}
96
94
  {{range bonus := tvseason.Bonuses}}
97
- <div class="sub-item">
98
- {{yield subItem(item=bonus)}}
99
- </div>
95
+ {{yield subItem(item=bonus)}}
100
96
  {{end}}
101
97
  {{end}}
102
98
  </section>
@@ -9,7 +9,7 @@
9
9
  "other": "Shift72"
10
10
  },
11
11
  "powered_by_url": {
12
- "other": "https://www.screenplus.com"
12
+ "other": "https://www.shift72.com"
13
13
  },
14
14
  "in_partnership_with": {
15
15
  "other": "у партнерстві з"