This commit is contained in:
xaoxuu 2021-07-31 17:29:50 +08:00
parent 47d879efb5
commit ddd4c28c6b
2 changed files with 5 additions and 13 deletions

View File

@ -13,7 +13,6 @@ if (page.menu_id == undefined) {
<% site.tags.sort('length', -1).each(function(tag){ %> <% site.tags.sort('length', -1).each(function(tag){ %>
<a class='tag' href="<%= url_for(tag.path) %>"> <a class='tag' href="<%= url_for(tag.path) %>">
<span class='name'><%= tag.name %></span> <span class='name'><%= tag.name %></span>
<span class='badge fs12'>x<%- tag.length %></span>
</a> </a>
<% }) %> <% }) %>
</article> </article>

View File

@ -52,18 +52,11 @@
align-items: center align-items: center
position: relative position: relative
color: var(--text-p2) color: var(--text-p2)
margin: 4px 8px margin: 4px
padding: 4px 8px padding: 4px 8px
border-radius: 64px border-radius: 4px
.badge background: var(--block)
color: $color-theme font-size: $fs-14
margin-left: 4px
font-weight: 700
font-family: $ff-code
opacity: .75
align-self: flex-start
&:hover &:hover
color: var(--text-p0) color: var(--text-p0)
background: var(--block) background: var(--block-hover)
.badge
opacity: 1