From f2def4854019c55f617e25337769a77122d49709 Mon Sep 17 00:00:00 2001 From: claraRigo <clararigaud0@gmail.com> Date: Mon, 26 Aug 2024 10:21:56 +0200 Subject: [PATCH] Gallerie carousel: Ajustement des hauteurs d'image (#587) --- assets/sass/_theme/blocks/gallery.sass | 10 ++++------ assets/sass/_theme/configuration/blocks.sass | 4 ++-- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/assets/sass/_theme/blocks/gallery.sass b/assets/sass/_theme/blocks/gallery.sass index c66c4b95..cbccd7e8 100644 --- a/assets/sass/_theme/blocks/gallery.sass +++ b/assets/sass/_theme/blocks/gallery.sass @@ -91,14 +91,12 @@ margin-right: calc(var(--grid-gutter) / 2) picture img - // FIXME Arnaud: I would like images at constant height, can't manage to get it right. - max-height: $block-gallery-carousel-max-height + height: $block-gallery-carousel-max-height width: auto - height: auto - max-width: calc(100vw - #{var(--grid-gutter)} * 2) + max-width: none @include media-breakpoint-up(desktop) - height: $block-gallery-carousel-max-height + height: $block-gallery-carousel-max-height-desktop width: auto max-width: none @include in-page-without-sidebar - margin-right: var(--grid-gutter) + margin-right: var(--grid-gutter) \ No newline at end of file diff --git a/assets/sass/_theme/configuration/blocks.sass b/assets/sass/_theme/configuration/blocks.sass index f0f0d370..1f11cdfe 100644 --- a/assets/sass/_theme/configuration/blocks.sass +++ b/assets/sass/_theme/configuration/blocks.sass @@ -106,8 +106,8 @@ $block-key_figures-number-font-size-xxl: pxToRem(80) !default // Block gallery $block-gallery-carousel-background: var(--color-background-alt) !default -$block-gallery-carousel-max-height: 70vh !default - +$block-gallery-carousel-max-height: 40vh !default +$block-gallery-carousel-max-height-desktop: 60vh !default // Block image $block-image-max-height-with-sidebar: calc(100vh - var(--header-height)) !default $block-image-max-height-without-sidebar: none !default -- GitLab