chore: spacing

This commit is contained in:
Cory Dransfeldt 2024-05-10 20:02:24 -07:00
parent 1d8bda06a4
commit b23e499b81
No known key found for this signature in database
3 changed files with 11 additions and 7 deletions

View file

@ -584,6 +584,12 @@ li {
align-items: center; align-items: center;
} }
.flex-between {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.justify-centered { .justify-centered {
justify-content: center; justify-content: center;
} }

View file

@ -6,11 +6,7 @@
& .link { & .link {
border: 1px solid var(--gray-light); border: 1px solid var(--gray-light);
padding: var(--sizing-xs) var(--sizing-sm) 0; padding: var(--sizing-xs) var(--sizing-sm);
& button {
margin-right: var(--sizing-sm);
}
} }
} }

View file

@ -15,12 +15,14 @@ pagination:
{% for link in pagination.items %} {% for link in pagination.items %}
{% assign author = link.data.link | stripUtm | authorLookup %} {% assign author = link.data.link | stripUtm | authorLookup %}
<div class="link"> <div class="link">
{% render "partials/widgets/share-button.liquid", url:link.data.link, title:link.data.title, tagMap:collections.tagMap %}
<a href="{{ link.data.link }}" title="{{ link.data.title | escape }}"> <a href="{{ link.data.link }}" title="{{ link.data.title | escape }}">
<strong>{{ link.data.title }}</strong> <strong>{{ link.data.title }}</strong>
</a> </a>
{% if author %} via {{ author }}{% endif %} {% if author %} via {{ author }}{% endif %}
<div class="text-small">{% render "partials/widgets/tags.liquid", tags:link.data.tags %}</div> <div class="flex-between">
{% render "partials/widgets/tags.liquid", tags:link.data.tags %}
{% render "partials/widgets/share-button.liquid", url:link.data.link, title:link.data.title, tagMap:collections.tagMap %}
</div>
</div> </div>
{% endfor %} {% endfor %}
</div> </div>