From a7fe31da71664f06e57a221d05f6fe17e9a22d1b Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Mon, 28 Mar 2022 15:09:55 +0800 Subject: [PATCH] =?UTF-8?q?hexo=20=E4=B8=BB=E9=A2=98=E9=A2=9C=E8=89=B2?= =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tailwind.config.js | 5 +++++ themes/hexo/LayoutBase.js | 4 ++-- themes/hexo/LayoutCategoryIndex.js | 2 +- themes/hexo/LayoutSearch.js | 2 +- themes/hexo/LayoutSlug.js | 2 +- themes/hexo/components/ArticleCopyright.js | 2 +- themes/hexo/components/ArticleDetail.js | 2 +- themes/hexo/components/ArticleLock.js | 2 +- themes/hexo/components/BlogPostArchive.js | 4 ++-- themes/hexo/components/BlogPostCard.js | 10 +++++----- themes/hexo/components/Card.js | 2 +- themes/hexo/components/CategoryGroup.js | 4 ++-- themes/hexo/components/Footer.js | 6 +++--- themes/hexo/components/InfoCard.js | 4 ++-- themes/hexo/components/LatestPostsGroup.js | 6 +++--- themes/hexo/components/Logo.js | 2 +- themes/hexo/components/MenuButtonGroupTop.js | 2 +- themes/hexo/components/MenuGroupCard.js | 4 ++-- themes/hexo/components/MenuList.js | 2 +- themes/hexo/components/PaginationNumber.js | 8 ++++---- themes/hexo/components/Progress.js | 2 +- themes/hexo/components/SideRight.js | 2 +- themes/hexo/components/SocialButton.js | 14 +++++++------- themes/hexo/components/TagItemMini.js | 4 ++-- themes/hexo/components/TopNav.js | 6 +++--- 25 files changed, 54 insertions(+), 49 deletions(-) diff --git a/tailwind.config.js b/tailwind.config.js index bd57d456..829bee9f 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -13,6 +13,11 @@ module.exports = { }, night: { DEFAULT: BLOG.BACKGROUND_DARK || '#111827' + }, + hexo: { + 'background-gray': '#f5f5f5', + 'black-gray': '#101414', + 'light-gray': '#e5e5e5' } } } diff --git a/themes/hexo/LayoutBase.js b/themes/hexo/LayoutBase.js index 0c4b7600..4688c7cf 100644 --- a/themes/hexo/LayoutBase.js +++ b/themes/hexo/LayoutBase.js @@ -44,7 +44,7 @@ const LayoutBase = (props) => { return () => document.removeEventListener('scroll', scrollListener) }, [show]) - return (
+ return (
@@ -64,7 +64,7 @@ const LayoutBase = (props) => { {/* 右下角悬浮 */} -
+
{floatSlot} diff --git a/themes/hexo/LayoutCategoryIndex.js b/themes/hexo/LayoutCategoryIndex.js index 7b0e35a0..1556861a 100644 --- a/themes/hexo/LayoutCategoryIndex.js +++ b/themes/hexo/LayoutCategoryIndex.js @@ -25,7 +25,7 @@ export const LayoutCategoryIndex = props => {
diff --git a/themes/hexo/LayoutSearch.js b/themes/hexo/LayoutSearch.js index 60af7cd0..9b0803ec 100644 --- a/themes/hexo/LayoutSearch.js +++ b/themes/hexo/LayoutSearch.js @@ -55,7 +55,7 @@ export const LayoutSearch = props => { >
diff --git a/themes/hexo/LayoutSlug.js b/themes/hexo/LayoutSlug.js index 2103a3d3..76ff42de 100644 --- a/themes/hexo/LayoutSlug.js +++ b/themes/hexo/LayoutSlug.js @@ -53,7 +53,7 @@ export const LayoutSlug = props => { showTag={false} floatSlot={floatSlot} > -
+
{!lock && } {lock && }
diff --git a/themes/hexo/components/ArticleCopyright.js b/themes/hexo/components/ArticleCopyright.js index aadf73b9..9275a664 100644 --- a/themes/hexo/components/ArticleCopyright.js +++ b/themes/hexo/components/ArticleCopyright.js @@ -17,7 +17,7 @@ export default function ArticleCopyright () { const { locale } = useGlobal() return
-