hr-design-system-handlebars 0.122.0 → 0.122.2
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 +24 -0
- package/dist/assets/index.css +43 -42
- package/dist/views/components/teaser/cluster/teaser_cluster.hbs +1 -1
- package/dist/views/components/teaser/cluster/teaser_cluster_list.hbs +12 -8
- package/dist/views/components/teaser/teaser_alternativ.hbs +3 -3
- package/package.json +1 -1
- package/src/assets/css/custom-utilities.css +60 -0
- package/src/stories/views/components/teaser/cluster/teaser_cluster.hbs +1 -1
- package/src/stories/views/components/teaser/cluster/teaser_cluster_list.hbs +12 -8
- package/src/stories/views/components/teaser/teaser_alternativ.hbs +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# v0.122.2 (Tue Jan 31 2023)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- DPE-2048 - Flexbox percentage problem fix [#511](https://github.com/mumprod/hr-design-system-handlebars/pull/511) ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v0.122.1 (Mon Jan 30 2023)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- DPE-2044 [#510](https://github.com/mumprod/hr-design-system-handlebars/pull/510) ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
1
25
|
# v0.122.0 (Fri Jan 27 2023)
|
|
2
26
|
|
|
3
27
|
#### 🚀 Enhancement
|
package/dist/assets/index.css
CHANGED
|
@@ -2477,7 +2477,7 @@ video {
|
|
|
2477
2477
|
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
2478
2478
|
}
|
|
2479
2479
|
.counter-reset {
|
|
2480
|
-
counter-reset:
|
|
2480
|
+
counter-reset: cnt1675161117189;
|
|
2481
2481
|
}
|
|
2482
2482
|
.line-clamp-4 {
|
|
2483
2483
|
overflow: hidden;
|
|
@@ -2695,7 +2695,7 @@ video {
|
|
|
2695
2695
|
--tw-ring-color: rgba(255, 255, 255, 0.5);
|
|
2696
2696
|
}
|
|
2697
2697
|
.-ordered {
|
|
2698
|
-
counter-increment:
|
|
2698
|
+
counter-increment: cnt1675161117189 1;
|
|
2699
2699
|
}
|
|
2700
2700
|
.-ordered::before {
|
|
2701
2701
|
position: absolute;
|
|
@@ -2711,7 +2711,7 @@ video {
|
|
|
2711
2711
|
letter-spacing: .0125em;
|
|
2712
2712
|
--tw-text-opacity: 1;
|
|
2713
2713
|
color: rgba(0, 0, 0, var(--tw-text-opacity));
|
|
2714
|
-
content: counter(
|
|
2714
|
+
content: counter(cnt1675161117189);
|
|
2715
2715
|
}
|
|
2716
2716
|
/*! ****************************/
|
|
2717
2717
|
/*! text-shadow */
|
|
@@ -2721,6 +2721,12 @@ video {
|
|
|
2721
2721
|
text-shadow: 1px 1px 2px #000000;
|
|
2722
2722
|
text-shadow: 1px 1px 2px var(--color-text-shadow, #000000);
|
|
2723
2723
|
}
|
|
2724
|
+
/*! *********************************************************/
|
|
2725
|
+
/*! Prozentuale Breite bei Flexbox bei gleichzeitigem */
|
|
2726
|
+
/*! nutzen von column-gap funktioniert nicht richtig. */
|
|
2727
|
+
/*! Deshalb hier eine übergangslösung dafür. */
|
|
2728
|
+
/*! Langfristig sollten die Teaser auf Grid umgebaut werden */
|
|
2729
|
+
/*! *********************************************************/
|
|
2724
2730
|
.\[-T\:\+Z\] {
|
|
2725
2731
|
--t: +Z;
|
|
2726
2732
|
}
|
|
@@ -3937,14 +3943,6 @@ video {
|
|
|
3937
3943
|
width: 10rem;
|
|
3938
3944
|
}
|
|
3939
3945
|
|
|
3940
|
-
.md\:w-2\/3 {
|
|
3941
|
-
width: 66.666667%;
|
|
3942
|
-
}
|
|
3943
|
-
|
|
3944
|
-
.md\:w-1\/3 {
|
|
3945
|
-
width: 33.333333%;
|
|
3946
|
-
}
|
|
3947
|
-
|
|
3948
3946
|
.md\:w-full {
|
|
3949
3947
|
width: 100%;
|
|
3950
3948
|
}
|
|
@@ -3985,18 +3983,6 @@ video {
|
|
|
3985
3983
|
flex: 1 1 auto;
|
|
3986
3984
|
}
|
|
3987
3985
|
|
|
3988
|
-
.md\:basis-2\/3 {
|
|
3989
|
-
flex-basis: 66.666667%;
|
|
3990
|
-
}
|
|
3991
|
-
|
|
3992
|
-
.md\:basis-1\/3 {
|
|
3993
|
-
flex-basis: 33.333333%;
|
|
3994
|
-
}
|
|
3995
|
-
|
|
3996
|
-
.md\:basis-1\/2 {
|
|
3997
|
-
flex-basis: 50%;
|
|
3998
|
-
}
|
|
3999
|
-
|
|
4000
3986
|
.md\:basis-full {
|
|
4001
3987
|
flex-basis: 100%;
|
|
4002
3988
|
}
|
|
@@ -4017,6 +4003,11 @@ video {
|
|
|
4017
4003
|
row-gap: 3.5rem;
|
|
4018
4004
|
}
|
|
4019
4005
|
|
|
4006
|
+
.md\:gap-x-6 {
|
|
4007
|
+
-moz-column-gap: 1.5rem;
|
|
4008
|
+
column-gap: 1.5rem;
|
|
4009
|
+
}
|
|
4010
|
+
|
|
4020
4011
|
.md\:overflow-visible {
|
|
4021
4012
|
overflow: visible;
|
|
4022
4013
|
}
|
|
@@ -4112,14 +4103,14 @@ video {
|
|
|
4112
4103
|
padding-left: 1.25rem;
|
|
4113
4104
|
}
|
|
4114
4105
|
|
|
4115
|
-
.md\:pt-5 {
|
|
4116
|
-
padding-top: 1.25rem;
|
|
4117
|
-
}
|
|
4118
|
-
|
|
4119
4106
|
.md\:pr-5 {
|
|
4120
4107
|
padding-right: 1.25rem;
|
|
4121
4108
|
}
|
|
4122
4109
|
|
|
4110
|
+
.md\:pt-5 {
|
|
4111
|
+
padding-top: 1.25rem;
|
|
4112
|
+
}
|
|
4113
|
+
|
|
4123
4114
|
.md\:pr-0 {
|
|
4124
4115
|
padding-right: 0px;
|
|
4125
4116
|
}
|
|
@@ -4230,7 +4221,21 @@ video {
|
|
|
4230
4221
|
.md\:col-main {
|
|
4231
4222
|
grid-column: main;
|
|
4232
4223
|
}
|
|
4233
|
-
|
|
4224
|
+
.md\:basis-1\/3-gap-6 {
|
|
4225
|
+
--gap: 1.5rem;
|
|
4226
|
+
width:calc((100% - (2 * var(--gap))) / 3 ) ;
|
|
4227
|
+
flex-basis:calc((100% - (2 * var(--gap))) / 3 )
|
|
4228
|
+
}
|
|
4229
|
+
.md\:basis-2\/3-gap-6 {
|
|
4230
|
+
--gap: 1.5rem;
|
|
4231
|
+
width:calc((((100% - (2 * var(--gap))) / 3 ) * 2) + var(--gap));
|
|
4232
|
+
flex-basis:calc((((100% - (2 * var(--gap))) / 3 ) * 2) + var(--gap))
|
|
4233
|
+
}
|
|
4234
|
+
.md\:basis-1\/2-gap-6 {
|
|
4235
|
+
--gap: 1.5rem;
|
|
4236
|
+
width:calc((100% - var(--gap)) / 2 );
|
|
4237
|
+
flex-basis:calc((100% - var(--gap)) / 2 )
|
|
4238
|
+
}
|
|
4234
4239
|
.md\:first-of-type\:pt-0:first-of-type {
|
|
4235
4240
|
padding-top: 0px;
|
|
4236
4241
|
}
|
|
@@ -4454,10 +4459,6 @@ video {
|
|
|
4454
4459
|
flex: 0 1 auto;
|
|
4455
4460
|
}
|
|
4456
4461
|
|
|
4457
|
-
.lg\:basis-1\/3 {
|
|
4458
|
-
flex-basis: 33.333333%;
|
|
4459
|
-
}
|
|
4460
|
-
|
|
4461
4462
|
.lg\:flex-row {
|
|
4462
4463
|
flex-direction: row;
|
|
4463
4464
|
}
|
|
@@ -4665,44 +4666,44 @@ video {
|
|
|
4665
4666
|
.lg\:col-main {
|
|
4666
4667
|
grid-column: main;
|
|
4667
4668
|
}
|
|
4668
|
-
|
|
4669
|
+
.lg\:basis-1\/3-gap-6 {
|
|
4670
|
+
--gap: 1.5rem;
|
|
4671
|
+
width:calc((100% - (2 * var(--gap))) / 3 ) ;
|
|
4672
|
+
flex-basis:calc((100% - (2 * var(--gap))) / 3 )
|
|
4673
|
+
}
|
|
4674
|
+
.lg\:basis-2\/3-gap-6 {
|
|
4675
|
+
--gap: 1.5rem;
|
|
4676
|
+
width:calc((((100% - (2 * var(--gap))) / 3 ) * 2) + var(--gap));
|
|
4677
|
+
flex-basis:calc((((100% - (2 * var(--gap))) / 3 ) * 2) + var(--gap))
|
|
4678
|
+
}
|
|
4669
4679
|
.first\:lg\:-ml-4:first-child {
|
|
4670
4680
|
margin-left: -1rem;
|
|
4671
4681
|
}
|
|
4672
|
-
|
|
4673
4682
|
.lg\:first\:border-t-0:first-child {
|
|
4674
4683
|
border-top-width: 0px;
|
|
4675
4684
|
}
|
|
4676
|
-
|
|
4677
4685
|
.lg\:first\:pl-0:first-child {
|
|
4678
4686
|
padding-left: 0px;
|
|
4679
4687
|
}
|
|
4680
|
-
|
|
4681
4688
|
.lg\:first\:font-normal:first-child {
|
|
4682
4689
|
font-weight: 400;
|
|
4683
4690
|
}
|
|
4684
|
-
|
|
4685
4691
|
.lg\:last\:border-0:last-child {
|
|
4686
4692
|
border-width: 0px;
|
|
4687
4693
|
}
|
|
4688
|
-
|
|
4689
4694
|
.lg\:odd\:pr-4:nth-child(odd) {
|
|
4690
4695
|
padding-right: 1rem;
|
|
4691
4696
|
}
|
|
4692
|
-
|
|
4693
4697
|
.lg\:even\:pl-4:nth-child(even) {
|
|
4694
4698
|
padding-left: 1rem;
|
|
4695
4699
|
}
|
|
4696
|
-
|
|
4697
4700
|
.lg\:first-of-type\:pl-0:first-of-type {
|
|
4698
4701
|
padding-left: 0px;
|
|
4699
4702
|
}
|
|
4700
|
-
|
|
4701
4703
|
.lg\:hover\:underline:hover {
|
|
4702
4704
|
-webkit-text-decoration-line: underline;
|
|
4703
4705
|
text-decoration-line: underline;
|
|
4704
4706
|
}
|
|
4705
|
-
|
|
4706
4707
|
.lg\:after\:relative::after {
|
|
4707
4708
|
position: relative;
|
|
4708
4709
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<article class="mx-5 md:mx-0
|
|
1
|
+
<article class="mx-5 md:mx-0 col-span-12 grid bg-highlight-1 rounded-tl-hr rounded-br-hr{{~inline-switch this.teaserSize '["25","33","50"]' '[" md:col-span-3"," md:col-span-4"," md:col-span-6",""]'}} ">
|
|
2
2
|
<div class="">
|
|
3
3
|
<h2 class="flex items-center px-5 py-5 text-clusterTeaserHeadline">
|
|
4
4
|
{{#if this.teaserLogo}}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<div class="{{~#if this.showFirstImageOrGenreImage}}{{~inline-switch this.realTeaserSize '["100"]' '[" md:flex md:
|
|
1
|
+
<div class="flex flex-col {{~#if this.showFirstImageOrGenreImage}}{{~inline-switch this.realTeaserSize '["100"]' '[" md:flex-row md:gap-x-6"]'}}{{~/if~}}">
|
|
2
2
|
{{~#if this.showGenreImage}}
|
|
3
|
-
<div class="
|
|
4
|
-
{{~> components/base/image/responsive_image this.genreImage _type=this.teaserType _variant=this.imageVariant _addClass=this.aspectRatio
|
|
3
|
+
<div class="pb-5{{~inline-switch this.realTeaserSize '["100"]' '[" md:basis-1/2-gap-6 lg:basis-1/3-gap-6 md:ar-1-1 md:pl-5"]'}}">
|
|
4
|
+
{{~> components/base/image/responsive_image this.genreImage _type=this.teaserType _variant=this.imageVariant _addClass=this.aspectRatio ~}}
|
|
5
5
|
</div>
|
|
6
6
|
{{~/if~}}
|
|
7
7
|
{{~#if this.showFirstImage}}
|
|
8
8
|
{{~#with this.firstEntry~}}
|
|
9
9
|
{{~#if this.teaserImage}}
|
|
10
|
-
<div class="
|
|
11
|
-
{{~> components/base/image/responsive_image this.teaserImage _type=../this.teaserType _variant=../this.imageVariant _addClass=../this.aspectRatio
|
|
12
|
-
<div class="mx-5 mt-3
|
|
10
|
+
<div class="pb-3{{~inline-switch ../this.realTeaserSize '["100"]' '[" md:basis-1/2-gap-6 lg:basis-1/3-gap-6 md:pl-5"]'}}">
|
|
11
|
+
{{~> components/base/image/responsive_image this.teaserImage _type=../this.teaserType _variant=../this.imageVariant _addClass=../this.aspectRatio ~}}
|
|
12
|
+
<div class="mx-5 mt-3{{~inline-switch ../this.realTeaserSize '["100"]' '[" md:mx-0"]'}}">
|
|
13
13
|
{{> components/teaser/cluster/teaser_cluster_item _size=../this.realTeaserSize _ordered=../this.isOrdered _firstItem=true}}
|
|
14
14
|
</div>
|
|
15
15
|
</div>
|
|
@@ -17,9 +17,13 @@
|
|
|
17
17
|
{{~/with~}}
|
|
18
18
|
{{/if~}}
|
|
19
19
|
{{~#with this.clusterTeaserItems}}
|
|
20
|
-
{{~#if ../this.isOrdered}}
|
|
20
|
+
{{~#if ../this.isOrdered}}
|
|
21
|
+
<ol class="mx-5 list-none divide-y divide-white divide-solid counter-reset border-t border-white{{~#if ../this.showFirstImageOrGenreImage}}{{~inline-switch ../this.teaserSize '["100"]' '[" md:-pt-5 md:mx-0 md:pr-5 md:border-none md:basis-1/2-gap-6 lg:basis-2/3-gap-6"]'}}{{/if~}}">
|
|
22
|
+
{{else}}
|
|
23
|
+
<ul class="mx-5 divide-y divide-white divide-solid border-t border-white {{~#if ../this.showFirstImageOrGenreImage}}{{~inline-switch ../this.teaserSize '["100"]' '[" md:-pt-5 md:mx-0 md:pr-5 md:border-none md:basis-1/2-gap-6 lg:basis-2/3-gap-6"]'}}{{/if~}}">
|
|
24
|
+
{{/if}}
|
|
21
25
|
{{~#each this~}}
|
|
22
|
-
<li class="{{~#if ../../this.isOrdered}}
|
|
26
|
+
<li class="{{~#if ../../this.isOrdered}}-ordered{{/if}} py-3{{#unless ../../this.overviewLink.link}} last-of-type:pb-3{{/unless~}}{{~#if ../../this.showFirstImageOrGenreImage}}{{~inline-switch ../../this.teaserSize '["100"]' '[" md:first-of-type:pt-0"]'}}{{/if~}}">
|
|
23
27
|
{{> components/teaser/cluster/teaser_cluster_item _size=../this.realTeaserSize _ordered=../../this.isOrdered }}
|
|
24
28
|
</li>
|
|
25
29
|
{{~/each}}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
<article class="items-start relative col-span-12 flex md:flex-row gap-y-3 gap-x-4 sm:px-0{{#unless this.isEvent}}{{~inline-switch this.teaserSize '["hero","100","50"]' '[" flex-col"," px-5 md:flex-row"," md:col-span-6 px-5 md:flex-row"]'~}}{{else}} items-start flex-col{{/unless}}"
|
|
1
|
+
<article class="items-start relative col-span-12 flex md:flex-row gap-y-3 gap-x-4 md:gap-x-6 sm:px-0{{#unless this.isEvent}}{{~inline-switch this.teaserSize '["hero","100","50"]' '[" flex-col"," px-5 md:flex-row"," md:col-span-6 px-5 md:flex-row"]'~}}{{else}} items-start flex-col{{/unless}}"
|
|
2
2
|
x-data="{ avStart: false }"
|
|
3
3
|
{{#if this.isMobile1to1}}
|
|
4
4
|
:class="avStart ? 'flex-col' : 'flex-row'"
|
|
5
5
|
{{/if}}
|
|
6
6
|
>
|
|
7
7
|
{{#if this.teaserImage}}
|
|
8
|
-
<figure class="relative {{~inline-switch this.realTeaserSize '["hero","100","50"]' '[" basis-full w-full md:basis-2/3
|
|
8
|
+
<figure class="relative {{~inline-switch this.realTeaserSize '["hero","100","50"]' '[" basis-full w-full md:basis-2/3-gap-6 ar-16-9"," ar-1-1 md:ar-16-9 basis-2/5 w-2/5 md:basis-1/3-gap-6"," ar-1-1 md:ar-16-9 basis-2/5 w-2/5 md:basis-1/2-gap-6"]'~}}"
|
|
9
9
|
{{#if this.isMobile1to1}}
|
|
10
10
|
:class="{'ar-16-9 basis-full w-full' : avStart, 'ar-1-1 basis-2/5 w-2/5': !avStart}"
|
|
11
11
|
{{/if}}
|
|
12
12
|
>
|
|
13
13
|
{{> components/teaser/components/teaser_lead _isMobile1to1=this.isMobile1to1 _teaserSize=this.realTeaserSize _teaserType=this.teaserType _aspectRatio=(inline-switch this.realTeaserSize '["hero"]' '["ar-16-9","ar-1-1 md:ar-16-9"]') }}
|
|
14
14
|
</figure>
|
|
15
|
-
{{> components/teaser/components/teaser_body _outerCssClasses=(inline-switch this.realTeaserSize '["hero","100","50"]' '["basis-full w-full md:basis-1/3
|
|
15
|
+
{{> components/teaser/components/teaser_body _outerCssClasses=(inline-switch this.realTeaserSize '["hero","100","50"]' '["basis-full w-full md:basis-1/3-gap-6"," basis-3/5 w-3/5 md:basis-2/3-gap-6"," basis-3/5 w-3/5 md:basis-1/2-gap-6"]') }}
|
|
16
16
|
{{else}}
|
|
17
17
|
{{> components/teaser/components/teaser_body _outerCssClasses="basis-full" }}
|
|
18
18
|
{{/if}}
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"repository": "https://github.com/szuelch/hr-design-system-handlebars",
|
|
9
|
-
"version": "0.122.
|
|
9
|
+
"version": "0.122.2",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "start-storybook -p 6006 public",
|
|
@@ -105,4 +105,64 @@
|
|
|
105
105
|
--color-text-shadow: theme('colors.black.DEFAULT');
|
|
106
106
|
text-shadow: 1px 1px 2px var(--color-text-shadow, theme('colors.black.DEFAULT'));
|
|
107
107
|
}
|
|
108
|
+
|
|
109
|
+
/*! *********************************************************/
|
|
110
|
+
/*! Prozentuale Breite bei Flexbox bei gleichzeitigem */
|
|
111
|
+
/*! nutzen von column-gap funktioniert nicht richtig. */
|
|
112
|
+
/*! Deshalb hier eine übergangslösung dafür. */
|
|
113
|
+
/*! Langfristig sollten die Teaser auf Grid umgebaut werden */
|
|
114
|
+
/*! *********************************************************/
|
|
115
|
+
|
|
116
|
+
.basis-1\/3-gap-4 {
|
|
117
|
+
--gap: 1rem;
|
|
118
|
+
width:calc((100% - (2 * var(--gap))) / 3 );
|
|
119
|
+
flex-basis:calc((100% - (2 * var(--gap))) / 3 )
|
|
120
|
+
}
|
|
121
|
+
.basis-2\/3-gap-4 {
|
|
122
|
+
--gap: 1rem;
|
|
123
|
+
width:calc((((100% - (2 * var(--gap))) / 3 ) * 2) + var(--gap));
|
|
124
|
+
flex-basis:calc((((100% - (2 * var(--gap))) / 3 ) * 2) + var(--gap))
|
|
125
|
+
}
|
|
126
|
+
.basis-1\/2-gap-4 {
|
|
127
|
+
--gap: 1rem;
|
|
128
|
+
width:calc((100% - var(--gap)) / 2 ) ;
|
|
129
|
+
flex-basis:calc((100% - var(--gap)) / 2 )
|
|
130
|
+
}
|
|
131
|
+
.basis-1\/4-gap-4 {
|
|
132
|
+
--gap: 1rem;
|
|
133
|
+
width:calc((100% - (4 * var(--gap))) / 4 ) ;
|
|
134
|
+
flex-basis:calc((100% - (4 * var(--gap))) / 4 )
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.basis-3\/4-gap-4 {
|
|
138
|
+
--gap: 1rem;
|
|
139
|
+
width:calc((((100% - (4 * var(--gap))) / 4 ) * 3) + var(--gap));
|
|
140
|
+
flex-basis:calc((((100% - (4 * var(--gap))) / 4 ) * 3) + var(--gap))
|
|
141
|
+
}
|
|
142
|
+
.basis-1\/3-gap-6 {
|
|
143
|
+
--gap: 1.5rem;
|
|
144
|
+
width:calc((100% - (2 * var(--gap))) / 3 ) ;
|
|
145
|
+
flex-basis:calc((100% - (2 * var(--gap))) / 3 )
|
|
146
|
+
}
|
|
147
|
+
.basis-2\/3-gap-6 {
|
|
148
|
+
--gap: 1.5rem;
|
|
149
|
+
width:calc((((100% - (2 * var(--gap))) / 3 ) * 2) + var(--gap));
|
|
150
|
+
flex-basis:calc((((100% - (2 * var(--gap))) / 3 ) * 2) + var(--gap))
|
|
151
|
+
}
|
|
152
|
+
.basis-1\/2-gap-6 {
|
|
153
|
+
--gap: 1.5rem;
|
|
154
|
+
width:calc((100% - var(--gap)) / 2 );
|
|
155
|
+
flex-basis:calc((100% - var(--gap)) / 2 )
|
|
156
|
+
}
|
|
157
|
+
.basis-1\/4-gap-6 {
|
|
158
|
+
--gap: 1.5rem;
|
|
159
|
+
width:calc((100% - (4 * var(--gap))) / 4 );
|
|
160
|
+
flex-basis:calc((100% - (4 * var(--gap))) / 4 )
|
|
161
|
+
}
|
|
162
|
+
.basis-3\/4-gap-6 {
|
|
163
|
+
--gap: 1.5rem;
|
|
164
|
+
width:calc((((100% - (4 * var(--gap))) / 4 ) * 3) + var(--gap));
|
|
165
|
+
flex-basis:calc((((100% - (4 * var(--gap))) / 4 ) * 3) + var(--gap))
|
|
166
|
+
}
|
|
167
|
+
|
|
108
168
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<article class="mx-5 md:mx-0
|
|
1
|
+
<article class="mx-5 md:mx-0 col-span-12 grid bg-highlight-1 rounded-tl-hr rounded-br-hr{{~inline-switch this.teaserSize '["25","33","50"]' '[" md:col-span-3"," md:col-span-4"," md:col-span-6",""]'}} ">
|
|
2
2
|
<div class="">
|
|
3
3
|
<h2 class="flex items-center px-5 py-5 text-clusterTeaserHeadline">
|
|
4
4
|
{{#if this.teaserLogo}}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<div class="{{~#if this.showFirstImageOrGenreImage}}{{~inline-switch this.realTeaserSize '["100"]' '[" md:flex md:
|
|
1
|
+
<div class="flex flex-col {{~#if this.showFirstImageOrGenreImage}}{{~inline-switch this.realTeaserSize '["100"]' '[" md:flex-row md:gap-x-6"]'}}{{~/if~}}">
|
|
2
2
|
{{~#if this.showGenreImage}}
|
|
3
|
-
<div class="
|
|
4
|
-
{{~> components/base/image/responsive_image this.genreImage _type=this.teaserType _variant=this.imageVariant _addClass=this.aspectRatio
|
|
3
|
+
<div class="pb-5{{~inline-switch this.realTeaserSize '["100"]' '[" md:basis-1/2-gap-6 lg:basis-1/3-gap-6 md:ar-1-1 md:pl-5"]'}}">
|
|
4
|
+
{{~> components/base/image/responsive_image this.genreImage _type=this.teaserType _variant=this.imageVariant _addClass=this.aspectRatio ~}}
|
|
5
5
|
</div>
|
|
6
6
|
{{~/if~}}
|
|
7
7
|
{{~#if this.showFirstImage}}
|
|
8
8
|
{{~#with this.firstEntry~}}
|
|
9
9
|
{{~#if this.teaserImage}}
|
|
10
|
-
<div class="
|
|
11
|
-
{{~> components/base/image/responsive_image this.teaserImage _type=../this.teaserType _variant=../this.imageVariant _addClass=../this.aspectRatio
|
|
12
|
-
<div class="mx-5 mt-3
|
|
10
|
+
<div class="pb-3{{~inline-switch ../this.realTeaserSize '["100"]' '[" md:basis-1/2-gap-6 lg:basis-1/3-gap-6 md:pl-5"]'}}">
|
|
11
|
+
{{~> components/base/image/responsive_image this.teaserImage _type=../this.teaserType _variant=../this.imageVariant _addClass=../this.aspectRatio ~}}
|
|
12
|
+
<div class="mx-5 mt-3{{~inline-switch ../this.realTeaserSize '["100"]' '[" md:mx-0"]'}}">
|
|
13
13
|
{{> components/teaser/cluster/teaser_cluster_item _size=../this.realTeaserSize _ordered=../this.isOrdered _firstItem=true}}
|
|
14
14
|
</div>
|
|
15
15
|
</div>
|
|
@@ -17,9 +17,13 @@
|
|
|
17
17
|
{{~/with~}}
|
|
18
18
|
{{/if~}}
|
|
19
19
|
{{~#with this.clusterTeaserItems}}
|
|
20
|
-
{{~#if ../this.isOrdered}}
|
|
20
|
+
{{~#if ../this.isOrdered}}
|
|
21
|
+
<ol class="mx-5 list-none divide-y divide-white divide-solid counter-reset border-t border-white{{~#if ../this.showFirstImageOrGenreImage}}{{~inline-switch ../this.teaserSize '["100"]' '[" md:-pt-5 md:mx-0 md:pr-5 md:border-none md:basis-1/2-gap-6 lg:basis-2/3-gap-6"]'}}{{/if~}}">
|
|
22
|
+
{{else}}
|
|
23
|
+
<ul class="mx-5 divide-y divide-white divide-solid border-t border-white {{~#if ../this.showFirstImageOrGenreImage}}{{~inline-switch ../this.teaserSize '["100"]' '[" md:-pt-5 md:mx-0 md:pr-5 md:border-none md:basis-1/2-gap-6 lg:basis-2/3-gap-6"]'}}{{/if~}}">
|
|
24
|
+
{{/if}}
|
|
21
25
|
{{~#each this~}}
|
|
22
|
-
<li class="{{~#if ../../this.isOrdered}}
|
|
26
|
+
<li class="{{~#if ../../this.isOrdered}}-ordered{{/if}} py-3{{#unless ../../this.overviewLink.link}} last-of-type:pb-3{{/unless~}}{{~#if ../../this.showFirstImageOrGenreImage}}{{~inline-switch ../../this.teaserSize '["100"]' '[" md:first-of-type:pt-0"]'}}{{/if~}}">
|
|
23
27
|
{{> components/teaser/cluster/teaser_cluster_item _size=../this.realTeaserSize _ordered=../../this.isOrdered }}
|
|
24
28
|
</li>
|
|
25
29
|
{{~/each}}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
<article class="items-start relative col-span-12 flex md:flex-row gap-y-3 gap-x-4 sm:px-0{{#unless this.isEvent}}{{~inline-switch this.teaserSize '["hero","100","50"]' '[" flex-col"," px-5 md:flex-row"," md:col-span-6 px-5 md:flex-row"]'~}}{{else}} items-start flex-col{{/unless}}"
|
|
1
|
+
<article class="items-start relative col-span-12 flex md:flex-row gap-y-3 gap-x-4 md:gap-x-6 sm:px-0{{#unless this.isEvent}}{{~inline-switch this.teaserSize '["hero","100","50"]' '[" flex-col"," px-5 md:flex-row"," md:col-span-6 px-5 md:flex-row"]'~}}{{else}} items-start flex-col{{/unless}}"
|
|
2
2
|
x-data="{ avStart: false }"
|
|
3
3
|
{{#if this.isMobile1to1}}
|
|
4
4
|
:class="avStart ? 'flex-col' : 'flex-row'"
|
|
5
5
|
{{/if}}
|
|
6
6
|
>
|
|
7
7
|
{{#if this.teaserImage}}
|
|
8
|
-
<figure class="relative {{~inline-switch this.realTeaserSize '["hero","100","50"]' '[" basis-full w-full md:basis-2/3
|
|
8
|
+
<figure class="relative {{~inline-switch this.realTeaserSize '["hero","100","50"]' '[" basis-full w-full md:basis-2/3-gap-6 ar-16-9"," ar-1-1 md:ar-16-9 basis-2/5 w-2/5 md:basis-1/3-gap-6"," ar-1-1 md:ar-16-9 basis-2/5 w-2/5 md:basis-1/2-gap-6"]'~}}"
|
|
9
9
|
{{#if this.isMobile1to1}}
|
|
10
10
|
:class="{'ar-16-9 basis-full w-full' : avStart, 'ar-1-1 basis-2/5 w-2/5': !avStart}"
|
|
11
11
|
{{/if}}
|
|
12
12
|
>
|
|
13
13
|
{{> components/teaser/components/teaser_lead _isMobile1to1=this.isMobile1to1 _teaserSize=this.realTeaserSize _teaserType=this.teaserType _aspectRatio=(inline-switch this.realTeaserSize '["hero"]' '["ar-16-9","ar-1-1 md:ar-16-9"]') }}
|
|
14
14
|
</figure>
|
|
15
|
-
{{> components/teaser/components/teaser_body _outerCssClasses=(inline-switch this.realTeaserSize '["hero","100","50"]' '["basis-full w-full md:basis-1/3
|
|
15
|
+
{{> components/teaser/components/teaser_body _outerCssClasses=(inline-switch this.realTeaserSize '["hero","100","50"]' '["basis-full w-full md:basis-1/3-gap-6"," basis-3/5 w-3/5 md:basis-2/3-gap-6"," basis-3/5 w-3/5 md:basis-1/2-gap-6"]') }}
|
|
16
16
|
{{else}}
|
|
17
17
|
{{> components/teaser/components/teaser_body _outerCssClasses="basis-full" }}
|
|
18
18
|
{{/if}}
|