hero video
All checks were successful
Deploy / Deploy to Production (push) Successful in 10s

This commit is contained in:
Julie Blanc 2026-01-08 16:09:58 +01:00
parent 6e51087b70
commit 239f018a37
7 changed files with 198 additions and 11 deletions

View file

@ -1471,7 +1471,7 @@ body main {
}
[data-template=investigation-summary] main #hero figure img {
width: 100%;
aspect-ratio: 16/9;
aspect-ratio: 2/1;
-o-object-fit: cover;
object-fit: cover;
}
@ -1482,7 +1482,7 @@ body main {
--swiper-navigation-sides-offset: 32px;
--swiper-navigation-size: 32px;
opacity: 0.8;
top: calc(28.125vw - var(--swiper-navigation-size) * 0.5);
top: calc(450vw - var(--swiper-navigation-size) * 0.5);
margin-top: 0;
}
@media screen and (max-width: 560px) {
@ -1510,6 +1510,60 @@ body main {
background: var(--color-txt);
opacity: 0.8;
}
[data-template=investigation-summary] main #hero .player-container {
width: 100%;
position: relative;
aspect-ratio: 2/1;
}
[data-template=investigation-summary] main #hero .player-container .extract, [data-template=investigation-summary] main #hero .player-container video {
width: 100%;
height: 100%;
-o-object-fit: cover;
object-fit: cover;
position: relative;
}
[data-template=investigation-summary] main #hero .player-container .video-full {
width: 100%;
height: 100%;
display: none;
}
[data-template=investigation-summary] main #hero .player-container .video-full iframe {
width: 100%;
height: 100%;
}
[data-template=investigation-summary] main #hero .player-container #hero-play-video {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
text-transform: uppercase;
display: flex;
align-items: center;
justify-content: center;
}
[data-template=investigation-summary] main #hero .player-container #hero-play-video .btn--bold {
display: flex;
align-items: center;
justify-content: center;
gap: 1ch;
padding: 0 1ch;
opacity: 0.8;
}
[data-template=investigation-summary] main #hero .player-container #hero-play-video .btn--bold:hover {
opacity: 1;
}
[data-template=investigation-summary] main #hero .player-container #hero-play-video .text {
color: black;
line-height: 1;
padding-top: 4px;
}
[data-template=investigation-summary] main #hero .player-container #hero-play-video svg {
width: 18px;
height: 18px;
fill: black;
opacity: 0.8;
}
[data-template=investigation-summary] main #nav--page ul {
list-style: none;
}
@ -1650,6 +1704,7 @@ body main {
margin-bottom: calc((100dvh - var(--header-h)) * -1);
padding: var(--padding-body);
padding-left: 0px;
padding-bottom: calc(var(--padding-body) * 2);
position: sticky;
top: var(--header-h);
width: var(--banner-medium);
@ -1693,7 +1748,7 @@ body main {
}
.modal--share {
position: absolute;
bottom: calc(var(--padding-body) + var(--h-block) + var(--spacing) * 0.25);
bottom: calc(var(--padding-body) * 2 + var(--h-block) + var(--spacing) * 0.25);
width: calc(100% - var(--padding-body));
}
}