Skip to content
Snippets Groups Projects
Commit 5763e35a authored by Olivia206's avatar Olivia206
Browse files

added style for odd and even key figures

parent c676e031
No related branches found
No related tags found
No related merge requests found
......@@ -2,10 +2,14 @@
.top
margin-bottom: 0
ul
@include grid(3, desktop)
@include list-reset
@include in-page-with-sidebar
@include grid(2, desktop)
&.even-items
@include grid(2)
@include grid(4, desktop)
&.odd-items
@include grid(3, desktop)
.top + ul
margin-top: $spacing2
@include media-breakpoint-down(desktop)
......
{{- $context := .context -}}
{{- $position := .block.position -}}
{{- $title := .block.title -}}
{{- $figures := .figures}}
{{- with .block.data -}}
<section class="block block-key_figures{{ if $title }} block-with-title{{ end }}" id="block-{{ $position }}">
<div class="container">
......@@ -18,9 +19,14 @@
{{ end -}}
</div>
{{ end -}}
<ul>
{{ if (modBool $figures 2)}}
<ul class="even-items">
{{ else }}
<ul class="odd-items">
{{ end }}
{{- range .figures }}
<li>
<li>
<dl>
<dt><strong>{{ .number }}</strong>{{ partial "PrepareHTML" .unit }}</dt>
<dd>{{ partial "PrepareHTML" .description }}</dd>
......
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