Merge pull request 'Fix carousel height jumping by stacking slides with CSS grid' (#9) from bugfix/carousel-fixed-height into main
All checks were successful
Deploy to Production / deploy (push) Successful in 3s
All checks were successful
Deploy to Production / deploy (push) Successful in 3s
Reviewed-on: #9
This commit is contained in:
19
styles.css
19
styles.css
@@ -902,13 +902,19 @@ body {
|
|||||||
.carousel-slides {
|
.carousel-slides {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
display: grid; /* stack all slides — prevents height jump on slide change */
|
||||||
}
|
}
|
||||||
.carousel-slide {
|
.carousel-slide {
|
||||||
display: none;
|
grid-area: 1 / 1; /* all slides share the same grid cell */
|
||||||
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
opacity: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
transition: opacity 0.4s ease;
|
||||||
}
|
}
|
||||||
.carousel-slide.active {
|
.carousel-slide.active {
|
||||||
display: flex;
|
opacity: 1;
|
||||||
|
pointer-events: auto;
|
||||||
}
|
}
|
||||||
.carousel-slide img {
|
.carousel-slide img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -972,15 +978,6 @@ body {
|
|||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fade transition */
|
|
||||||
.carousel-slide {
|
|
||||||
opacity: 0;
|
|
||||||
transition: opacity 0.4s ease;
|
|
||||||
}
|
|
||||||
.carousel-slide.active {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ---- Request Quote pricing ---- */
|
/* ---- Request Quote pricing ---- */
|
||||||
.price-amount--quote {
|
.price-amount--quote {
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
|
|||||||
Reference in New Issue
Block a user