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

fix key_figure block

parent 40e29a2e
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@
@include in-page-with-sidebar
@include grid(2)
&.even-items
@include grid(2)
@include grid(2, desktop)
@include grid(4, desktop)
&.odd-items
@include grid(3, desktop)
......@@ -26,7 +26,7 @@
font-size: $block-key_figures-number-font-size
font-weight: $block-key_figures-number-font-weight
margin-inline-end: 0.1em
@include media-breakpoint-up(md)
@include media-breakpoint-up(desktop)
font-size: $block-key_figures-font-size-desktop
strong
font-size: $block-key_figures-number-font-size-desktop
......@@ -47,4 +47,8 @@
margin-left: 0
dt + dd
margin-top: $spacing0
\ No newline at end of file
@include media-breakpoint-down(desktop)
li + li
margin-top: $spacing1
{{- $template := .block.template -}}
{{- $position := .block.position -}}
{{- $title := .block.title -}}
{{- $figures := .figures}}
{{- with .block.data -}}
{{- $figures := .figures }}
<section class="block block-key_figures{{ if $title }} block-with-title{{ end }}" id="block-{{ $position }}">
<div class="container">
<div class="block-content">
......@@ -22,7 +22,7 @@
{{ end -}}
{{ $list_class := "odd-items" }}
{{ if (modBool $figures 2) }}
{{ if (modBool (len $figures) 2) }}
{{ $list_class = "even-items" }}
{{ end }}
<ul class="{{ $list_class }}">
......
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