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

add transparent source overlay not impacting image aspect ratio

parent 702d85b9
No related branches found
No related tags found
1 merge request!37Make figcaption visible
...@@ -4,11 +4,7 @@ ...@@ -4,11 +4,7 @@
} }
.caption { .caption {
display: flex; position: absolute;
justify-content: center; opacity: 75%;
padding: 4px 10px 4px 10px; bottom: 0;
}
.tag.caption {
width: 100%;
} }
...@@ -11,15 +11,11 @@ ...@@ -11,15 +11,11 @@
<div class="column is-one-quarter"> <div class="column is-one-quarter">
<div class="card"> <div class="card">
<div class="card-image"> <div class="card-image">
<figure> <figure class="image is-4by3">
{% 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) -%}
<div class="image is-4by3">
<img src="{{ image.url }}" alt="{{ post.extra.depiction.alt }}" /> <img src="{{ image.url }}" alt="{{ post.extra.depiction.alt }}" />
</div>
{% if post.extra.depiction.credits %} {% if post.extra.depiction.credits %}
<div class="caption"> <figcaption class="tag has-text-white has-background-black is-size-7 is-italic m-1 caption">{{ post.extra.depiction.credits }}</figcaption>
<figcaption class="tag is-rounded caption">{{ post.extra.depiction.credits }}</figcaption>
</div>
{% endif %} {% endif %}
</figure> </figure>
</div> </div>
......
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