Skip to content

Commit

Permalink
Update style of tags in tag list
Browse files Browse the repository at this point in the history
  • Loading branch information
mmistakes committed Dec 24, 2014
1 parent b5f65ab commit 39fb94c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 10 additions & 8 deletions _sass/_page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -172,22 +172,24 @@ body {
.tag {
display: inline-block;
margin: 4px;
padding: 2px 6px;
background-color: lighten($base-color,60);
color: $white;
@include rounded(3px);
color: $white;
span {
vertical-align: super;
@include font-rem(10);
float: left;
padding: 2px 6px;
}
.term {
background-color: lighten($base-color,60);
@include border-radius(0,0,3px,3px);
}
.count {
background-color: lighten($base-color,40);
@include border-radius(3px,3px,0,0);
}
&:hover {
background-color: lighten($base-color,50);
}
&:active {
@include translate(0, 1px);
@include box-shadow(0 0 1px rgba($base-color,0.2));
}
}
.entry-reading-time {
float: right;
Expand Down
2 changes: 1 addition & 1 deletion tags/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<ul class="entry-meta inline-list">
{% for item in (0..site.tags.size) %}{% unless forloop.last %}
{% capture this_word %}{{ tags_list[item] | strip_newlines }}{% endcapture %}
<li><a href="#{{ this_word }}" class="tag">{{ this_word }} <span>{{ site.tags[this_word].size }}</span></a></li>
<li><a href="#{{ this_word }}" class="tag"><span class="term">{{ this_word }}</span> <span class="count">{{ site.tags[this_word].size }}</span></a></li>
{% endunless %}{% endfor %}
</ul>

Expand Down

0 comments on commit 39fb94c

Please sign in to comment.