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

use bulma media class

parent 4441d417
No related branches found
No related tags found
1 merge request!45Author cards
...@@ -27,6 +27,11 @@ figure.image > figcaption { ...@@ -27,6 +27,11 @@ figure.image > figcaption {
// margin-right: -1 * 20%; // margin-right: -1 * 20%;
margin-right: -30px; margin-right: -30px;
} }
.author-images>figure:last-child {
margin-right: 0;
}
.blog-card { .blog-card {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
......
<div class="columns is-vcentered"> <div class="media">
<div class="column is-two-fifths author-images"> <div class="media-left author-images">
{% set authors_data = load_data(path="authors.json") -%} {% set authors_data = load_data(path="authors.json") -%}
{% for author in post.authors -%} {% for author in post.authors -%}
<figure class="image is-48x48 is-inline-block"> <figure class="image is-48x48 is-inline-block">
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</figure> </figure>
{% endfor %} {% endfor %}
</div> </div>
<ul class="column is-three-fifths"> <ul class="media-content">
<div class="title is-5"> <div class="title is-5">
{% for author in post.authors -%} {% for author in post.authors -%}
<span class="is-text-nowrap">{{ authors_data[author].display_name }}</span>{% if not loop.last %},{% endif %} <span class="is-text-nowrap">{{ authors_data[author].display_name }}</span>{% if not loop.last %},{% endif %}
......
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