Reduce vertical space for articles list on large screens
This commit is contained in:
parent
522ca50ae3
commit
8fa755eabc
2 changed files with 13 additions and 2 deletions
|
@ -49,3 +49,14 @@ a.tag:not(:first-of-type):before {
|
|||
#metadata {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
#articles-list time {
|
||||
display: inline-block;
|
||||
min-width: 11ex;
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
#articles-list time {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,12 +15,12 @@
|
|||
{% block title %}{% if view.html_title %}{{ view.html_title }} | {% endif %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<section>
|
||||
<section id="articles-list">
|
||||
<h2 id="blog-posts">{% block main_title %}{{ view.main_title }}{% endblock %}</h2>
|
||||
{% block search_bar %}{% endblock %}
|
||||
{% for article in articles %}
|
||||
<p>
|
||||
{% include "articles/snippets/datetime.html" %}<br>
|
||||
{% include "articles/snippets/datetime.html" %}
|
||||
<a href="{% url 'article-detail' slug=article.slug %}">{{ article.title }}</a>
|
||||
</p>
|
||||
{% empty %}
|
||||
|
|
Reference in a new issue