carte fixe
This commit is contained in:
parent
df628691bc
commit
f60cb1b088
File diff suppressed because one or more lines are too long
|
@ -209,6 +209,10 @@ h2 {
|
|||
}
|
||||
}
|
||||
|
||||
.layout--threecol-25-50-25 {
|
||||
width: 100vw;
|
||||
}
|
||||
|
||||
/* Eric Meyer's Reset CSS v2.0 - http://cssreset.com */
|
||||
ul {
|
||||
list-style-type: none;
|
||||
|
@ -2839,15 +2843,17 @@ header #block-quartiers-de-demain-logoquartiersdedemain .field_field_logo .qdd-h
|
|||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.node-type-site .layout--threecol-25-50-25 .layout__region--first .block-region-first {
|
||||
width: 100%;
|
||||
}
|
||||
.node-type-site .layout--threecol-25-50-25 .layout__region--first .block-region-first .views-element-container {
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
.node-type-site .layout--threecol-25-50-25 .layout__region--first div {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
.node-type-site .layout--threecol-25-50-25 .layout__region--first div #sites-map-container {
|
||||
position: fixed;
|
||||
width: auto;
|
||||
left: 1.3rem;
|
||||
}
|
||||
@media (max-width: 500px) {
|
||||
.node-type-site .layout--threecol-25-50-25 .layout__region--first div:has(.field_field_documents) {
|
||||
margin-top: 1rem;
|
||||
|
|
|
@ -444,6 +444,26 @@
|
|||
});
|
||||
|
||||
|
||||
///////////// carte sticky node site ///////////////////
|
||||
// window.addEventListener('scroll', function() {
|
||||
// const mapContainer = document.getElementById('sites-map-container');
|
||||
// const header = document.querySelector('header'); // Sélectionnez votre header
|
||||
|
||||
// const headerHeight = header.offsetHeight; // Calculer la hauteur du header
|
||||
// const scrollPosition = window.scrollY; // Obtenir la position actuelle du scroll
|
||||
// console.log('Hauteur dynamique du header:', headerHeight);
|
||||
|
||||
// if (scrollPosition >= headerHeight - 350 ) {
|
||||
// mapContainer.classList.add('fixed');
|
||||
// mapContainer.style.position = 'fixed';
|
||||
// mapContainer.style.top = headerHeight + 350 ; // Fixé en haut une fois passé le header
|
||||
// } else {
|
||||
// mapContainer.classList.remove('fixed');
|
||||
// mapContainer.style.position = 'static'; // Retour à la position initiale
|
||||
// }
|
||||
// });
|
||||
|
||||
|
||||
|
||||
|
||||
})(jQuery, window);
|
||||
|
|
|
@ -51,3 +51,6 @@ $width-menu-slidedown : 550px;
|
|||
}
|
||||
}
|
||||
|
||||
.layout--threecol-25-50-25{
|
||||
width: 100vw;
|
||||
}
|
|
@ -18,8 +18,9 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
.block-region-first{
|
||||
width: 100%;
|
||||
|
||||
.views-element-container{
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
@ -27,6 +28,15 @@
|
|||
div{
|
||||
// width: fit-content;
|
||||
margin-bottom: 0.5rem;
|
||||
// #sites-map-container.fixed{
|
||||
// width: auto;
|
||||
// left: 1.3rem;
|
||||
// }
|
||||
#sites-map-container{
|
||||
position: fixed;
|
||||
width: auto;
|
||||
left: 1.3rem;
|
||||
}
|
||||
}
|
||||
div:has(.field_field_documents){
|
||||
@media(max-width: 500px){
|
||||
|
|
Loading…
Reference in New Issue