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] =?UTF-8?q?feat:=20=E4=B8=BB=E9=A2=98=E8=89=B2=E9=85=8D?= =?UTF-8?q?=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 }