From e1f90756f133c381d453ad2218e0b298c30b6b78 Mon Sep 17 00:00:00 2001 From: Benny Guo Date: Mon, 21 Aug 2023 17:44:34 +0800 Subject: [PATCH] fix: color style for header when switching mode and sticky issue resolve #321 #319 --- src/components/Dropdown/src/DropdownItem.vue | 2 +- src/components/Header/src/Controls.vue | 9 +- src/components/Header/src/Header.vue | 45 ++---- src/components/Header/src/Logo.vue | 14 +- src/components/Header/src/Navigation.vue | 23 ++- src/components/Navigator.vue | 48 +++--- src/components/ProgressBar.vue | 19 ++- src/components/Sticky.vue | 149 +++++++++++-------- src/stores/navigator.ts | 6 +- src/utils/index.ts | 10 ++ 10 files changed, 191 insertions(+), 134 deletions(-) diff --git a/src/components/Dropdown/src/DropdownItem.vue b/src/components/Dropdown/src/DropdownItem.vue index 6ea6ed20..d4198c81 100644 --- a/src/components/Dropdown/src/DropdownItem.vue +++ b/src/components/Dropdown/src/DropdownItem.vue @@ -25,7 +25,7 @@ export default defineComponent({ handleClick, itemClasses: computed(() => { return { - 'block cursor-pointer hover:bg-ob-trans my-1 px-4 py-1 font-medium hover:text-ob-bright': + 'text-ob-bright block cursor-pointer hover:bg-ob-trans my-1 px-4 py-1 font-medium text-invert hover:text-ob-bright': true, active: !!props.active } diff --git a/src/components/Header/src/Controls.vue b/src/components/Header/src/Controls.vue index 47673900..84c6e391 100644 --- a/src/components/Header/src/Controls.vue +++ b/src/components/Header/src/Controls.vue @@ -1,12 +1,12 @@