fix: style

This commit is contained in:
shenyu 2020-01-18 22:13:43 +08:00
parent 8c7a957f6e
commit ef3c7271ef
2 changed files with 23 additions and 8 deletions

View File

@ -1,6 +1,17 @@
<section class="outer">
<% if (site.categories.length){ %>
<h1 class="page-type-title"><%= __('categories') %></h1>
<%- list_categories({show_count: theme.show_count}) %>
<!-- <%- list_categories({show_count: theme.show_count}) %> -->
<ul class="category-list">
<% site.categories.sort('name').each(function(item){ %>
<% if(item.posts.length){ %>
<a class="category-list-link" href="<%- config.root %><%- item.path %>" title="<%= item.name %>">
<li class="category-list-item">
<%= item.name %><i><%= item.posts.length %></i>
</li>
</a>
<% } %>
<% }); %>
</ul>
<% } %>
</section>

View File

@ -25,16 +25,20 @@
margin-right .5rem
display inline-block
vertical-align middle
&:hover
border: 1px solid darken(water,20%)
box-shadow: 0 3px 5px water
a
color: darken(water,30%);
&:before
color: darken(water,30%);
i
font-style normal
margin-left 10px
color: darken(water,20%)
a
display inline-block
vertical-align middle
text-decoration: none
color: body-color
&:hover
.category-list-item
border: 1px solid darken(water,20%)
box-shadow: 0 3px 5px water
color: darken(water,30%);
&:before
color: darken(water,30%);