From b476faf01c6d74aca1990c3b2e3e860e0078e828 Mon Sep 17 00:00:00 2001 From: Joe McGrath <33670767+josephmcg@users.noreply.github.com> Date: Fri, 29 Jul 2022 15:06:14 +0900 Subject: [PATCH] refactor(sidebar): refactor styles and improve visibility of quickchat button (#4096) * refactor(sidebar): refactor styles and move component to better spot * fix: use rem instead of pixels * fix: remove bad index as key --- assets/styles/base.less | 1 + assets/styles/framework/ui.less | 5 +- .../views/navigation/sidebar/Sidebar.html | 8 ++- .../views/navigation/sidebar/Sidebar.less | 64 ++++++++++--------- .../views/navigation/sidebar/Sidebar.vue | 14 +--- .../navigation/sidebar/controls/Controls.html | 26 ++------ .../navigation/sidebar/controls/Controls.less | 14 ++-- .../navigation/sidebar/list/item/Item.less | 2 +- .../sidebar}/quick/Quick.html | 0 .../sidebar}/quick/Quick.less | 0 .../sidebar}/quick/Quick.vue | 0 .../views/navigation/toolbar/Toolbar.less | 37 ----------- 12 files changed, 56 insertions(+), 115 deletions(-) rename components/views/{friends => navigation/sidebar}/quick/Quick.html (100%) rename components/views/{friends => navigation/sidebar}/quick/Quick.less (100%) rename components/views/{friends => navigation/sidebar}/quick/Quick.vue (100%) diff --git a/assets/styles/base.less b/assets/styles/base.less index d78b89b8c5..417680e54a 100644 --- a/assets/styles/base.less +++ b/assets/styles/base.less @@ -287,6 +287,7 @@ button { border: none; cursor: pointer; background: transparent; + display: flex; &:extend(.font-primary); } .button { diff --git a/assets/styles/framework/ui.less b/assets/styles/framework/ui.less index 22cb7ec972..8a9c3c25c5 100644 --- a/assets/styles/framework/ui.less +++ b/assets/styles/framework/ui.less @@ -1,6 +1,7 @@ // Navigation -@slimbar-width: 72px; -@sidebar-width: 312px; +@slimbar-width: 4.5rem; +@sidebar-width: 19.5rem; +@sidebar-controls-height: 7.5rem; @sidebar-size-mobile: 100vw; @servers-size: 60px; @toolbar-height: 75px; diff --git a/components/views/navigation/sidebar/Sidebar.html b/components/views/navigation/sidebar/Sidebar.html index 50b212243d..076ee929b7 100644 --- a/components/views/navigation/sidebar/Sidebar.html +++ b/components/views/navigation/sidebar/Sidebar.html @@ -1,4 +1,4 @@ -