Modified categories style

This commit is contained in:
Tommy Chen
2012-12-16 01:29:25 +08:00
parent 1be6b7a422
commit 4aaf039938
4 changed files with 26 additions and 17 deletions
+2 -2
View File
@@ -37,10 +37,10 @@ if (page.archive){
<footer>
<time datetime="<%= item.date.toDate().toISOString() %>"><%= item.date.format('MMM D') %></time>
<% if (item.categories){ %>
<div class="cats"><%- partial('post/taxonomy', {taxonomy: item.categories, separator: ', '}) %></div>
<span class="cats"><%- partial('post/taxonomy', {taxonomy: item.categories, separator: ', '}) %></span>
<% } %>
<% if (item.tags){ %>
<div class="tags"><%- partial('post/taxonomy', {taxonomy: item.tags, separator: ', '}) %></div>
<span class="tags"><%- partial('post/taxonomy', {taxonomy: item.tags, separator: ', '}) %></span>
<% } %>
</footer>
</article>
+1 -1
View File
@@ -1,3 +1,3 @@
<% if (item.categories){ %>
<div class="categories"><%- partial('taxonomy', {taxonomy: item.categories, separator: ''}) %></div>
<div class="cats"><%- partial('taxonomy', {taxonomy: item.categories, separator: ''}) %></div>
<% } %>
+9 -3
View File
@@ -85,14 +85,20 @@
font-family font-icon
padding-right 10px
.tags
display inline-block
.cats, .tags
margin-left 25px
&:before
content "\f02c"
font-family font-icon
padding-right 10px
.cats
&:before
content "\f07c"
.tags
&:before
content "\f02c"
.archive
box-shadow none
border none
+14 -11
View File
@@ -224,37 +224,40 @@ article
color color-meta
font-size 0.9em
position absolute
top 30px
top 10px
left 0 - meta-width - 20px
width meta-width
z-index 1
a
color color-meta
display block
line-height 1.6em
&:hover
color darken(color-meta, 20%)
text-decoration none
&:before
font-family font-icon
.cats, .tags, .comment
margin-top 20px
.cats
a
&:before
content "\f07b"
padding-right 10px
.tags
line-height 1.6em
a
&:before
content "\f02b"
font-family font-icon
padding-right 10px
&:hover
text-decoration none
.comment
margin-top 20px
&:before
content "\f075"
font-family font-icon
padding-right 8px
&:hover
text-decoration none
.gallery
overflow hidden
position relative