From f71ed859641f18703ed062659325fe6d0359a284 Mon Sep 17 00:00:00 2001 From: "M. Weber" Date: Wed, 14 Aug 2019 15:10:45 +0200 Subject: [PATCH] dashboard improvements (#27) * Add new grid values new classes to replace inline stlyes with it * Fix navigation scroll behavior Signed-off-by: Rohit Yadav --- ui/src/components/menu/SideMenu.vue | 2 +- ui/src/style/README.md | 8 ++ ui/src/views/dashboard/CapacityDashboard.vue | 62 ++++++++---- ui/src/views/dashboard/UsageDashboard.vue | 101 ++++++++++--------- 4 files changed, 106 insertions(+), 67 deletions(-) diff --git a/ui/src/components/menu/SideMenu.vue b/ui/src/components/menu/SideMenu.vue index b4aed5024bf..716fdb54d62 100644 --- a/ui/src/components/menu/SideMenu.vue +++ b/ui/src/components/menu/SideMenu.vue @@ -67,7 +67,7 @@ export default { z-index: 10; height: auto; - .ant-layout-sider-children { + /deep/ .ant-layout-sider-children { overflow-y: hidden; &:hover { diff --git a/ui/src/style/README.md b/ui/src/style/README.md index 4f4b7a4b0de..d60ceb3425f 100644 --- a/ui/src/style/README.md +++ b/ui/src/style/README.md @@ -37,3 +37,11 @@ - repeatly used elements like buttons, inputs 7. components - complex elements like dropdown, forms, table, search (usualy include this to components/FooterToolbar/ folder) + + +# The "/deep/" combinator +- use the /deep/ combinator (or in other versions ">>>") helps us to exclude "scoped" rules into global +- e.g. will scope a generated data ID like .a .b .c[data-abcde] {} +- but will scope .a[data-abcde] .b .c {} +- so everything after deep will be outside the defined scope +- watch this article for technical information. https://vue-loader.vuejs.org/guide/scoped-css.html#child-component-root-elements diff --git a/ui/src/views/dashboard/CapacityDashboard.vue b/ui/src/views/dashboard/CapacityDashboard.vue index 29d912097a6..1f19cf627be 100644 --- a/ui/src/views/dashboard/CapacityDashboard.vue +++ b/ui/src/views/dashboard/CapacityDashboard.vue @@ -1,21 +1,20 @@