home responsive
All checks were successful
Deploy / Deploy to Production (push) Successful in 11s

This commit is contained in:
Julie Blanc 2026-02-07 16:28:59 +01:00
parent da79013711
commit 563e9b9fd4
6 changed files with 209 additions and 161 deletions

View file

@ -6,8 +6,7 @@
--fs-small: 16px;
--fs-normal: 20px;
--fs-medium: 24px;
--fs-big: 30px;
--fs-xbig: 38px;
--fs-big: 45px;
--fs-button-bold: 22px;
--max-w-content: 640px;
--max-w-cards: 940px;
@ -58,12 +57,11 @@
@media screen and (max-width: 768px) {
:root {
--fs-xsmall: 16px;
--fs-xsmall: 13px;
--fs-small: 16px;
--fs-normal: 20px;
--fs-medium: 24px;
--fs-big: 28px;
--fs-xbig: 32px;
--fs-big: 34px;
--header-h: 60px;
--padding-body: 16px;
}
@ -416,6 +414,48 @@ button:disabled {
fill: var(--grey-100);
}
.btn--home {
background-color: var(--color-bg);
display: block;
height: calc(var(--h-block) * 1);
border: 1px solid currentColor;
border-radius: var(--radius-btn);
font-size: var(--fs-xsmall);
font-weight: 500;
text-transform: uppercase;
line-height: 1;
overflow: hidden;
white-space: nowrap;
color: var(--color-accent);
transition: 0.3s ease-in;
}
.btn--home svg {
width: 14px;
height: 14px;
position: relative;
top: -1px;
fill: var(--color-accent);
transition: fill 0.3s ease-in;
}
.btn--home a {
display: flex;
align-items: center;
justify-content: center;
gap: 1ch;
width: 100%;
height: 100%;
padding: 0 2ch;
padding-top: 4px;
}
.btn--home:hover {
border-color: var(--color-accent);
background-color: var(--color-accent);
color: var(--color-bg);
}
.btn--home:hover svg {
fill: var(--color-bg);
}
.btn--toc svg {
width: 15px;
height: 15px;
@ -2584,34 +2624,26 @@ main .page__header .description-medium {
}
}
.section--home .btn--bold-inline {
text-transform: none;
margin-top: calc(var(--spacing) * 1.5);
}
.section--home .btn--bold-inline svg {
width: 12px;
height: 12px;
top: 0px;
}
.section--home .title-section {
font-size: var(--fs-medium);
font-weight: normal;
text-transform: uppercase;
font-size: var(--fs-big);
margin-bottom: calc(var(--spacing) * 1);
}
.section--home .description-section {
max-width: 42ch;
font-size: var(--fs-medium);
font-size: var(--fs-normal);
line-height: 1.1;
}
.section--home .btn--home {
margin-top: calc(var(--spacing) * 2);
}
@media screen and (min-width: 1080px) {
.section--home {
border-bottom: var(--border-light);
}
.section--home .section--inner {
max-width: 1280px;
margin: calc(var(--spacing) * 3) auto;
margin: calc(var(--spacing) * 4) auto;
display: grid;
--gap: calc(var(--padding-body)*2);
grid-template-columns: 1fr 640px;
@ -2628,56 +2660,6 @@ main .page__header .description-medium {
height: 100%;
}
}
@media screen and (max-width: 1080px) {
.section--home#home__investigations, .section--home#home__hero {
border-bottom: var(--border-light);
}
.section--home .section--inner {
margin-top: calc(var(--spacing) * 3);
margin-bottom: calc(var(--spacing) * 4);
}
.section--home .col-left {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
justify-content: space-between;
margin-bottom: calc(var(--spacing) * 2);
}
.section--home .col-left .title-section {
width: 100%;
}
}
@media screen and (max-width: 560px) {
.section--home .section--inner {
margin-top: calc(var(--spacing) * 2);
margin-bottom: calc(var(--spacing) * 4);
margin-bottom: 0px;
}
.section--home .col-left {
margin-bottom: calc(var(--spacing) * 1.5);
}
.section--home .title-section {
margin-bottom: calc(var(--spacing) * 0.25);
}
.section--home .description-section {
max-width: 42ch;
font-size: var(--fs-normal);
}
.section--home .btn--bold-inline {
color: var(--color-txt-light);
border-color: var(--color-txt-light);
height: calc(var(--h-block) * 0.75);
margin-top: calc(var(--spacing) * 0.75);
}
.section--home .btn--bold-inline a {
padding: 0 1ch;
padding-top: 2px;
}
.section--home .btn--bold-inline svg {
fill: var(--color-txt-light);
}
}
#home__investigations .home-investigations-slider {
max-width: 500px;
height: auto;
@ -2705,15 +2687,10 @@ main .page__header .description-medium {
display: block;
}
#home__hero .baseline {
font-size: 45px;
font-size: var(--fs-big);
line-height: 1.1;
max-width: 32ch;
}
@media screen and (max-width: 560px) {
#home__hero .baseline {
font-size: 34px;
}
}
#home__hero button {
margin-top: calc(var(--spacing) * 1);
}
@ -2722,6 +2699,28 @@ main .page__header .description-medium {
margin-bottom: calc(var(--spacing) * 0.5);
}
@media screen and (max-width: 1080px) {
.section--home:not(#home-hero) {
border-bottom: var(--border);
padding-bottom: calc(var(--spacing) * 4);
margin-bottom: calc(var(--spacing) * 4);
}
.section--home:not(#home-hero) .col-left {
margin-bottom: calc(var(--spacing) * 3);
}
#home__hero {
height: calc(100vh - var(--header-h));
margin: 0 !important;
border-bottom: none !important;
display: flex;
flex-direction: column;
justify-content: flex-end;
padding-bottom: 25vh !important;
}
#home__investigations {
margin-top: 0px;
}
}
[data-template=investigation-summary] main {
position: relative;
}