header vm js

This commit is contained in:
2024-07-10 17:01:16 +02:00
parent f72a96cdd8
commit 1c180411e0
9 changed files with 279 additions and 35 deletions

File diff suppressed because one or more lines are too long

View File

@@ -243,7 +243,7 @@ header {
}
@media (max-width: 810px) {
header {
height: 170px;
height: 100vh;
}
}
header .contextual-region {
@@ -378,6 +378,7 @@ header .header_nav_container #block-quartiers-de-demain-entete ul {
@media (max-width: 810px) {
header .header_nav_container #block-quartiers-de-demain-entete ul {
top: 27.5px;
padding-left: 15%;
}
}
@media (max-width: 1090px) {
@@ -421,38 +422,79 @@ header .header:hover + .header_nav_container {
}
.shrink {
height: 260px !important;
height: 260px;
}
@media (max-width: 810px) {
.shrink {
height: 170px;
}
}
/* Taille définitive du header après l'animation */
.header--collapsed {
height: 320px; /* Ou la hauteur que vous souhaitez pour votre header */
width: 45%;
transform-origin: bottom right; /* Origine de la transformation à l'angle bas droit */
transform-origin: bottom right;
transition: all 1s ease-in-out;
}
@media (max-width: 810px) {
.header--collapsed {
width: 100%;
height: 170px;
}
}
.header--collapsed .header_left_container {
flex: 0 0 60%;
transform-origin: bottom right; /* Origine de la transformation à l'angle bas droit */
transform-origin: bottom right;
}
@media (max-width: 810px) {
.header--collapsed .header_left_container {
flex: 1 0 100%;
}
}
.header--collapsed .header_nav_container {
flex: 0 0 30%;
transform-origin: bottom right; /* Origine de la transformation à l'angle bas droit */
transform-origin: bottom right;
}
@media (max-width: 810px) {
.header--collapsed .header_nav_container {
flex: 1 0 100%;
position: relative;
left: -100%;
}
}
.header--collapsed-already {
height: 320px; /* Ou la hauteur que vous souhaitez pour votre header */
width: 45%;
transform-origin: bottom right; /* Origine de la transformation à l'angle bas droit */
transform-origin: bottom right;
transition: all 0s ease-in-out;
}
@media (max-width: 810px) {
.header--collapsed-already {
width: 100%;
height: 170px;
}
}
.header--collapsed-already .header_left_container {
flex: 0 0 60%;
transform-origin: bottom right; /* Origine de la transformation à l'angle bas droit */
transform-origin: bottom right;
}
@media (max-width: 810px) {
.header--collapsed-already .header_left_container {
flex: 1 0 100%;
}
}
.header--collapsed-already .header_nav_container {
flex: 0 0 30%;
transform-origin: bottom right; /* Origine de la transformation à l'angle bas droit */
transform-origin: bottom right;
}
@media (max-width: 810px) {
.header--collapsed-already .header_nav_container {
flex: 1 0 100%;
position: relative;
left: -100%;
}
}
footer {
@@ -800,7 +842,7 @@ footer {
}
@media (max-width: 810px) {
.slick-prev {
left: 29%;
left: 35%;
}
}
[dir=rtl] .slick-prev {
@@ -809,9 +851,13 @@ footer {
}
.slick-prev:before {
content: url("../img/prev.svg ");
display: block;
transform: scale(0.8);
}
[dir=rtl] .slick-prev:before {
content: url("../img/next.svg ");
display: block;
transform: scale(0.8);
}
.slick-next {
@@ -828,9 +874,13 @@ footer {
}
.slick-next:before {
content: url("../img/next.svg ");
display: block;
transform: scale(0.8);
}
[dir=rtl] .slick-next:before {
content: url("../img/prev.svg ");
display: block;
transform: scale(0.8);
}
/* Dots */
@@ -1199,7 +1249,7 @@ footer {
display: flex;
flex-direction: column;
align-items: center;
padding-bottom: 3rem;
padding-bottom: 6rem;
}
#actus-caroussel h2 {
width: fit-content;
@@ -1222,6 +1272,7 @@ footer {
@media (max-width: 550px) {
#actus-caroussel .content-actus .views-row {
width: 296px !important;
padding-top: 3rem;
}
}
#actus-caroussel .content-actus .views-row article.node-type-actualite {
@@ -1328,6 +1379,11 @@ footer {
position: relative;
top: 60px;
}
@media (max-width: 550px) {
#actus-caroussel .content-actus .views-row:nth-child(odd) {
top: 0;
}
}
header #block-quartiers-de-demain-logoquartiersdedemain .field_field_logo .qdd-header.animated {
transform: scale(2);
@@ -1767,6 +1823,7 @@ header #block-quartiers-de-demain-logoquartiersdedemain .field_field_logo .qdd-h
#home article.node-type-static #paragraph-id--7 .field_field_texte .colone-picto {
grid-template-rows: repeat(10 auto);
grid-template-columns: repeat(2 1fr);
padding-left: 0;
}
}
#home article.node-type-static #paragraph-id--7 .field_field_texte .colone-picto h5 {
@@ -1963,19 +2020,19 @@ header #block-quartiers-de-demain-logoquartiersdedemain .field_field_logo .qdd-h
}
@media (max-width: 500px) {
#consultation .layout-content .content_container .node-type-static #paragraph-id--10 .colone-picto p:not(:last-of-type) {
flex: 1 25%;
flex: 0 40%;
}
}
#consultation .layout-content .content_container .node-type-static #paragraph-id--10 .colone-picto p:not(:last-of-type)::before {
content: "";
display: block;
border-left: solid 1px rgb(7, 50, 194);
height: 20%;
height: 30px;
margin-bottom: 0.5rem;
}
@media (max-width: 500px) {
#consultation .layout-content .content_container .node-type-static #paragraph-id--10 .colone-picto p:not(:last-of-type)::before {
height: 15%;
height: 30px;
}
}
#consultation .layout-content .content_container .node-type-static #paragraph-id--10 .colone-picto p:last-of-type {