diff --git a/public/assets/images/wechat.webp b/public/assets/images/wechat.webp index 658f4b6..1492135 100644 Binary files a/public/assets/images/wechat.webp and b/public/assets/images/wechat.webp differ diff --git a/src/components/Archive/Archive.less b/src/components/Archive/Archive.less index 4d24e81..beb41ca 100644 --- a/src/components/Archive/Archive.less +++ b/src/components/Archive/Archive.less @@ -22,14 +22,14 @@ section.vh-container { width: 100%; height: 2.5rem; border-radius: 1rem; - font-size: 1rem; + font-size: var(--vh-size-p); transition: background .16s; &:not(.title) { &:hover { - background-color: var(--vh-color-default-88); + background-color: var(--vh-main-color); &>i { &::before { @@ -43,9 +43,9 @@ section.vh-container { } &>em { - font-size: 0.875rem; + color: var(--vh-black-38); + font-size: var(--vh-size-span); font-weight: 500; - color: #00000080; } &>i { @@ -72,17 +72,17 @@ section.vh-container { &>span { - font-size: 1rem; - color: #000000; + font-size: var(--vh-size-p); + color: var(--vh-black-100); font-weight: 600; } } - &>em { flex-shrink: 0; width: 5.05rem; height: 3.75rem; + color: var(--vh-black-100); font-size: 1.5rem; font-weight: 600; line-height: 3.75rem; @@ -115,7 +115,7 @@ section.vh-container { flex: 1; white-space: nowrap; overflow: hidden; - color: #0000004D; + color: var(--vh-black-66); font-weight: 500; text-overflow: ellipsis; transition: all .16s; @@ -124,8 +124,8 @@ section.vh-container { &>cite { margin-left: auto; width: 7.8rem; - font-size: 0.875rem; - color: #0000004D; + font-size: var(--vh-size-span); + color: var(--vh-black-66); font-weight: 400; font-style: normal; white-space: nowrap; @@ -173,11 +173,11 @@ section.vh-container { &:not(.title) { &>em { - font-size: 0.8rem; + font-size: var(--vh-size-h3); } &>span { - font-size: 0.88rem; + font-size: var(--vh-size-h2); } } @@ -191,7 +191,7 @@ section.vh-container { } &>span { - font-size: 0.8rem; + font-size: var(--vh-size-h3); } } } diff --git a/src/components/ArticleCard/ArticleCard.less b/src/components/ArticleCard/ArticleCard.less index ab93750..f7b0f56 100644 --- a/src/components/ArticleCard/ArticleCard.less +++ b/src/components/ArticleCard/ArticleCard.less @@ -49,7 +49,7 @@ section.article-list { padding: 0.18rem 1rem; width: max-content; height: max-content; - font-size: 1rem; + font-size: var(--vh-size-p); color: #fff; border-radius: 0.66rem; transform: rotate(-45deg); @@ -99,7 +99,7 @@ section.article-list { &>.vh-article-desc { flex: 1; box-sizing: border-box; - padding: 1.25rem; + padding: 1.188rem; display: flex; flex-direction: column; width: 100%; @@ -115,7 +115,7 @@ section.article-list { &>.vh-article-categories { box-sizing: border-box; width: max-content; - font-size: 0.875rem; + font-size: var(--vh-size-span); font-weight: 700; /* 默认渐变色起始 */ --gradient-color-1: #a32cc4; @@ -168,7 +168,7 @@ section.article-list { &>.title { margin: 0; - font-size: 1.18rem; + font-size: var(--vh-size-h1); font-weight: 600; line-height: 1.36; display: -webkit-box; @@ -181,10 +181,12 @@ section.article-list { } &>.vh-article-excerpt { - margin: 0.88rem 0 0.625rem; + margin: 0.88rem 0; width: 100%; height: max-content; - font-size: 0.875rem; + color: var(--vh-black-66); + font-size: var(--vh-size-small); + letter-spacing: 0.88px; line-height: 1.28rem; display: -webkit-box; -webkit-box-orient: vertical; @@ -192,13 +194,12 @@ section.article-list { text-overflow: ellipsis; word-break: break-all; overflow: hidden; - opacity: 0.6; } &>footer { margin-top: auto; - font-size: 0.875rem; - color: #6E6E6E; + font-size: var(--vh-size-mini); + color: var(--vh-black-100); } } } diff --git a/src/components/Aside/Aside.less b/src/components/Aside/Aside.less index 834f68f..6387525 100644 --- a/src/components/Aside/Aside.less +++ b/src/components/Aside/Aside.less @@ -40,7 +40,7 @@ aside.vh-aside { align-items: center; gap: 0.68rem; width: 100%; - font-size: 1.125rem; + font-size: var(--vh-size-h1); font-weight: 600; &::before { @@ -48,7 +48,7 @@ aside.vh-aside { width: 0.25rem; height: 1.16rem; border-radius: 0.5rem; - background-color: var(--vh-color-default); + background-color: var(--vh-main-color-88); } } @@ -78,13 +78,13 @@ aside.vh-aside { width: 36%; height: 0.26rem; border-radius: 3px; - background-color: var(--vh-color-default); + background-color: var(--vh-main-color-88); } } &>.vh-aside-motto { font-size: 0.86rem; - color: #A3A3A3; + color: var(--vh-black-66); line-height: 1.5; text-align: center; } @@ -120,7 +120,7 @@ aside.vh-aside { bottom: 0; width: 100%; height: 0; - background-color: var(--vh-color-default); + background-color: var(--vh-main-color-88); transition: height 0.16s ease-in-out; z-index: -1; } @@ -161,7 +161,7 @@ aside.vh-aside { &:hover { padding-left: 0.66rem; - background-color: var(--vh-color-default-88); + background-color: var(--vh-main-color-66); &>i { background-color: transparent; @@ -174,10 +174,10 @@ aside.vh-aside { justify-content: center; width: 2rem; height: 1.75rem; - font-size: 0.875rem; + font-size: var(--vh-size-span); font-style: normal; border-radius: 0.38rem; - background-color: var(--vh-color-default-88); + background-color: var(--vh-main-color-66); transition: background 0.16s ease-in-out; overflow: hidden; } @@ -201,7 +201,7 @@ aside.vh-aside { &:hover { &>span { - background-color: var(--vh-color-default); + background-color: var(--vh-main-color); } } @@ -212,8 +212,8 @@ aside.vh-aside { width: max-content; height: 1.75rem; border-radius: 0.38rem; - background-color: var(--vh-color-default-88); - font-size: 0.875rem; + background-color: var(--vh-main-color-38); + font-size: var(--vh-size-span); font-style: normal; line-height: 1.75rem; transition: background 0.16s ease-in-out; @@ -286,7 +286,7 @@ aside.vh-aside { &>span { width: 100%; - font-size: 0.8rem; + font-size: var(--vh-size-h3); line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; diff --git a/src/components/Comment/Comment.less b/src/components/Comment/Comment.less index 32daeab..bf3dc8b 100644 --- a/src/components/Comment/Comment.less +++ b/src/components/Comment/Comment.less @@ -10,7 +10,7 @@ // 评论样式 .twikoo { - font-size: 0.88rem; + font-size: var(--vh-size-h2); img:not(.tk-avatar-img) { cursor: pointer; @@ -28,7 +28,7 @@ ol { li { color: #33333388; - font-size: 0.875rem; + font-size: var(--vh-size-span); line-height: 1.6; } @@ -39,7 +39,7 @@ :not(pre) { &>code { - background-color: var(--vh-color-default); + background-color: var(--vh-black-16); padding: .125rem .375rem; font-size: 0.8125rem; } @@ -53,9 +53,9 @@ } p { - color: #4c4948; + color: var(--vh-black-100); font-weight: 400; - font-size: 0.875rem; + font-size: var(--vh-size-span); line-height: 28px; @@ -95,7 +95,7 @@ // 及背景颜色 .el-input-group__append, .el-input-group__prepend { - background-color: var(--vh-color-default-88) !important; + background-color: var(--vh-white-88) !important; } // 评论内容样式 @@ -137,8 +137,11 @@ &>.tk-meta { &>.tk-nick { position: relative; - color: #9999ff; - line-height: 1.18rem; + + strong { + color: #9999ff; + line-height: 1.18rem; + } &.tk-nick-link { cursor: pointer; @@ -212,7 +215,7 @@ &>.tk-nick { position: relative; - color: #4c4948; + color: var(--vh-black-100); line-height: 1.18rem; &.tk-nick-link { @@ -226,7 +229,7 @@ bottom: 0; width: 0; height: 1px; - background-color: #4c4948; + background-color: var(--vh-black-88); transition: all 0.28s; } @@ -289,7 +292,7 @@ box-sizing: border-box; padding: 4px; border-radius: 0.2rem; - background-color: var(--vh-color-default-88); + background-color: var(--vh-black-6); } } diff --git a/src/components/Footer/Footer.less b/src/components/Footer/Footer.less index 668368e..98b313e 100644 --- a/src/components/Footer/Footer.less +++ b/src/components/Footer/Footer.less @@ -96,7 +96,7 @@ &.text { &>p { - font-size: 0.88rem; + font-size: var(--vh-size-h2); &>a { color: #94A3B8; diff --git a/src/components/Header/Header.astro b/src/components/Header/Header.astro index 1e8c1c4..963ee34 100644 --- a/src/components/Header/Header.astro +++ b/src/components/Header/Header.astro @@ -13,7 +13,7 @@ import "./Header.less";
- Home + Home