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

handle description with list

parent adcdb951
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,11 @@ ...@@ -7,6 +7,11 @@
margin-bottom: $spacing0 margin-bottom: $spacing0
+ .description + .description
margin-top: 0 margin-top: 0
.description
* + ul, * + ol
margin-top: space(4)
ul:last-child, ol:last-child
margin-bottom: 0
.call_to_action .call_to_action
color: $block-call-to-action-color color: $block-call-to-action-color
.description .description
...@@ -128,7 +133,7 @@ ...@@ -128,7 +133,7 @@
display: flex display: flex
flex-direction: column flex-direction: column
grid-column: 10/13 grid-column: 10/13
grid-row: 2 // grid-row: 2
margin-top: 0 margin-top: 0
a a
margin-right: 0 margin-right: 0
...@@ -136,6 +141,10 @@ ...@@ -136,6 +141,10 @@
margin-top: 0 margin-top: 0
a + a a + a
margin-top: $spacing1 margin-top: $spacing1
&.call_to_action--with-title
.actions
grid-row: 2
@include media-breakpoint-down(lg) @include media-breakpoint-down(lg)
> div > div
.top .top
......
...@@ -56,6 +56,8 @@ ol ...@@ -56,6 +56,8 @@ ol
> li > li
> p > p
display: inline display: inline
ul, ol
padding-left: space(4)
.document-content .document-content
.container > .lead .container > .lead
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div class="{{ $block_class }}"> <div class="{{ $block_class }}">
<div class="container"> <div class="container">
<div class="block-content"> <div class="block-content">
<div class="call_to_action call_to_action--with{{ if not .image }}out{{ end }}-image"> <div class="call_to_action call_to_action--with{{ if not .image }}out{{ end }}-image {{ if $block.title }}call_to_action--with-title{{ end }}">
<div> <div>
{{ partial "blocks/top.html" (dict {{ partial "blocks/top.html" (dict
"title" $block.title "title" $block.title
...@@ -15,22 +15,22 @@ ...@@ -15,22 +15,22 @@
)}} )}}
{{- if .buttons }} {{- if .buttons }}
<div class="actions" {{ if gt (len .buttons) 1 }}role="group"{{ end -}}> <div class="actions" {{ if gt (len .buttons) 1 }}role="group"{{ end -}}>
{{- range .buttons -}} {{- range .buttons -}}
{{ if .title }} {{ if .title }}
{{- $title := partial "PrepareHTML" .title -}} {{- $title := partial "PrepareHTML" .title -}}
<a href="{{ .url }}" <a href="{{ .url }}"
{{ if .target_blank }} {{ if .target_blank }}
title="{{ i18n "commons.link.blank_aria" (dict "Title" $title) }}" title="{{ i18n "commons.link.blank_aria" (dict "Title" $title) }}"
target="_blank" target="_blank"
{{ else }} {{ else }}
title="{{ $title }}" title="{{ $title }}"
{{ end }} {{ end }}
>{{- $title -}} >{{- $title -}}
</a> </a>
{{ end -}} {{ end -}}
{{- end -}} {{- end -}}
</div> </div>
{{- end -}} {{- end -}}
</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