From bc3a17041514b661ef289baf5d5882a8ccd841f7 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Fri, 9 Jul 2021 23:02:13 +0800 Subject: [PATCH] css --- layout/categories.ejs | 2 +- layout/tags.ejs | 2 +- source/css/_layout/pages/archives.styl | 18 +++++++++++------- source/css/_layout/partial/navbar.styl | 2 -- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/layout/categories.ejs b/layout/categories.ejs index bdf4c14..9e9dc49 100755 --- a/layout/categories.ejs +++ b/layout/categories.ejs @@ -12,7 +12,7 @@ if (page.menu_id == undefined) {
<% site.categories.sort('path').each(function(category){ %>
- + <%- category.name %> (<%- category.posts.length %>) diff --git a/layout/tags.ejs b/layout/tags.ejs index 3305363..ad4bf42 100755 --- a/layout/tags.ejs +++ b/layout/tags.ejs @@ -12,7 +12,7 @@ if (page.menu_id == undefined) {
<% site.tags.sort('length', -1).each(function(tag){ %> - <%= tag.name %> + <%= tag.name %> x<%- tag.length %> <% }) %> diff --git a/source/css/_layout/pages/archives.styl b/source/css/_layout/pages/archives.styl index fd022a8..3f7fe3d 100644 --- a/source/css/_layout/pages/archives.styl +++ b/source/css/_layout/pages/archives.styl @@ -4,7 +4,7 @@ align-items: baseline margin: 0.25rem 0 font-weight: 500 - color: var(--text-p1) + color: var(--text-p2) &:hover color: $color-hover time @@ -22,24 +22,28 @@ font-weight: 500 padding: 0.5rem 1rem border-radius: $border-block - color: var(--text-p1) + color: var(--text-p2) + align-items: center &:hover background: var(--block) - color: $color-hover + color: var(--text-p1) .badge opacity 0.5 - margin-left: 4px + font-size: $fs-13 + margin-left: .5em .post-list .post-card#tags a.tag display: inline-flex align-items: center - margin: 0.5rem position: relative font-weight: 500 - color: var(--text-p1) + color: var(--text-p2) + padding: .5rem + border-radius: $border-block &:hover - color: $color-hover + color: var(--text-p1) + background: var(--block) span margin: 0 0.25rem .badge diff --git a/source/css/_layout/partial/navbar.styl b/source/css/_layout/partial/navbar.styl index b840cdc..4c81ec3 100644 --- a/source/css/_layout/partial/navbar.styl +++ b/source/css/_layout/partial/navbar.styl @@ -48,8 +48,6 @@ nav.cap &.active background: var(--card) box-shadow: $boxshadow-button - cursor: pointer - pointer-events: none &.active:after background: $color-theme border-radius: 2px