@shift72/core-template 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +13 -1
- package/kibble.json +1 -1
- package/package.json +1 -1
- package/site/ca_ES.all.json +1 -1
- package/site/da_DK.all.json +1 -1
- package/site/de_DE.all.json +2 -2
- package/site/en_AU.all.json +1 -1
- package/site/et_ET.all.json +1 -1
- package/site/fr_FR.all.json +2 -2
- package/site/hr_HR.all.json +1 -1
- package/site/hu_HU.all.json +1 -1
- package/site/it_IT.all.json +1 -1
- package/site/ja_JP.all.json +2 -2
- package/site/lt_LT.all.json +1 -1
- package/site/pt_PT.all.json +1 -1
- package/site/styles/_availability-tags.scss +1 -0
- package/site/styles/_awards.scss +3 -2
- package/site/styles/_cta-buttons.scss +7 -9
- package/site/styles/_icons.scss +11 -0
- package/site/styles/_meta-detail.scss +27 -20
- package/site/styles/_meta-item-tagline.scss +1 -2
- package/site/styles/_meta-sub-item.scss +29 -4
- package/site/styles/_swiper.scss +2 -2
- package/site/styles/_typography.scss +1 -1
- package/site/styles/_variables.scss +3 -3
- package/site/templates/film/item.jet +6 -8
- package/site/templates/items/sub_item.jet +23 -19
- package/site/templates/tv/detail.jet +2 -6
- package/site/uk_UA.all.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,7 +1,19 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## [Unreleased](https://github.com/shift72/core-template/compare/1.
|
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
package/package.json
CHANGED
package/site/ca_ES.all.json
CHANGED
package/site/da_DK.all.json
CHANGED
package/site/de_DE.all.json
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
"other": "Shift72"
|
10
10
|
},
|
11
11
|
"powered_by_url": {
|
12
|
-
"other": "https://www.
|
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": "
|
685
|
+
"other": "Cast"
|
686
686
|
},
|
687
687
|
"meta_detail_crew_title": {
|
688
688
|
"other": "Besatzung"
|
package/site/en_AU.all.json
CHANGED
package/site/et_ET.all.json
CHANGED
package/site/fr_FR.all.json
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
"other": "Powered by"
|
7
7
|
},
|
8
8
|
"powered_by_name": {
|
9
|
-
"other": "
|
9
|
+
"other": "Shift72"
|
10
10
|
},
|
11
11
|
"powered_by_url": {
|
12
|
-
"other": "https://www.
|
12
|
+
"other": "https://www.shift72.com"
|
13
13
|
},
|
14
14
|
"in_partnership_with": {
|
15
15
|
"other": "in partnership with"
|
package/site/hr_HR.all.json
CHANGED
package/site/hu_HU.all.json
CHANGED
package/site/it_IT.all.json
CHANGED
package/site/ja_JP.all.json
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
"other": "Powered by"
|
7
7
|
},
|
8
8
|
"powered_by_name": {
|
9
|
-
"other": "
|
9
|
+
"other": "Shift72"
|
10
10
|
},
|
11
11
|
"powered_by_url": {
|
12
|
-
"other": "https://www.
|
12
|
+
"other": "https://www.shift72.com"
|
13
13
|
},
|
14
14
|
"in_partnership_with": {
|
15
15
|
"other": "in partnership with"
|
package/site/lt_LT.all.json
CHANGED
package/site/pt_PT.all.json
CHANGED
package/site/styles/_awards.scss
CHANGED
@@ -3,11 +3,12 @@
|
|
3
3
|
|
4
4
|
&.meta-awards-all {
|
5
5
|
display: grid;
|
6
|
-
gap:
|
7
|
-
margin-bottom:
|
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-
|
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:
|
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
|
> * {
|
package/site/styles/_icons.scss
CHANGED
@@ -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(
|
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:
|
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:
|
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);
|
@@ -1,14 +1,23 @@
|
|
1
1
|
.sub-item {
|
2
2
|
display: grid;
|
3
|
-
|
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:
|
7
|
-
padding-bottom:
|
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:
|
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
|
+
}
|
package/site/styles/_swiper.scss
CHANGED
@@ -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:
|
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:
|
110
|
-
--page-detail-padding-top-md:
|
111
|
-
--page-detail-padding-top-lg:
|
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
|
-
|
39
|
-
|
40
|
-
|
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
|
-
|
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
|
-
<
|
3
|
-
<div class="
|
4
|
-
<
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
{{if item.Runtime
|
14
|
-
|
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
|
-
|
17
|
-
|
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
|
-
|
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
|
-
|
98
|
-
{{yield subItem(item=bonus)}}
|
99
|
-
</div>
|
95
|
+
{{yield subItem(item=bonus)}}
|
100
96
|
{{end}}
|
101
97
|
{{end}}
|
102
98
|
</section>
|