Skip to content
Snippets Groups Projects
Commit 3eae22cd authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch 'make_figcaption_visible' into 'master'

Make figcaption visible

See merge request !37
parents 84daff0c 91f25ad0
No related branches found
No related tags found
1 merge request!37Make figcaption visible
Pipeline #175982 passed
......@@ -2,3 +2,10 @@
width: 70%;
height: 70%;
}
.card > .card-image figure.image > figcaption {
position: absolute;
bottom: 0;
width: 100%;
opacity: 75%;
}
......@@ -5,7 +5,7 @@
{% 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>
<figcaption class="-1 has-text-white has-background-black is-size-7 is-italic">{{ post.extra.depiction.credits }}</figcaption>
{% endif %}
</figure>
</a>
......
......@@ -13,9 +13,9 @@
<div class="card-image">
<figure class="image is-4by3">
{% 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 }}" />
<img src="{{ image.url }}" alt="{{ post.extra.depiction.alt }}" />
{% if post.extra.depiction.credits %}
<figcaption>{{ post.extra.depiction.credits }}</figcaption>
<figcaption class="p-1 has-text-white has-background-black is-size-7 is-italic">{{ post.extra.depiction.credits }}</figcaption>
{% endif %}
</figure>
</div>
......
......@@ -10,7 +10,7 @@
{% 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>
<figcaption class="p-1 has-text-white has-background-black is-size-7 is-italic">{{ further.image.credits }}</figcaption>
{% 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