investigation responsive
All checks were successful
Deploy / Deploy to Production (push) Successful in 14s

This commit is contained in:
Julie Blanc 2026-02-23 17:34:16 +01:00
parent f24b296ff7
commit bdb60646d0
14 changed files with 562 additions and 133 deletions

View file

@ -20,6 +20,14 @@
white-space: nowrap;
text-transform: uppercase;
@media #{$small} {
height: calc(var(--h-block)*0.75);
font-size: var(--fs-xsmall);
padding: 0 1ch;
padding-top: 3px;
}
}
@ -29,7 +37,7 @@ main .page__header {
margin-bottom: calc(var(--spacing) * 2);
@media #{$small} {
margin-top: calc(var(--spacing) * 2);
margin-top: calc(var(--spacing) * 1);
}
@ -42,18 +50,21 @@ main .page__header {
line-height: var(--leading-title);
margin-top: calc(var(--spacing) * 1);
margin-bottom: calc(var(--spacing) * 1.5);
@media #{$small-up} {
text-wrap: balance;
}
@media #{$small} {
margin-bottom: calc(var(--spacing) * 1);
}
}
.description {
font-size: var(--fs-text);
margin-bottom: calc(var(--spacing) * 3);
margin-bottom: calc(var(--spacing) * 3);
}
// .description-medium{
// font-size: var(--fs-medium);
// max-width: 58ch;
// line-height: 1.1;
// }
}

View file

@ -1,5 +1,8 @@
#site-footer {
background-color: var(--dark);
padding: calc(var(--spacing)*2) var(--padding-body);
z-index: 500;

View file

@ -1,5 +1,7 @@
#site-header {
z-index: var(--z-header);
--gap: 3ch;
@ -42,10 +44,12 @@
svg{
width: 100px;
@media #{$small}{
width: 80px;
}
}
@media #{$small}{
svg{ width: 80px; }
top: -4px;
}
}
@ -59,15 +63,39 @@
justify-content: center;
gap: var(--gap);
list-style-type: none;
li{
white-space: nowrap;
}
}
}
#nav-highlight ul{
font-weight: 500;
text-transform: uppercase;
@media #{$medium}{
font-size: var(--fs-small);
}
@media screen and (max-width: 890px){
justify-content: flex-end;
padding-right: 2ch;
li{ display: none; }
li.support{ display: block; }
}
}
#nav-investigation{
position: absolute;
@ -80,6 +108,41 @@
transition: top 0.3s ease;
pointer-events: none;
min-width: 0;
.title{
text-transform: uppercase;
font-size: var(--fs-small);
font-weight: 500;
max-width: 100%;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding-left: 2ch;
padding-right: 2ch;
text-align: center;
color: var(--color-txt-light);
}
@media #{$medium}{
ul{
font-size: var(--fs-small);
padding-left: 6ch;
padding-right: 6ch;
}
}
li{
color: var(--color-txt-light);
transition: color 0.3s ease;
@ -95,22 +158,13 @@
}
}
}
}
&.has-nav-investigation{
#nav-highlight{
display: none;
}
#nav-investigation{
position: relative;
opacity: 1;
transform: translateY(0);
top: 0px;
pointer-events: auto;
}
}
@ -162,10 +216,73 @@
@media #{$medium}{
#nav-highlight{
// Animation, change header
#site-header.has-nav-investigation{
#nav-highlight{
display: none;
}
#nav-investigation{
position: relative;
opacity: 1;
transform: translateY(0);
top: 0px;
pointer-events: auto;
}
}
@media #{$small-up}{
#site-header #nav-investigation .title{
display: none;
}
}
@media #{$small}{
#site-header #nav-highlight ul{
display: none;
}
#site-header #nav-investigation .title{
display: none;
}
#site-header.has-nav-investigation{
#nav-investigation{
ul{ display: none; }
.title{ display: block; }
}
}
}
// @media #{$x-small}{
// #site-header.has-nav-investigation{
// #nav-investigation{
// .title{ display: none; }
// }
// }
// }
// @media #{$x-small}{
// [data-template="investigation"] #site-header{
// #lang-toggle{ display: none; }
// #theme-toggle{ padding-right: 1ch; }
// #nav-investigation .title{
// font-size: var(--fs-xsmall);
// }
// }
// }