From dd7a8c9af111fb9ef53bd151e7e3a207692850a8 Mon Sep 17 00:00:00 2001 From: Biliko Date: Thu, 21 Nov 2024 11:36:22 +0800 Subject: [PATCH] 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 a26b671b..d7a270fb 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; }