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 @@ ...@@ -3,27 +3,9 @@
height: 70%; height: 70%;
} }
.caption { .card > .card-image figure.image > figcaption {
position: absolute; position: absolute;
max-width: 100%;
opacity: 75%;
padding: 4px 4px 4px 4px;
bottom: 0; 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%; width: 100%;
text-overflow: ellipsis; opacity: 75%;
overflow: hidden;
text-wrap: nowrap;
} }
...@@ -5,9 +5,7 @@ ...@@ -5,9 +5,7 @@
{% set image = resize_image(path="@/" ~ post.colocated_path ~ "/" ~ post.extra.depiction.image, width=800, height=600) -%} {% 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 %} {% if post.extra.depiction.credits %}
<div class="caption"> <figcaption class="-1 has-text-white has-background-black is-size-7 is-italic">{{ post.extra.depiction.credits }}</figcaption>
<figcaption class="tag has-text-white has-background-black is-size-7 is-italic m-1">{{ post.extra.depiction.credits }}</figcaption>
</div>
{% endif %} {% endif %}
</figure> </figure>
</a> </a>
......
...@@ -15,9 +15,7 @@ ...@@ -15,9 +15,7 @@
{% set image = resize_image(path="@/" ~ post.colocated_path ~ "/" ~ post.extra.depiction.image, width=800, height=600) -%} {% 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 %} {% if post.extra.depiction.credits %}
<div class="caption"> <figcaption class="p-1 has-text-white has-background-black is-size-7 is-italic">{{ post.extra.depiction.credits }}</figcaption>
<figcaption class="tag has-text-white has-background-black is-size-7 is-italic m-1">{{ post.extra.depiction.credits }}</figcaption>
</div>
{% endif %} {% endif %}
</figure> </figure>
</div> </div>
......
...@@ -10,9 +10,7 @@ ...@@ -10,9 +10,7 @@
{% set image = resize_image(path="@/" ~ page.colocated_path ~ "/" ~ further.image, width=800, height=600) -%} {% set image = resize_image(path="@/" ~ page.colocated_path ~ "/" ~ further.image, width=800, height=600) -%}
<img src="{{image.url}}" alt="{{further.alt}}" /> <img src="{{image.url}}" alt="{{further.alt}}" />
{% if further.image.credits %} {% if further.image.credits %}
<div class="caption"> <figcaption class="p-1 has-text-white has-background-black is-size-7 is-italic">{{ further.image.credits }}</figcaption>
<figcaption class="tag has-text-white has-background-black is-size-7 is-italic m-1">{{ further.image.credits }}</figcaption>
</div>
{% endif %} {% endif %}
</figure> </figure>
</a> </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