vm css deroulement

This commit is contained in:
2024-07-12 20:28:22 +02:00
parent 2bd90ffdac
commit 4c1ac30bdf
4 changed files with 17 additions and 5 deletions

View File

@@ -315,9 +315,9 @@
const offsetmobile = currentSlide * -130 / visibleSlides;
if (window.innerWidth <= 600){
document.querySelector('.__timeline-content').style.transform = `translateX(${offsetmobile}%)`;
} else {
document.querySelector('.__timeline-content').style.transform = `translateX(${offset}%)`;
}
} else {
document.querySelector('.__timeline-content').style.transform = `translateX(${offset}%)`;
}
// Enable/disable arrows based on the current slide

View File

@@ -107,7 +107,9 @@
padding-right: 2rem;
@media(max-width:550px){
padding-left: 0rem;
width:240px;
width: 240px;
align-items: end;
height: 200px;
}
.date{
width: fit-content;
@@ -190,6 +192,9 @@
line-height: 1.1;
// width: fit-content;
min-width: 65%;
@media(max-width:1090px){
height: 200px;
}
.field_field_titre{
font-size: 0.6rem;
font-weight: 800;