fix: style
This commit is contained in:
parent
8c7a957f6e
commit
ef3c7271ef
@ -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>
|
@ -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%);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user