diff --git a/assets/sass/_theme/blocks/gallery.sass b/assets/sass/_theme/blocks/gallery.sass index c66c4b95c0354b1f9df87ad846451284399cca3c..cbccd7e8dd76a06155496f6b5f2c911425749c9c 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 f0f0d370d7093f3af66ec5dd30e6744b66c30011..1f11cdfed4356e43092cceb36267e24834175696 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