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