From 99efcfe96c3346f70520abf10a406d24f8742bf6 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Fri, 2 Feb 2024 14:53:35 +0800 Subject: [PATCH] [opt] style --- _config.yml | 2 +- _data/icons.yml | 15 +++++---- layout/_partial/main/navbar/nav_tabs_blog.ejs | 4 +-- layout/_partial/main/navbar/nav_tabs_wiki.ejs | 4 +-- scripts/events/lib/utils.js | 16 ++++++++++ scripts/helpers/icon.js | 13 +------- scripts/tags/lib/navbar.js | 2 +- scripts/tags/lib/quot.js | 27 +++++++++------- source/css/_common/device.styl | 19 +++++++++--- source/css/_custom.styl | 1 + source/css/_layout/list.styl | 4 +-- source/css/_layout/pages/archives.styl | 2 +- .../css/_layout/partial/article-footer.styl | 2 +- source/css/_layout/partial/navbar.styl | 10 +++--- source/css/_layout/partial/related.styl | 2 +- source/css/_layout/sidebar/search.styl | 6 ++-- source/css/_layout/tag-plugins/banner.styl | 26 +++++++++++----- source/css/_layout/tag-plugins/navbar.styl | 31 ++++++------------- source/css/_layout/tag-plugins/quot.styl | 13 ++++---- 19 files changed, 111 insertions(+), 88 deletions(-) diff --git a/_config.yml b/_config.yml index 820a6a5..0a8673c 100755 --- a/_config.yml +++ b/_config.yml @@ -122,7 +122,7 @@ article: # 如果没有指定横幅,是否根据 tags 作为关键词搜索横幅图片? auto_banner: false # search from https://source.unsplash.com/ # 如果没有指定 excerpt 和 description,将自动取多长的内容作为文章摘要? - auto_excerpt: 200 + auto_excerpt: 128 # 分类颜色 category_color: '探索号': '#f44336' diff --git a/_data/icons.yml b/_data/icons.yml index 7ff7518..57cc118 100644 --- a/_data/icons.yml +++ b/_data/icons.yml @@ -1,3 +1,7 @@ +# 小技巧 +# - 如果更换了图标之后变得很大,请把原本的 class 复制到新的图标中 +# - 如果更换了图标之后视觉轻微偏移,可以通过 style="xx" 来修正 + solar:documents-bold-duotone: solar:chat-square-like-bold-duotone: @@ -10,18 +14,17 @@ default:goback: