Skip to content
Snippets Groups Projects
Unverified Commit 91f25ad0 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Simplify figcaption

parent 90f11876
No related branches found
No related tags found
1 merge request!37Make figcaption visible
......@@ -3,27 +3,9 @@
height: 70%;
}
.caption {
.card > .card-image figure.image > figcaption {
position: absolute;
max-width: 100%;
opacity: 75%;
padding: 4px 4px 4px 4px;
bottom: 0;
}
.caption:hover>figcaption {
height: 100%;
text-wrap: wrap;
}
.caption>figcaption {
display: block;
margin: 0 0 0 0!important;
padding-top: 3px;
padding-bottom: 3px;
position: relative;
width: 100%;
text-overflow: ellipsis;
overflow: hidden;
text-wrap: nowrap;
opacity: 75%;
}
......@@ -5,9 +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 %}
<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>
<figcaption class="-1 has-text-white has-background-black is-size-7 is-italic">{{ post.extra.depiction.credits }}</figcaption>
{% endif %}
</figure>
</a>
......
......@@ -15,9 +15,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 %}
<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>
<figcaption class="p-1 has-text-white has-background-black is-size-7 is-italic">{{ post.extra.depiction.credits }}</figcaption>
{% endif %}
</figure>
</div>
......
......@@ -10,9 +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 %}
<div class="caption">
<figcaption class="tag has-text-white has-background-black is-size-7 is-italic m-1">{{ further.image.credits }}</figcaption>
</div>
<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