Blog layout updates

This commit is contained in:
Karol Orzeł 2015-01-22 16:29:30 +01:00
parent cbd1970a81
commit c1f1100521
4 changed files with 30 additions and 9 deletions

View file

@ -642,15 +642,24 @@ td {
font-size: 1.2rem; } font-size: 1.2rem; }
.tags { .tags {
margin: 0;
padding: 0;
display: inline;
background-color: rgba(101, 97, 97, 0.1); background-color: rgba(101, 97, 97, 0.1);
padding: 0.7rem 1rem; padding: 0.7rem 1rem;
margin-bottom: 0.2rem; } margin-bottom: 0.2rem;
.tags a { list-style: none; }
.tags li {
display: inline-block; display: inline-block;
font-size: 1rem; font-size: 1rem;
text-transform: uppercase; text-transform: uppercase;
color: #9A9898;
font-family: "novecento_sans_widedemibold", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif; } font-family: "novecento_sans_widedemibold", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif; }
.tags li a {
color: #9A9898; }
.tags li a:after {
content: ","; }
.tags li:last-child a:after {
display: none; }
.archives, .related-pages { .archives, .related-pages {
padding: 0; padding: 0;

File diff suppressed because one or more lines are too long

View file

@ -123,15 +123,27 @@
// Tags // Tags
.tags { .tags {
margin: 0;
padding: 0;
display: inline;
background-color: transparentize($light-gray, 0.9); background-color: transparentize($light-gray, 0.9);
padding: 0.7rem 1rem; padding: 0.7rem 1rem;
margin-bottom: 0.2rem; margin-bottom: 0.2rem;
a { list-style: none;
li {
display: inline-block; display: inline-block;
font-size: $core-font-size; font-size: $core-font-size;
text-transform: uppercase; text-transform: uppercase;
color: $core-text;
font-family: $font-family-header; font-family: $font-family-header;
a {
color: $core-text;
&:after {
content: ",";
}
}
&:last-child {
a:after {display: none;}
}
} }
} }

View file

@ -18,12 +18,12 @@
</span> </span>
{% if page.taxonomy.tag %} {% if page.taxonomy.tag %}
<span class="tags"> <ul class="tags">
<i class="fa fa-tag"></i> <i class="fa fa-tag"></i>
{% for tag in page.taxonomy.tag %} {% for tag in page.taxonomy.tag %}
<a href="{{ base_url }}/tag:{{ tag }}">{{ tag }}</a>, <li><a href="{{ base_url }}/tag:{{ tag }}">{{ tag }}</a></li>
{% endfor %} {% endfor %}
</span> </ul>
{% endif %} {% endif %}
{% if big_header %} {% if big_header %}