From dd7a8c9af111fb9ef53bd151e7e3a207692850a8 Mon Sep 17 00:00:00 2001 From: Biliko Date: Thu, 21 Nov 2024 11:36:22 +0800 Subject: [PATCH 01/17] Update style.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复导航菜单有子菜单时的样式 --- themes/starter/style.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/themes/starter/style.js b/themes/starter/style.js index a26b671b0a..d7a270fb84 100644 --- a/themes/starter/style.js +++ b/themes/starter/style.js @@ -54,6 +54,11 @@ const Style = () => { color: rgb(55 88 249 / var(--tw-text-opacity)); opacity: 1; } + + #theme-starter .sticky #navbarCollapse li > button{ + --tw-text-opacity: 1; + color: rgb(17 25 40 / var(--tw-text-opacity)); + } :is(.dark #theme-starter .sticky #navbarCollapse li > a){ --tw-text-opacity: 1; @@ -64,7 +69,12 @@ const Style = () => { --tw-text-opacity: 1; color: rgb(55 88 249 / var(--tw-text-opacity)); } - + + :is(.dark #theme-starter .sticky #navbarCollapse li > button){ + --tw-text-opacity: 1; + color: rgb(255 255 255 / var(--tw-text-opacity)); + } + #navbarCollapse li .ud-menu-scroll.active{ opacity: 0.7; } From 3060b39121b8b39c8680eb890bc23a6c67cf4883 Mon Sep 17 00:00:00 2001 From: Biliko Date: Thu, 21 Nov 2024 11:43:18 +0800 Subject: [PATCH 02/17] Update MenuItem.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 下箭头靠近按钮 --- themes/starter/components/MenuItem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/starter/components/MenuItem.js b/themes/starter/components/MenuItem.js index 40700857b0..95de15b2fe 100644 --- a/themes/starter/components/MenuItem.js +++ b/themes/starter/components/MenuItem.js @@ -42,7 +42,7 @@ export const MenuItem = ({ link }) => {