Skip to content
Snippets Groups Projects
Commit c5433532 authored by codecraft's avatar codecraft :crocodile:
Browse files

Apply changes in all figcaption utilizing templates

parent 839e6de6
No related branches found
No related tags found
1 merge request!37Make figcaption visible
......@@ -5,7 +5,7 @@
.caption {
position: absolute;
width: 100%;
max-width: 100%;
opacity: 75%;
padding: 4px 4px 4px 4px;
bottom: 0;
......@@ -20,6 +20,7 @@
display: block;
margin: 0 0 0 0!important;
padding-top: 3px;
padding-bottom: 3px;
position: relative;
width: 100%;
text-overflow: ellipsis;
......
......@@ -5,7 +5,9 @@
{% set image = resize_image(path="@/" ~ post.colocated_path ~ "/" ~ post.extra.depiction.image, width=800, height=600) -%}
<img src="{{ image.url }}" alt="{{ post.extra.depiction.alt }}" />
{% if post.extra.depiction.credits %}
<figcaption>{{ post.extra.depiction.credits }}</figcaption>
<div class="caption">
<figcaption class="tag has-text-white has-background-black is-size-7 is-italic m-1">{{ post.extra.depiction.credits }}</figcaption>
</div>
{% endif %}
</figure>
</a>
......
......@@ -10,7 +10,9 @@
{% set image = resize_image(path="@/" ~ page.colocated_path ~ "/" ~ further.image, width=800, height=600) -%}
<img src="{{image.url}}" alt="{{further.alt}}" />
{% if further.image.credits %}
<figcaption>{{ further.image.credits }}</figcaption>
<div class="caption">
<figcaption class="tag has-text-white has-background-black is-size-7 is-italic m-1">{{ further.image.credits }}</figcaption>
</div>
{% endif %}
</figure>
</a>
......
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