Blog layout polishing

This commit is contained in:
Karol Orzeł 2015-01-22 17:29:21 +01:00
parent 109c71ff9c
commit 278e731ebd
5 changed files with 21 additions and 9 deletions

View File

@ -661,12 +661,17 @@ td {
display: none; } display: none; }
.archives, .related-pages { .archives, .related-pages {
margin: 0;
padding: 0; padding: 0;
list-style: none; } list-style: none; }
.archives li, .related-pages li { .archives li, .related-pages li {
line-height: 2rem; } line-height: 2rem; }
.archives li:last-child, .related-pages li:last-child { .archives li:last-child, .related-pages li:last-child {
border-bottom: 0; } border-bottom: 0; }
.archives a, .related-pages a {
color: #9A9898; }
.archives a:hover, .related-pages a:hover {
color: #87b672; }
.related-pages li a { .related-pages li a {
display: block; } display: block; }

File diff suppressed because one or more lines are too long

View File

@ -147,6 +147,7 @@
// Archives & Related-Pages // Archives & Related-Pages
.archives, .related-pages { .archives, .related-pages {
margin: 0;
padding: 0; padding: 0;
list-style: none; list-style: none;
li { li {
@ -155,6 +156,12 @@
border-bottom: 0; border-bottom: 0;
} }
} }
a {
color: $core-text;
&:hover {
color: $core-accent;
}
}
} }
.related-pages { .related-pages {

View File

@ -2,10 +2,10 @@
{% for month,items in archives_data %} {% for month,items in archives_data %}
<li> <li>
<a href="{{ base_url }}/archives_month:{{ month|date('M_Y')|lower|e('url') }}"> <a href="{{ base_url }}/archives_month:{{ month|date('M_Y')|lower|e('url') }}">
{% if archives_show_count %}
<span class="label">{{ items|length }}</span>
{% endif %}
<span class="archive_date">{{ month }}</span> <span class="archive_date">{{ month }}</span>
{% if archives_show_count %}
<span>({{ items|length }})</span>
{% endif %}
</a> </a>
</li> </li>
{% endfor %} {% endfor %}

View File

@ -2,11 +2,11 @@
{% if taxlist %} {% if taxlist %}
<span class="tags"> <ul class="archives">
{% for tax,value in taxlist[taxonomy] %} {% for tax,value in taxlist[taxonomy] %}
<li>
<a href="{{ base_url }}/tag:{{ tax|e('url') }}">{{ tax }}</a> <a href="{{ base_url }}/tag:{{ tax|e('url') }}">{{ tax }} <span>({{ tax|length }})</span></a>
</li>
{% endfor %} {% endfor %}
</span> </ul>
{% endif %} {% endif %}