diff --git a/assets/sass/_configuration.sass b/assets/sass/_configuration.sass index aa60ae1..16f0930 100644 --- a/assets/sass/_configuration.sass +++ b/assets/sass/_configuration.sass @@ -17,7 +17,8 @@ $footer-background-color: transparent $lightbox-overlay-color: $color-background $lightbox-backdrop: none -$block-gallery-carousel-max-height: calc(100vh - #{pxToRem(100)}) +$block-gallery-carousel-height: calc(100vh - #{pxToRem(100)}) +$block-gallery-carousel-height-desktop: $block-gallery-carousel-height $block-gallery-carousel-background: transparent $block-chapter-layout-accent-background: black diff --git a/assets/sass/_style.sass b/assets/sass/_style.sass index 1c4fdaa..2539d86 100644 --- a/assets/sass/_style.sass +++ b/assets/sass/_style.sass @@ -37,20 +37,15 @@ margin-top: $spacing-5 padding-bottom: $spacing-3 -.block-gallery--carousel .splide__slide:last-child - padding-right: 0 +.block-gallery--carousel + @include in-page-with-sidebar + padding-top: $spacing-2 + .slider + --slider-transition-opacity-duration: 0s + .gallery:not(.slider-list) + figure + figure + margin-top: $spacing-3 -@include media-breakpoint-down(desktop) - .block-gallery.block-gallery--carousel - .splide - &__slide + .splide__slide - margin-top: $spacing-1 - figure - margin-right: 0 - picture img - max-width: 100% - .splide__track - margin-right: 0 .footer-credit padding-top: $spacing-7 &, a @@ -58,16 +53,17 @@ @include media-breakpoint-up(desktop) .block-gallery.block-gallery--carousel - .block-content - padding-left: 0 !important - .splide__arrows + .slider-arrows padding-top: 0 - .splide__slide - transition: 0s !important - &:not(.is-active) + .slider-slide + &:not(.is-current) opacity: 0 !important + .slider-arrows + button + padding-bottom: $spacing-2 + padding-top: $spacing-2 figcaption - margin-left: space(20) + margin-left: space(30) position: absolute z-index: 0 .page__home @@ -151,9 +147,6 @@ .block-gallery padding-top: pxToRem(50) !important - .splide__slide - opacity: 0 - transition: opacity 0.3s .is-active opacity: 1 .is-moving diff --git a/config/_default/config.yaml b/config/_default/config.yaml index f1d2cea..f0c1031 100644 --- a/config/_default/config.yaml +++ b/config/_default/config.yaml @@ -12,18 +12,13 @@ params: active: false blocks: gallery: - splide: - speed: 0 - arrows: true - autoplay: false - type: loop - autoHeight: true - breakpoints: - '992': - destroy: true + slider: + transition: 0 + disable: + mobile: true image_sizes: design_system: lightbox: disabled: true debug: - productionUrl: "https://www.lilianaoust.fr" \ No newline at end of file + productionUrl: "https://www.lilianaoust.fr" \ No newline at end of file diff --git a/themes/osuny b/themes/osuny index 9b41564..289fe91 160000 --- a/themes/osuny +++ b/themes/osuny @@ -1 +1 @@ -Subproject commit 9b41564d841bd3eff3e24fe27111091961b91dec +Subproject commit 289fe914d73d7b936cb0b3a22616b0f2062f70c1