From 752d08c44f4048ccc598bee16bea1e849524fc34 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Mon, 28 Mar 2022 15:09:42 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=B8=8D=E7=94=A8?= =?UTF-8?q?=E7=9A=84global=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- styles/globals.css | 51 ---------------------------------------------- 1 file changed, 51 deletions(-) diff --git a/styles/globals.css b/styles/globals.css index aca04ffd..dd5d8d73 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -121,33 +121,6 @@ nav { @apply max-w-0 } -/* 渐变透明度 */ -.line-x-opacity{ - background: -webkit-linear-gradient(left, rgba(255,255,255,0), rgb(255, 255, 255)); /* Safari 5.1 - 6.0 */ - background: -o-linear-gradient(right, rgba(255, 255, 255,0), rgb(255, 255, 255)); /* Opera 11.1 - 12.0 */ - background: -moz-linear-gradient(right, rgba(255, 255, 255,0), rgba(255, 255, 255)); /* Firefox 3.6 - 15 */ - background: linear-gradient(to right, rgba(255, 255, 255,0), rgba(255, 255, 255)); /* 标准的语法(必须放在最后) */ -} - -.-line-x-opacity{ - background: -webkit-linear-gradient(right, rgba(255,255,255,0), rgb(255, 255, 255)); /* Safari 5.1 - 6.0 */ - background: -o-linear-gradient(left, rgba(255, 255, 255,0), rgb(255, 255, 255)); /* Opera 11.1 - 12.0 */ - background: -moz-linear-gradient(left, rgba(255, 255, 255,0), rgba(255, 255, 255)); /* Firefox 3.6 - 15 */ - background: linear-gradient(to left, rgba(255, 255, 255,0), rgba(255, 255, 255)); /* 标准的语法(必须放在最后) */ -} -.dark .line-x-opacity{ - background: -webkit-linear-gradient(left, rgba(31, 41, 55,0), rgb(31, 41, 55)); /* Safari 5.1 - 6.0 */ - background: -o-linear-gradient(right, rgba(31, 41, 55,0), rgb(31, 41, 55)); /* Opera 11.1 - 12.0 */ - background: -moz-linear-gradient(right, rgba(31, 41, 55,0), rgba(31, 41, 55)); /* Firefox 3.6 - 15 */ - background: linear-gradient(to right, rgba(31, 41, 55,0), rgba(31, 41, 55)); /* 标准的语法(必须放在最后) */ -} - -.dark .-line-x-opacity{ - background: -webkit-linear-gradient(right, rgba(31, 41, 55,0), rgb(31, 41, 55)); /* Safari 5.1 - 6.0 */ - background: -o-linear-gradient(left, rgba(31, 41, 55,0), rgb(31, 41, 55)); /* Opera 11.1 - 12.0 */ - background: -moz-linear-gradient(left, rgba(31, 41, 55,0), rgb(31, 41, 55)); /* Firefox 3.6 - 15 */ - background: linear-gradient(to left, rgba(31, 41, 55,0), rgb(31, 41, 55)); /* 标准的语法(必须放在最后) */ -} .glassmorphism{ background: hsla(0, 0%, 100%, .75); @@ -165,30 +138,6 @@ nav { background: none !important; } -.article-cover{ - -webkit-text-size-adjust: 100%; - font-size: 14px; - font-family: -apple-system,SF UI Text,Arial,PingFang SC,Hiragino Sans GB,Microsoft YaHei,WenQuanYi Micro Hei,sans-serif; - -webkit-font-smoothing: antialiased; - color: rgba(0,0,0,.75); - font-variant-ligatures: common-ligatures; - line-height: 1.625; - tab-size: 4; - outline: 0; - font-weight: normal; - -webkit-box-sizing: border-box; - padding: 0; - margin: 0; - position: relative; - z-index: 998; - padding-top: 160px; - bottom: -1px; - margin-top: -200px; - width: 100%; - background-image: linear-gradient(-180deg,rgba(255,255,255,0) 0%,#fff 70%); - padding-bottom: 34px; -} - .shadow-text{ text-shadow: 0.1em 0.1em 0.2em black; } From a7fe31da71664f06e57a221d05f6fe17e9a22d1b Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Mon, 28 Mar 2022 15:09:55 +0800 Subject: [PATCH 2/7] =?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
-
    +
    • {locale.COMMON.AUTHOR}: diff --git a/themes/hexo/components/ArticleDetail.js b/themes/hexo/components/ArticleDetail.js index 38c7e073..8ba94250 100644 --- a/themes/hexo/components/ArticleDetail.js +++ b/themes/hexo/components/ArticleDetail.js @@ -38,7 +38,7 @@ export default function ArticleDetail (props) { }) return (
      -
      +
      {/* Notion文章主体 */}
      diff --git a/themes/hexo/components/ArticleLock.js b/themes/hexo/components/ArticleLock.js index 71d2354f..b7165362 100644 --- a/themes/hexo/components/ArticleLock.js +++ b/themes/hexo/components/ArticleLock.js @@ -28,7 +28,7 @@ export const ArticleLock = props => {
      {locale.COMMON.ARTICLE_LOCK_TIPS}
      -
      +
       {locale.COMMON.SUBMIT}
      diff --git a/themes/hexo/components/BlogPostArchive.js b/themes/hexo/components/BlogPostArchive.js index 5c3bc169..610e575a 100644 --- a/themes/hexo/components/BlogPostArchive.js +++ b/themes/hexo/components/BlogPostArchive.js @@ -16,10 +16,10 @@ const BlogPostArchive = ({ posts = [], archiveTitle }) => {
      {archiveTitle}
        {posts.map(post => ( -
      • +
      • {post.date.start_date}   - {post.title} + {post.title}
      • diff --git a/themes/hexo/components/BlogPostCard.js b/themes/hexo/components/BlogPostCard.js index 13e63e4c..6fae258b 100644 --- a/themes/hexo/components/BlogPostCard.js +++ b/themes/hexo/components/BlogPostCard.js @@ -8,23 +8,23 @@ import CONFIG_HEXO from '../config_hexo' const BlogPostCard = ({ post, showSummary }) => { const showPreview = CONFIG_HEXO.POST_LIST_PREVIEW && post.blockMap return ( -
        +
        - + {post.title} -
        + - {(!showPreview || showSummary) &&

        + {(!showPreview || showSummary) &&

        {post.summary}

        } @@ -44,7 +44,7 @@ const BlogPostCard = ({ post, showSummary }) => {
        - + {post.category} diff --git a/themes/hexo/components/Card.js b/themes/hexo/components/Card.js index 288b826f..c5c2aeb3 100644 --- a/themes/hexo/components/Card.js +++ b/themes/hexo/components/Card.js @@ -1,7 +1,7 @@ const Card = ({ children, headerSlot, className }) => { return
        <>{headerSlot} -
        +
        {children}
        diff --git a/themes/hexo/components/CategoryGroup.js b/themes/hexo/components/CategoryGroup.js index a14e15d9..4dd17282 100644 --- a/themes/hexo/components/CategoryGroup.js +++ b/themes/hexo/components/CategoryGroup.js @@ -11,8 +11,8 @@ const CategoryGroup = ({ currentCategory, categories }) => { const selected = currentCategory === category.name return
        {category.name}({category.count})
        diff --git a/themes/hexo/components/Footer.js b/themes/hexo/components/Footer.js index 2625e034..44a19a55 100644 --- a/themes/hexo/components/Footer.js +++ b/themes/hexo/components/Footer.js @@ -7,12 +7,12 @@ const Footer = ({ title }) => { const startYear = BLOG.SINCE && BLOG.SINCE !== currentYear && BLOG.SINCE + '-' return (