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

use subgrid

parent 40307f13
No related branches found
No related tags found
No related merge requests found
......@@ -17,8 +17,6 @@
figcaption
@include small
position: relative
&:not(:empty)
margin-top: $spacing0
p
margin-bottom: 0
.credit
......@@ -42,6 +40,9 @@
grid-gap: half($grid-gutter-sm) !important
&--with-text
figure
display: grid
grid-template-columns: subgrid
gap: space(3)
figcaption
&::after
content: ' '
......
......@@ -33,11 +33,11 @@
{{ if not site.Params.image_sizes.design_system.lightbox.disabled }}
</a>
{{ end }}
{{ if .text }}
<figcaption>
{{ if .text }}
{{- partial "PrepareHTML" .text -}}
{{ end }}
{{- partial "PrepareHTML" .text -}}
</figcaption>
{{ end }}
</figure>
{{- end -}}
{{ end }}
......
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