julienmonnerie/assets/css/pages/_home.scss

61 lines
1.5 KiB
SCSS
Raw Normal View History

2025-05-25 18:29:02 +02:00
@use "../abstracts" as *;
2025-05-23 17:17:38 +02:00
// --------------------------------------------------
// HOME STYLE
// --------------------------------------------------
.home {
.home__gallery {
display: flex;
flex-direction: column;
align-items: center;
2025-05-25 18:29:02 +02:00
gap: 2rem;
2025-05-23 17:17:38 +02:00
.home__gallery-item {
display: table;
2025-05-25 18:29:02 +02:00
max-width: $medium-content-width;
2025-05-23 17:17:38 +02:00
.home__carousel {
&:where(.splide) {
cursor: pointer;
.splide__track {
.splide__list {
position: relative;
.splide__slide {
transform: none !important;
&:not(.is-active) {
position: absolute;
inset: 0;
}
.splide__image {
max-height: 80vh;
}
}
}
}
}
}
.home__main-image {
max-height: 80vh;
}
.home__image-caption {
display: table-caption;
caption-side: bottom;
width: fit-content;
margin: 0.5rem auto 0;
2025-05-25 18:29:02 +02:00
padding: 0 0.5rem;
text-align: center;
2025-05-23 17:17:38 +02:00
}
}
}
}