From 29fe28a66a1251d6a6eb0b5604ed5f4c8804f494 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Wed, 8 Mar 2023 22:06:34 +0800 Subject: [PATCH] dark --- components/DarkModeButton.js | 2 +- public/css/theme-simple.css | 4 ++++ themes/simple/LayoutBase.js | 5 +++-- themes/simple/components/BlogItem.js | 13 +++++++------ themes/simple/components/BlogListPage.js | 10 ++++------ themes/simple/components/DropMenu.js | 4 ++-- themes/simple/components/Footer.js | 6 +++--- themes/simple/components/SideBar.js | 2 +- themes/simple/config_simple.js | 2 ++ 9 files changed, 27 insertions(+), 21 deletions(-) diff --git a/components/DarkModeButton.js b/components/DarkModeButton.js index 2b8cd5b8620..869a36b3417 100644 --- a/components/DarkModeButton.js +++ b/components/DarkModeButton.js @@ -13,7 +13,7 @@ const DarkModeButton = (props) => { htmlElement.classList?.add(newStatus ? 'dark' : 'light') } - return
+ return
diff --git a/public/css/theme-simple.css b/public/css/theme-simple.css index 80f093dd828..43c514c1b83 100644 --- a/public/css/theme-simple.css +++ b/public/css/theme-simple.css @@ -6,6 +6,10 @@ color: #276077; } +.dark #theme-simple #blog-item-title { + color: #d1d5db; +} + .notion { margin-top: 0 !important; margin-bottom: 0 !important; diff --git a/themes/simple/LayoutBase.js b/themes/simple/LayoutBase.js index cbb11c3767b..c437fc1a8c2 100644 --- a/themes/simple/LayoutBase.js +++ b/themes/simple/LayoutBase.js @@ -48,11 +48,12 @@ const LayoutBase = props => {
-