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

Replace inline styles with custom css

parent 62f082ee
No related branches found
No related tags found
1 merge request!45Author cards
...@@ -17,3 +17,13 @@ figure.image > figcaption { ...@@ -17,3 +17,13 @@ figure.image > figcaption {
.is-fullheight { .is-fullheight {
height: 100% height: 100%
} }
.is-text-nowrap {
text-wrap: nowrap !important;
}
.author-images>figure {
margin-right: -1 * 20%;
// border: 1px solid white;
// border-radius: 100%;
}
<div class="columns"> <div class="columns is-vcentered">
<div class="column is-two-fifths"> <div class="column is-two-fifths 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" style="margin-right: -30px;"> <figure class="image is-48x48 is-inline-block">
{% set meta = get_image_metadata(path="authors/" ~ author ~ ".jpg", allow_missing=true) -%} {% set meta = get_image_metadata(path="authors/" ~ author ~ ".jpg", allow_missing=true) -%}
{% if meta -%} {% if meta -%}
{% set image = resize_image(path="authors/" ~ author ~ ".jpg", width=48, height=48) -%} {% set image = resize_image(path="authors/" ~ author ~ ".jpg", width=48, height=48) -%}
...@@ -19,9 +19,7 @@ ...@@ -19,9 +19,7 @@
<ul class="column is-three-fifths"> <ul class="column is-three-fifths">
<div class="title is-5"> <div class="title is-5">
{% for author in post.authors -%} {% for author in post.authors -%}
<p class="is-inline"> <span class="is-text-nowrap">{{ authors_data[author].display_name }}</span>{% if not loop.last %},{% endif %}
{{ authors_data[author].display_name }}{% if not loop.last %},{% endif %}
</p>
{% endfor %} {% endfor %}
</div> </div>
</ul> </ul>
......
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