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

fix mobile figcaption

parent 52a4c0f8
No related branches found
No related tags found
No related merge requests found
......@@ -368,6 +368,15 @@
@include media-breakpoint-up(desktop)
&:before
padding-right: 0
@include media-breakpoint-down(desktop)
position: relative
background: $color-background
&::before
background: transparent
p
display: block
background: transparent
position: relative
&:hover
figcaption p
......
......@@ -48,9 +48,10 @@
> h1, > hgroup
margin-bottom: $spacing2
&--image-landscape
figure
margin-left: half(-$grid-gutter-sm)
margin-right: half(-$grid-gutter-sm)
.content
figure
margin-left: half(-$grid-gutter-sm)
margin-right: half(-$grid-gutter-sm)
&--image-portrait, &--image-square
.container
display: flex
......
......@@ -33,7 +33,7 @@
"sizes" ( .sizes | default site.Params.image_sizes.design_system.hero )
"lazy" false
) }}
{{ if .image.credit }}
{{ if partial "GetTextFromHTML" .image.credit }}
<figcaption tabindex="0">
<p>
{{- partial "GetTextFromHTML" .image.credit -}}
......
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