Skip to content
Snippets Groups Projects
Commit 248dc186 authored by alexisben's avatar alexisben
Browse files

Merge branch 'main' into a11y/block-testimonials

parents 38a69fc4 5478b223
No related branches found
No related tags found
No related merge requests found
......@@ -371,6 +371,7 @@ $block-key_figures-number-font-size-xxl: px2rem(80) !default
// Block gallery
$block-gallery-carousel-background: $color-background-alt !default
$block-gallery-carousel-max-height: 70vh !default
// Block image
$block-image-max-height-with-sidebar: calc(100vh - var(--header-height)) !default
......
......@@ -39,6 +39,8 @@
@include grid(2)
grid-gap: half($grid-gutter-sm) !important
&--with-text
@include in-page-without-sidebar
@include grid(4, desktop, $spacing0)
figure
display: grid
grid-template-columns: subgrid
......@@ -46,7 +48,6 @@
figcaption
&::after
content: ' '
&--carousel
overflow: hidden
position: relative
......@@ -96,12 +97,12 @@
picture
img
// FIXME Arnaud: I would like images at constant height, can't manage to get it right.
max-height: 70vh
max-height: $block-gallery-carousel-max-height
width: auto
height: auto
max-width: calc(100vw - #{$grid-gutter-sm} * 2)
@include media-breakpoint-up(desktop)
height: 70vh
height: $block-gallery-carousel-max-height
width: auto
max-width: none
figcaption
......
.nav-accessibility
padding: $spacing1
position: absolute
transform: translateY(calc(-100% - 24px))
transform: translateY(-300%)
z-index: $zindex-nav-accessibility
a
color: black
......
......@@ -16,21 +16,26 @@
"description" .description
)}}
<div class="events events--{{- $layout -}}">
{{ range .events }}
{{ $event := site.GetPage .file }}
{{ with $event }}
{{ partial "events/event" (dict
"event" .
"layout" $layout
"show_summary" $show_summary
"show_category" $show_category
"show_status" $show_status
"heading" (printf "h%d" $block.ranks.children)
) }}
{{ if .events }}
<div class="events events--{{- $layout -}}">
{{ range .events }}
{{ $event := site.GetPage .file }}
{{ with $event }}
{{ partial "events/event" (dict
"event" .
"layout" $layout
"show_summary" $show_summary
"show_category" $show_category
"show_status" $show_status
"heading" (printf "h%d" $block.ranks.children)
) }}
{{ end }}
{{ end }}
{{ end }}
</div>
</div>
{{ else if .no_event_message }}
<p>{{ partial "PrepareHTML" .no_event_message }}</p>
{{ end }}
</div>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment