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

align footer at bottom of card

parent 67a91b94
No related branches found
No related tags found
1 merge request!45Author cards
...@@ -23,7 +23,17 @@ figure.image > figcaption { ...@@ -23,7 +23,17 @@ figure.image > figcaption {
} }
.author-images>figure { .author-images>figure {
margin-right: -1 * 20%; // FIXME: Use percentages, reason not yet fixed: responsiveness broken
// border: 1px solid white; // margin-right: -1 * 20%;
// border-radius: 100%; margin-right: -30px;
}
.blog-card {
display: flex;
flex-direction: column;
height: 100%;
justify-content:space-between;
gap: 0;
}
.blog-card>.card-content {
height: 100%;
} }
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
{% set image = resize_image(path="authors/" ~ author ~ ".jpg", width=48, height=48) -%} {% set image = resize_image(path="authors/" ~ author ~ ".jpg", width=48, height=48) -%}
<img class="is-rounded" src="{{ image.url }}" alt="Benutzerbild von {{ authors_data[post.authors.0].display_name }}" /> <img class="is-rounded" src="{{ image.url }}" alt="Benutzerbild von {{ authors_data[post.authors.0].display_name }}" />
{% else -%} {% else -%}
<span class="fa-stack fa-lg"> <span class="fa-stack fa-lg is-block">
<i class="fa-solid fa-circle fa-stack-2x"></i> <i class="fa-solid fa-circle fa-stack-2x"></i>
<i class="fa-solid fa-{{ author | truncate(length=1, end="") | lower() }} fa-stack-1x fa-inverse"></i> <i class="fa-solid fa-{{ author | truncate(length=1, end="") | lower() }} fa-stack-1x fa-inverse"></i>
</span> </span>
......
<div class="card"> <div class="card blog-card">
<div class="card-image"> <div class="card-image">
<a href="{{ post.permalink }}"> <a href="{{ post.permalink }}">
<figure class="image is-4by3"> <figure class="image is-4by3">
...@@ -11,16 +11,16 @@ ...@@ -11,16 +11,16 @@
</a> </a>
</div> </div>
<div class="card-content"> <div class="card-content">
<a href="{{ post.permalink }}"><h3 class="title is-4">{{ post.title }}</h3></a> <a href="{{ post.permalink }}"><h3 class="title is-4">{{ post.title }}</h3></a>
<div class="content"> <div class="content">
{% include "blog/meta_line.html" -%} {% include "blog/meta_line.html" -%}
{{ post.summary | safe }} {{ post.summary | safe }}
</div> </div>
<div class="card-footer"> </div>
<div class="card-footer-item"> <div class="card-footer blog-card-authors">
<div class="is-fullwidth"> <div class="card-footer-item">
{% include "blog/author_media.html" -%} <div class="is-fullwidth">
</div> {% include "blog/author_media.html" -%}
</div> </div>
</div> </div>
</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