From 4b4af5aa2486cd4d5fdda03104710e14327e903e Mon Sep 17 00:00:00 2001 From: Daniel Cojocea Date: Fri, 16 Aug 2024 11:44:47 -0400 Subject: [PATCH] fix: updated color and opacity values --- Client/src/Components/Sidebar/index.css | 20 ++++++++++++++---- Client/src/Components/Sidebar/index.jsx | 27 ------------------------- 2 files changed, 16 insertions(+), 31 deletions(-) diff --git a/Client/src/Components/Sidebar/index.css b/Client/src/Components/Sidebar/index.css index e62f67534..85ba6d226 100644 --- a/Client/src/Components/Sidebar/index.css +++ b/Client/src/Components/Sidebar/index.css @@ -6,7 +6,10 @@ aside .MuiStack-root:hover { aside .MuiList-root svg { width: 20px; height: 20px; - opacity: 0.8; + opacity: 0.9; +} +aside .MuiList-root svg path { + stroke: var(--env-var-color-2); } aside span.MuiTypography-root { font-size: var(--env-var-font-size-medium); @@ -16,13 +19,22 @@ aside .MuiListSubheader-root { font-size: var(--env-var-font-size-small); font-weight: 500; line-height: 1.5; - opacity: 0.6; text-transform: uppercase; - margin-bottom: 5px; + margin-bottom: 2px; + opacity: 0.6; } aside span.MuiTypography-root, aside .MuiListSubheader-root { - color: var(--env-var-color-2); + color: var(--env-var-color-5); +} +aside .MuiListItemButton-root:not(.selected-path) > * { + opacity: 0.8; +} +aside .selected-path > * { + opacity: 1; +} +aside .selected-path span.MuiTypography-root { + font-weight: 500; } aside .MuiStack-root:last-child { margin-top: auto; diff --git a/Client/src/Components/Sidebar/index.jsx b/Client/src/Components/Sidebar/index.jsx index 61207c062..3500b7cc1 100644 --- a/Client/src/Components/Sidebar/index.jsx +++ b/Client/src/Components/Sidebar/index.jsx @@ -244,33 +244,6 @@ function Sidebar() { ))} - {/* {menu.map((item) => ( - - item.path === "support" - ? window.open( - "https://github.com/bluewave-labs/bluewave-uptime", - "_blank", - "noreferrer" - ) - : navigate(`/${item.path}`) - } - > - {item.icon} - {item.name} - - ))} - */} ); }