From 3119cef2ff8bc9b1172b6a79e81f49d91bd0c884 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Wed, 30 Oct 2024 16:05:27 +0700 Subject: [PATCH] fix: new drawer menu --- src/layouts/DrawerComponent.vue | 507 ++++++++++++++++++++++++-------- 1 file changed, 384 insertions(+), 123 deletions(-) diff --git a/src/layouts/DrawerComponent.vue b/src/layouts/DrawerComponent.vue index f5418d38..51ace954 100644 --- a/src/layouts/DrawerComponent.vue +++ b/src/layouts/DrawerComponent.vue @@ -1,16 +1,88 @@ @@ -327,4 +547,45 @@ function branchSetting() {} display: inline-block; border: 1.5px solid white; } + +:deep(.active-menu) { + color: white !important; + background: var(--brand-1) !important; + + i.q-icon.mdi.mdi-chevron-down.q-expansion-item__toggle-icon.q-expansion-item__toggle-icon--rotated { + color: white !important; + } +} + +.sub-menu { + font-weight: 400; + .active { + &::before { + content: ''; + display: inline-block; + margin-left: -3px; + width: 4px; + height: 18px; + border-radius: 50px; + background-color: var(--brand-2); + } + color: var(--brand-1) !important; + font-weight: bold; + } + + &:hover { + nav::before { + content: ''; + display: inline-block; + margin-left: -3px; + width: 4px; + height: 18px; + border-radius: 50px; + background-color: var(--brand-2); + } + color: var(--brand-1) !important; + cursor: pointer; + font-weight: bold; + } +}