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

figcaption-credit

parent 5eeeadcc
No related branches found
No related tags found
No related merge requests found
...@@ -358,7 +358,7 @@ ...@@ -358,7 +358,7 @@
text-align: center text-align: center
padding: half($spacing0) padding: half($spacing0)
display: block display: block
p .credit-content
@include meta @include meta
background: $hero-background-color background: $hero-background-color
display: none display: none
...@@ -366,8 +366,9 @@ ...@@ -366,8 +366,9 @@
padding-right: $spacing1 padding-right: $spacing1
a a
color: inherit color: inherit
text-decoration-color: inherit
&:focus &:focus
p .credit-content
display: block display: block
@include media-breakpoint-up(desktop) @include media-breakpoint-up(desktop)
&:before &:before
...@@ -377,13 +378,13 @@ ...@@ -377,13 +378,13 @@
background: $color-background background: $color-background
&::before &::before
background: transparent background: transparent
p .credit-content
display: block display: block
background: transparent background: transparent
position: relative position: relative
&:hover &:hover
figcaption p figcaption .credit-content
display: block display: block
// https://gist.github.com/jonathantneal/d0460e5c2d5d7f9bc5e6 // https://gist.github.com/jonathantneal/d0460e5c2d5d7f9bc5e6
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
) -}} ) -}}
{{- if .credit -}} {{- if .credit -}}
<figcaption> <figcaption>
{{ partial "PrepareText" .credit }} {{ partial "PrepareHTML" .credit }}
</figcaption> </figcaption>
{{- end -}} {{- end -}}
</figure> </figure>
......
...@@ -59,9 +59,9 @@ ...@@ -59,9 +59,9 @@
{{ end }} {{ end }}
{{ if partial "GetTextFromHTML" .image.credit }} {{ if partial "GetTextFromHTML" .image.credit }}
<figcaption tabindex="0"> <figcaption tabindex="0">
<p> <div class="credit-content">
{{- partial "GetTextFromHTML" .image.credit -}} {{- partial "PrepareHTML" .image.credit -}}
</p> </div>
</figcaption> </figcaption>
{{ end }} {{ end }}
</figure> </figure>
......
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