From d2a99599f01980367e6a218b35b89b5035a81d80 Mon Sep 17 00:00:00 2001 From: ArneBo Date: Mon, 16 Dec 2024 16:15:25 +0100 Subject: [PATCH] fix(ui): color sidebar & enable ghost style buttons --- front/src/components/ui/Button.vue | 16 +++++++++++++ front/src/ui/components/Sidebar.vue | 35 ++++++++++++++++++++-------- front/src/ui/components/UserMenu.vue | 1 + 3 files changed, 42 insertions(+), 10 deletions(-) diff --git a/front/src/components/ui/Button.vue b/front/src/components/ui/Button.vue index af4b8cdb5..c03fd8e30 100644 --- a/front/src/components/ui/Button.vue +++ b/front/src/components/ui/Button.vue @@ -141,6 +141,22 @@ onMounted(() => { } } + &.ghost { + &:not(:active):not(.is-active):not(:hover):not(.is-hovered) { + background-color: transparent !important; + border-color: transparent !important; + color: var(--fw-gray-100); + } + &.is-hovered, + &:hover, + &.is-active, + &:active { + background-color: var(--fw-gray-800) !important; + border-color: var(--fw-gray-800) !important; + color: var(--fw-gray-100) !important; + } + } + i.bi { font-size: 1.2rem; } diff --git a/front/src/ui/components/Sidebar.vue b/front/src/ui/components/Sidebar.vue index 6d1067006..41e9212c1 100644 --- a/front/src/ui/components/Sidebar.vue +++ b/front/src/ui/components/Sidebar.vue @@ -25,7 +25,7 @@ const uploads = useUploadsStore()