@shift72/core-template 1.9.22 → 1.9.24
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 +17 -1
- package/kibble.json +4 -4
- package/package.json +2 -2
- package/site/styles/_cta-buttons.scss +1 -1
- package/site/styles/_meta-item-title.scss +19 -0
- package/site/styles/_nav.scss +1 -1
- package/site/styles/_variables.scss +7 -0
- package/site/styles/main.scss +1 -0
- package/site/templates/collection/carousel/item.jet +6 -3
- package/site/templates/film/item.jet +2 -1
- package/site/templates/film/title.jet +10 -0
- package/site/templates/collection/carousel/item/title.jet +0 -3
package/CHANGELOG.md
CHANGED
@@ -1,6 +1,22 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## [Unreleased](https://github.com/shift72/core-template/compare/1.9.
|
3
|
+
## [Unreleased](https://github.com/shift72/core-template/compare/1.9.24...HEAD)
|
4
|
+
|
5
|
+
## [1.9.24](https://github.com/shift72/core-template/compare/1.9.23...1.9.24)
|
6
|
+
|
7
|
+
### Fixed
|
8
|
+
|
9
|
+
- Use title image component only for films as other item types do not yet support imagemap
|
10
|
+
|
11
|
+
## [1.9.23](https://github.com/shift72/core-template/compare/1.9.22...1.9.23)
|
12
|
+
|
13
|
+
### Added
|
14
|
+
|
15
|
+
- Film title image support
|
16
|
+
|
17
|
+
### Fixed
|
18
|
+
|
19
|
+
- Carousel video mute button to support light / custom theme
|
4
20
|
|
5
21
|
## [1.9.22](https://github.com/shift72/core-template/compare/1.9.21...1.9.22)
|
6
22
|
|
package/kibble.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"name": "core-template",
|
3
|
-
"version": "
|
4
|
-
"siteUrl": "https://
|
5
|
-
"builderVersion": "0.17.
|
3
|
+
"version": "1.9.24",
|
4
|
+
"siteUrl": "https://staging-store-kibble.shift72.com",
|
5
|
+
"builderVersion": "0.17.6",
|
6
6
|
"defaultLanguage": "en",
|
7
7
|
"languages": {
|
8
8
|
"ar": {
|
@@ -194,5 +194,5 @@
|
|
194
194
|
"pageSize": 0
|
195
195
|
}
|
196
196
|
],
|
197
|
-
"coreTemplateVersion": "1.9.
|
197
|
+
"coreTemplateVersion": "1.9.24"
|
198
198
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@shift72/core-template",
|
3
|
-
"version": "1.9.
|
3
|
+
"version": "1.9.24",
|
4
4
|
"description": "Shift72 core template",
|
5
5
|
"license": "MIT",
|
6
6
|
"scripts": {
|
@@ -54,7 +54,7 @@
|
|
54
54
|
"postcss-cli": "^9.0.1",
|
55
55
|
"rollup": "^2.23.0",
|
56
56
|
"rollup-plugin-terser": "^6.1.0",
|
57
|
-
"s72-kibble": "^0.17.
|
57
|
+
"s72-kibble": "^0.17.6",
|
58
58
|
"sass": "^1.36.0"
|
59
59
|
},
|
60
60
|
"devDependencies": {
|
@@ -0,0 +1,19 @@
|
|
1
|
+
.item-title-image {
|
2
|
+
max-height: var(--title-image-max-height);
|
3
|
+
margin-left: var(--title-image-left-margin);
|
4
|
+
object-fit: contain;
|
5
|
+
object-position: left;
|
6
|
+
width: var(--title-image-width);
|
7
|
+
@include media-breakpoint-up(sm) {
|
8
|
+
width: var(--title-image-width-sm);
|
9
|
+
}
|
10
|
+
@include media-breakpoint-up(lg) {
|
11
|
+
width: var(--title-image-width-lg);
|
12
|
+
}
|
13
|
+
&.carousel {
|
14
|
+
margin-bottom: 16px;
|
15
|
+
}
|
16
|
+
&.film {
|
17
|
+
margin-bottom: 8px;
|
18
|
+
}
|
19
|
+
}
|
package/site/styles/_nav.scss
CHANGED
@@ -121,6 +121,13 @@
|
|
121
121
|
--carousel-image-object-position-sm: center;
|
122
122
|
--carousel-image-object-position-lg: center;
|
123
123
|
|
124
|
+
// Title Image sizing - carousel and detail page:
|
125
|
+
--title-image-width: 250px;
|
126
|
+
--title-image-width-sm: 350px;
|
127
|
+
--title-image-width-lg: 400px;
|
128
|
+
--title-image-max-height: 180px;
|
129
|
+
--title-image-left-margin: 0px;
|
130
|
+
|
124
131
|
// Pages
|
125
132
|
--collection-padding-bottom: 40px;
|
126
133
|
|
package/site/styles/main.scss
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
{{import "../../common/awards/carousel.jet"}}
|
2
|
-
{{import "./item/title.jet"}}
|
3
2
|
{{import "./item/tagline.jet"}}
|
4
3
|
{{import "./item/image.jet"}}
|
5
4
|
{{import "./item/synopsis.jet"}}
|
6
5
|
{{import "../../common/sponsor-image.jet"}}
|
7
6
|
{{import "../../common/cta_buttons.jet"}}
|
7
|
+
{{import "../../film/title.jet"}}
|
8
8
|
|
9
9
|
|
10
10
|
|
@@ -37,8 +37,11 @@
|
|
37
37
|
{{end}}
|
38
38
|
|
39
39
|
<div class="meta-item-content">
|
40
|
-
{{
|
41
|
-
|
40
|
+
{{if isFilm}}
|
41
|
+
{{yield filmTitle(title=item.GetTitle(i18n),class="carousel",element="h3") item.InnerItem}}
|
42
|
+
{{else}}
|
43
|
+
<h3>{{item.GetTitle(i18n)}}</h3>
|
44
|
+
{{end}}
|
42
45
|
{{yield carouselItemTagline() item.InnerItem}}
|
43
46
|
|
44
47
|
{{if isset(item.InnerItem["Tagline"])}}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
{{extends "../application/application.jet"}}
|
2
2
|
{{import "../common/slider.jet"}}
|
3
3
|
{{import "../items/tagline.jet"}}
|
4
|
+
{{import "../film/title.jet"}}
|
4
5
|
{{import "../items/sub_item.jet"}}
|
5
6
|
{{import "../collection/page_collection_item.jet"}}
|
6
7
|
{{import "../collection/slider.jet"}}
|
@@ -45,7 +46,7 @@
|
|
45
46
|
</div>
|
46
47
|
|
47
48
|
<div class="meta-detail-content">
|
48
|
-
|
49
|
+
{{yield filmTitle(title=film.Title,class="carousel",element="h1") film}}
|
49
50
|
<div class="meta-detail-tagline-and-classification">
|
50
51
|
<div class="meta-detail-tagline">
|
51
52
|
{{yield metaItemTagline() film}}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{{block filmTitle(title,class,element="h1")}}
|
2
|
+
|
3
|
+
{{titleImage := .ImageMap["Title"]}}
|
4
|
+
|
5
|
+
{{if isset(titleImage)}}
|
6
|
+
<img src="{{titleImage}}" alt="{{title}}" class="item-title-image {{class}}" />
|
7
|
+
{{else}}
|
8
|
+
<{{element}}>{{title}}</{{element}}>
|
9
|
+
{{end}}
|
10
|
+
{{end}}
|