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"> <section class="outer">
<% if (site.categories.length){ %> <% if (site.categories.length){ %>
<h1 class="page-type-title"><%= __('categories') %></h1> <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> </section>

View File

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