From 2ad49ddc6c7f62184996de938dab3a6f8477f881 Mon Sep 17 00:00:00 2001 From: LooseLi <1329307562@qq.com> Date: Mon, 19 May 2025 11:36:59 +0800 Subject: [PATCH 01/10] =?UTF-8?q?feat:=20=E4=B8=BB=E9=A2=98=E8=89=B2?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/hexo/config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/hexo/config.js b/themes/hexo/config.js index 024c12e0..8e6be65d 100644 --- a/themes/hexo/config.js +++ b/themes/hexo/config.js @@ -39,6 +39,8 @@ const CONFIG = { HEXO_WIDGET_TO_TOP: true, HEXO_WIDGET_TO_COMMENT: true, // 跳到评论区 HEXO_WIDGET_DARK_MODE: true, // 夜间模式 - HEXO_WIDGET_TOC: true // 移动端悬浮目录 + HEXO_WIDGET_TOC: true, // 移动端悬浮目录 + + HEXO_THEME_COLOR: '#98FB98' // 主题色配置(默认为 #928CEE) } export default CONFIG From b01be706e90198aa59d6771ba897e917520b0b95 Mon Sep 17 00:00:00 2001 From: LooseLi <1329307562@qq.com> Date: Mon, 19 May 2025 11:43:11 +0800 Subject: [PATCH 02/10] =?UTF-8?q?feat:=20=E4=B8=BB=E9=A2=98=E8=89=B2?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/hexo/config.js | 2 +- themes/hexo/style.js | 107 +++++++++++++++++++++++++----------------- 2 files changed, 64 insertions(+), 45 deletions(-) diff --git a/themes/hexo/config.js b/themes/hexo/config.js index 8e6be65d..29e6f351 100644 --- a/themes/hexo/config.js +++ b/themes/hexo/config.js @@ -41,6 +41,6 @@ const CONFIG = { HEXO_WIDGET_DARK_MODE: true, // 夜间模式 HEXO_WIDGET_TOC: true, // 移动端悬浮目录 - HEXO_THEME_COLOR: '#98FB98' // 主题色配置(默认为 #928CEE) + HEXO_THEME_COLOR: '#3CB371' // 主题色配置(默认为 #928CEE) } export default CONFIG diff --git a/themes/hexo/style.js b/themes/hexo/style.js index 33d2878a..6c361e8f 100644 --- a/themes/hexo/style.js +++ b/themes/hexo/style.js @@ -1,76 +1,95 @@ /* eslint-disable react/no-unknown-property */ +import { siteConfig } from '@/lib/config' +import CONFIG from './config' + /** * 这里的css样式只对当前主题生效 * 主题客制化css * @returns */ const Style = () => { - return () + * { + scrollbar-width: thin; + scrollbar-color: var(--theme-color) transparent; + } + `} + ) } export { Style } From 1b8601e2a71e99ef0998288c6ea170719d6c8f7d Mon Sep 17 00:00:00 2001 From: LooseLi <1329307562@qq.com> Date: Mon, 19 May 2025 14:48:06 +0800 Subject: [PATCH 03/10] =?UTF-8?q?feat:=20=E9=A6=96=E9=A1=B5=E4=B8=BB?= =?UTF-8?q?=E9=A2=98=E8=89=B2=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/hexo/style.js | 56 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/themes/hexo/style.js b/themes/hexo/style.js index 6c361e8f..60554f62 100644 --- a/themes/hexo/style.js +++ b/themes/hexo/style.js @@ -42,6 +42,62 @@ const Style = () => { color: var(--theme-color); } + /* 下拉菜单悬浮背景色 */ + li[class*='hover:bg-indigo-500']:hover { + background-color: var(--theme-color) !important; + } + + /* tag标签悬浮背景色 */ + a[class*='hover:bg-indigo-400']:hover { + background-color: var(--theme-color) !important; + } + + /* 社交按钮悬浮颜色 */ + i[class*='hover:text-indigo-600']:hover { + color: var(--theme-color) !important; + } + .dark i[class*='dark:hover:text-indigo-400']:hover { + color: var(--theme-color) !important; + } + + /* MenuGroup 悬浮颜色 */ + #theme-hexo #nav div[class*='hover:text-indigo-600']:hover { + color: var(--theme-color) !important; + } + .dark #theme-hexo #nav div[class*='dark:hover:text-indigo-400']:hover { + color: var(--theme-color) !important; + } + + /* 最新发布文章悬浮颜色 */ + div[class*='hover:text-indigo-600']:hover, + div[class*='hover:text-indigo-400']:hover { + color: var(--theme-color) !important; + } + + /* 分页组件颜色 */ + .text-indigo-400 { + color: var(--theme-color) !important; + } + .border-indigo-400 { + border-color: var(--theme-color) !important; + } + a[class*='hover:bg-indigo-400']:hover { + background-color: var(--theme-color) !important; + color: white !important; + } + .bg-indigo-400 { + background-color: var(--theme-color) !important; + } + a[class*='hover:bg-indigo-600']:hover { + background-color: var(--theme-color) !important; + color: white !important; + } + + /* 右下角悬浮按钮背景色 */ + .bg-indigo-500 { + background-color: var(--theme-color) !important; + } + /* 设置了从上到下的渐变黑色 */ #theme-hexo .header-cover::before { content: ''; From af819ddf803b8f22b6a6b9a306f7565315b60ecd Mon Sep 17 00:00:00 2001 From: LooseLi <1329307562@qq.com> Date: Mon, 19 May 2025 15:19:15 +0800 Subject: [PATCH 04/10] =?UTF-8?q?feat:=20=E6=96=87=E7=AB=A0=E9=A1=B5?= =?UTF-8?q?=E4=B8=BB=E9=A2=98=E8=89=B2=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/hexo/style.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/themes/hexo/style.js b/themes/hexo/style.js index 60554f62..6b9d0e97 100644 --- a/themes/hexo/style.js +++ b/themes/hexo/style.js @@ -98,6 +98,35 @@ const Style = () => { background-color: var(--theme-color) !important; } + /* 文章浏览进度条颜色 */ + .bg-indigo-600 { + background-color: var(--theme-color) !important; + } + + /* 当前浏览位置标题高亮颜色 */ + .border-indigo-800 { + border-color: var(--theme-color) !important; + } + .text-indigo-800 { + color: var(--theme-color) !important; + } + .dark .dark\:text-indigo-400 { + color: var(--theme-color) !important; + } + .dark .dark\:border-indigo-400 { + border-color: var(--theme-color) !important; + } + + /* 目录项悬浮时的字体颜色 */ + a[class*='hover:text-indigo-800']:hover { + color: var(--theme-color) !important; + } + + /* 文章底部版权声明组件左侧边框线颜色 */ + .border-indigo-500 { + border-color: var(--theme-color) !important; + } + /* 设置了从上到下的渐变黑色 */ #theme-hexo .header-cover::before { content: ''; From 67c16093c85257166daa9f8c766d71d67f82d06d Mon Sep 17 00:00:00 2001 From: LooseLi <1329307562@qq.com> Date: Mon, 19 May 2025 15:51:13 +0800 Subject: [PATCH 05/10] =?UTF-8?q?feat:=20=E6=96=87=E7=AB=A0=E5=BD=92?= =?UTF-8?q?=E6=A1=A3=E9=A1=B5=E4=B8=BB=E9=A2=98=E8=89=B2=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/hexo/config.js | 2 +- themes/hexo/style.js | 18 ++++++++++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/themes/hexo/config.js b/themes/hexo/config.js index 29e6f351..c4b0be31 100644 --- a/themes/hexo/config.js +++ b/themes/hexo/config.js @@ -41,6 +41,6 @@ const CONFIG = { HEXO_WIDGET_DARK_MODE: true, // 夜间模式 HEXO_WIDGET_TOC: true, // 移动端悬浮目录 - HEXO_THEME_COLOR: '#3CB371' // 主题色配置(默认为 #928CEE) + HEXO_THEME_COLOR: '#928CEE' // 主题色配置(默认为 #928CEE) } export default CONFIG diff --git a/themes/hexo/style.js b/themes/hexo/style.js index 6b9d0e97..b3c399f4 100644 --- a/themes/hexo/style.js +++ b/themes/hexo/style.js @@ -102,7 +102,6 @@ const Style = () => { .bg-indigo-600 { background-color: var(--theme-color) !important; } - /* 当前浏览位置标题高亮颜色 */ .border-indigo-800 { border-color: var(--theme-color) !important; @@ -116,7 +115,6 @@ const Style = () => { .dark .dark\:border-indigo-400 { border-color: var(--theme-color) !important; } - /* 目录项悬浮时的字体颜色 */ a[class*='hover:text-indigo-800']:hover { color: var(--theme-color) !important; @@ -127,6 +125,22 @@ const Style = () => { border-color: var(--theme-color) !important; } + /* 归档页面文章列表项悬浮时左侧边框线颜色 */ + li[class*='hover:border-indigo-500']:hover { + border-color: var(--theme-color) !important; + } + .dark li[class*='dark:hover:border-indigo-300']:hover { + border-color: var(--theme-color) !important; + } + /* 深色模式下,归档页面文章列表项默认状态左侧边框线颜色 */ + .dark li[class*='dark:border-indigo-400'] { + border-color: var(--theme-color) !important; + } + /* 深色模式下,归档页面文章标题悬浮时的文字颜色 */ + .dark a[class*='dark:hover:text-indigo-300']:hover { + color: var(--theme-color) !important; + } + /* 设置了从上到下的渐变黑色 */ #theme-hexo .header-cover::before { content: ''; From a095c36d25200472f6e1e43e4d43f18df8405fb5 Mon Sep 17 00:00:00 2001 From: LooseLi <1329307562@qq.com> Date: Mon, 19 May 2025 16:48:56 +0800 Subject: [PATCH 06/10] =?UTF-8?q?feat:=20=E6=96=87=E7=AB=A0=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E4=B8=BB=E9=A2=98=E8=89=B2=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/hexo/style.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/themes/hexo/style.js b/themes/hexo/style.js index b3c399f4..4c60ae26 100644 --- a/themes/hexo/style.js +++ b/themes/hexo/style.js @@ -42,6 +42,14 @@ const Style = () => { color: var(--theme-color); } + /* 文章列表中标题行悬浮时的文字颜色 */ + h2:hover .menu-link { + color: var(--theme-color) !important; + } + .dark h2:hover .menu-link { + color: var(--theme-color) !important; + } + /* 下拉菜单悬浮背景色 */ li[class*='hover:bg-indigo-500']:hover { background-color: var(--theme-color) !important; From dc31d65d0d18244f859ba1d6a75bfcf511302a24 Mon Sep 17 00:00:00 2001 From: LooseLi <1329307562@qq.com> Date: Mon, 19 May 2025 18:08:07 +0800 Subject: [PATCH 07/10] =?UTF-8?q?feat:=20=E9=80=82=E9=85=8D=E6=B7=B1?= =?UTF-8?q?=E8=89=B2=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/hexo/style.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/themes/hexo/style.js b/themes/hexo/style.js index 4c60ae26..98318422 100644 --- a/themes/hexo/style.js +++ b/themes/hexo/style.js @@ -123,10 +123,25 @@ const Style = () => { .dark .dark\:border-indigo-400 { border-color: var(--theme-color) !important; } + .dark .dark\:border-white { + border-color: var(--theme-color) !important; + } /* 目录项悬浮时的字体颜色 */ a[class*='hover:text-indigo-800']:hover { color: var(--theme-color) !important; } + /* 深色模式下目录项的默认文字颜色和边框线颜色 */ + .dark .catalog-item { + color: white !important; + border-color: white !important; + } + .dark .catalog-item:hover { + color: var(--theme-color) !important; + } + /* 深色模式下当前高亮标题的边框线颜色 */ + .dark .catalog-item.font-bold { + border-color: var(--theme-color) !important; + } /* 文章底部版权声明组件左侧边框线颜色 */ .border-indigo-500 { From e82f4d88fa6f555c7dcfffe40421899af9088b50 Mon Sep 17 00:00:00 2001 From: LooseLi <1329307562@qq.com> Date: Tue, 20 May 2025 10:39:13 +0800 Subject: [PATCH 08/10] =?UTF-8?q?feat:=20=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E5=8F=B3=E9=94=AE=E8=8F=9C=E5=8D=95=E9=80=82=E9=85=8D=E4=B8=BB?= =?UTF-8?q?=E9=A2=98=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/hexo/style.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/themes/hexo/style.js b/themes/hexo/style.js index 98318422..8f1f6d88 100644 --- a/themes/hexo/style.js +++ b/themes/hexo/style.js @@ -16,6 +16,7 @@ const Style = () => { :root { --theme-color: ${themeColor}; } + // 底色 body { background-color: #f5f5f5; @@ -152,6 +153,11 @@ const Style = () => { li[class*='hover:border-indigo-500']:hover { border-color: var(--theme-color) !important; } + + /* 自定义右键菜单悬浮高亮颜色 */ + .hover\:bg-blue-600:hover { + background-color: var(--theme-color) !important; + } .dark li[class*='dark:hover:border-indigo-300']:hover { border-color: var(--theme-color) !important; } From 6159f0820b672048bbf146ca74533bb42f374159 Mon Sep 17 00:00:00 2001 From: LooseLi <1329307562@qq.com> Date: Thu, 22 May 2025 12:02:49 +0800 Subject: [PATCH 09/10] =?UTF-8?q?feat:=20=E7=A7=BB=E5=8A=A8=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E4=B8=8B=EF=BC=8C=E8=8F=9C=E5=8D=95=E6=A0=8F=E9=80=82?= =?UTF-8?q?=E9=85=8D=E4=B8=BB=E9=A2=98=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/hexo/style.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/themes/hexo/style.js b/themes/hexo/style.js index 8f1f6d88..feb80b6b 100644 --- a/themes/hexo/style.js +++ b/themes/hexo/style.js @@ -106,6 +106,16 @@ const Style = () => { .bg-indigo-500 { background-color: var(--theme-color) !important; } + .dark .dark\:bg-indigo-500 { + background-color: var(--theme-color) !important; + } + /* 移动设备菜单栏背景色 */ + .hover\:bg-indigo-500:hover { + background-color: var(--theme-color) !important; + } + .dark .dark\:hover\:bg-indigo-500:hover { + background-color: var(--theme-color) !important; + } /* 文章浏览进度条颜色 */ .bg-indigo-600 { From 86e79bad537620f5ca77ad1847d4b524c3ff3e87 Mon Sep 17 00:00:00 2001 From: LooseLi <1329307562@qq.com> Date: Thu, 22 May 2025 13:40:27 +0800 Subject: [PATCH 10/10] =?UTF-8?q?feat:=20=E7=A7=BB=E5=8A=A8=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E4=B8=8B=EF=BC=8C=E5=88=86=E7=B1=BB=E9=80=89=E4=B8=AD?= =?UTF-8?q?=E9=AB=98=E4=BA=AE=E9=80=82=E9=85=8D=E4=B8=BB=E9=A2=98=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/hexo/style.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/themes/hexo/style.js b/themes/hexo/style.js index feb80b6b..dcba9a2d 100644 --- a/themes/hexo/style.js +++ b/themes/hexo/style.js @@ -94,6 +94,13 @@ const Style = () => { background-color: var(--theme-color) !important; color: white !important; } + /* 移动设备下,搜索组件中选中分类的高亮背景色 */ + div[class*='hover:bg-indigo-400']:hover { + background-color: var(--theme-color) !important; + } + .hover\:bg-indigo-400:hover { + background-color: var(--theme-color) !important; + } .bg-indigo-400 { background-color: var(--theme-color) !important; }