carroussel thumbnial vertical manque changement visuel fleche thumbnail

This commit is contained in:
2025-06-06 11:41:05 +02:00
parent 8933199a16
commit 63d8ef1e8a
5 changed files with 144 additions and 127 deletions
@@ -17,89 +17,101 @@
order: 7;
width: 80%;
.carousel {
display: grid;
// flex-direction: row;
grid-template-columns: 1fr 10fr;
gap: 1.5rem;
// align-items: flex-start;
justify-content: center;
margin: auto;
.main-image-block {
display: flex;
// max-width: 60vw;
margin: auto;
align-items: center;
position: relative;
width: 100%;
margin: 0 auto;
}
.main-image-container {
flex: 1;
text-align: center;
.main-image-container {
position: relative;
// background: #e0f5ff;
// height: 500px;
// max-height: 500px;
flex: 1; // prend lespace restant
max-width: 600px;
overflow: hidden;
img {
width: 100%;
height: auto;
object-fit: contain;
img {
width: 100%;
height: 100%;
object-fit: contain;
transition: transform 0.3s ease-in-out;
border: none ;
// transition: opacity 0.4s ease-in-out; // à réactiver si fade souhaité
&.animate {
transform: scale(1.02); // léger effet smooth sur changement
}
}
.arrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
background:none;
border-radius: 50%;
padding: 5px 10px;
color: black;
cursor: pointer;
content
&.left {
left: 10px;
}
&.right {
right: 10px;
}
}
// #prevArrow{
// &::before{
// content:url("../images/pictos/fleche-droite-dans-rond.png");
// display: block;
// transform: scaleX(-1);
// width: 50px;
// }
// }
// #nextArrow{
// &::before{
// content:url("../images/pictos/fleche-droite-dans-rond.png");
// display: block;
// }
// }
}
.caption {
margin-top: 1rem;
font-family: sans-serif;
text-align: center;
font-size: 1rem;
color: #444;
}
}
.arrow {
display: none;
font-size: 2rem;
color: #333;
background: none;
border-radius: 50%;
width: 40px;
height: 40px;
line-height: 40px;
text-align: center;
cursor: pointer;
user-select: none;
transition: background 0.3s ease;
&:hover {
background: #bbb;
}
&.left {
margin-right: 10px;
}
&.right {
margin-left: 10px;
}
}
.caption {
margin-top: 10px;
font-family: sans-serif;
grid-column: 2;
grid-row: 2;
}
.thumbnails-wrapper {
grid-column: 1;
display: flex;
flex-direction: column;
align-items: center;
max-height: 500px;
overflow: hidden;
max-height: 70vh;
grid-row: 1 /span 2;
top: -30px;
position: relative;
.thumb-arrow {
cursor: pointer;
padding: 5px 10px;
background: #00aaff;
color: white;
border-radius: 50%;
user-select: none;
z-index: 2;
// font-weight: bold;
}
.thumbnails {
display: flex;
flex-direction: column;
gap: 10px;
overflow-y: auto;
overflow-x: hidden;
max-height: 100%;
scroll-behavior: smooth;
max-height: 400px;
padding: 10px 0;
&::-webkit-scrollbar {
display: none;
@@ -117,22 +129,8 @@
}
}
}
.thumb-arrow {
cursor: pointer;
padding: 5px;
background: #00aaff;
color: white;
border-radius: 50%;
user-select: none;
margin: 5px 0;
&.left, &.right {
// on ne les utilise plus horizontalement
margin: 0;
}
}
}
// .thumbnails-wrapper {
// position: relative;