From 56aa8ae6e0d4cd86b4b66c1b02fc113acead4541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Sun, 1 Feb 2015 19:13:33 +0100 Subject: [PATCH] more design work --- src/app/directives/topnav.js | 3 -- .../features/account/partials/account.html | 17 ++++++- src/app/panels/graph/module.html | 8 ++-- src/app/partials/navbar.html | 5 ++ src/css/less/sidemenu.less | 47 +++++++++++++------ src/views/index.html | 5 +- 6 files changed, 61 insertions(+), 24 deletions(-) diff --git a/src/app/directives/topnav.js b/src/app/directives/topnav.js index 9228ce9fcb0..0dd497de047 100644 --- a/src/app/directives/topnav.js +++ b/src/app/directives/topnav.js @@ -37,9 +37,6 @@ function (angular) { '' + '{{title}}' + - '' + - '' + - '' + '' + '
', link: function(scope, elem, attrs) { diff --git a/src/app/features/account/partials/account.html b/src/app/features/account/partials/account.html index 56e65c8de35..b890fee6d5c 100644 --- a/src/app/features/account/partials/account.html +++ b/src/app/features/account/partials/account.html @@ -1,4 +1,19 @@ - + + + + + + + + + + + + + + + +
diff --git a/src/app/panels/graph/module.html b/src/app/panels/graph/module.html index 20896fc5c83..6f6b0d92a6c 100644 --- a/src/app/panels/graph/module.html +++ b/src/app/panels/graph/module.html @@ -24,9 +24,9 @@
-
-
-
+
+
+
Graph
@@ -37,7 +37,7 @@
-
+
diff --git a/src/app/partials/navbar.html b/src/app/partials/navbar.html index 0823495755e..15c675b8d7e 100644 --- a/src/app/partials/navbar.html +++ b/src/app/partials/navbar.html @@ -7,6 +7,11 @@ section="{{pageSection}}" show-menu-btn="!grafana.sidemenu"> +
diff --git a/src/css/less/sidemenu.less b/src/css/less/sidemenu.less index 5feb72df66f..95fa14fe601 100644 --- a/src/css/less/sidemenu.less +++ b/src/css/less/sidemenu.less @@ -1,5 +1,30 @@ +// body { +// position: absolute; +// overflow: hidden; +// width: 100%; +// height: 100%; +// } + +// .sidemenu-canvas { +// width: 100%; +// height: 100%; +// position: relative; +// -webkit-transform: translateX(0); +// transform: translateX(0); +// -webkit-transition: .3s ease all; +// transition: .3s ease all; +// } + .sidemenu-wrapper { + position: absolute; display: none; + top: 0; + left: 0; + width: 200px; + background: @bodyBackground; + min-height: 100%; + z-index: 101; + a:focus { text-decoration: none; } @@ -8,26 +33,20 @@ .sidemenu-open { .sidemenu-wrapper { display: block; - position: absolute; - top: 0; - left: 0; - width: 200px; - background: @bodyBackground; - min-height: 100%; - z-index: 101; - } - - .dashboard-notice { - margin-left: 200px; - width: auto; } .main-view { padding-left: 200px; } - .panel-fullscreen { - left: 200px; + .sidemenu-canvas { + //-webkit-transform: translateX(200px); + //transform: translateX(200px); + } + + .dashboard-notice { + margin-left: 200px; + width: auto; } } diff --git a/src/views/index.html b/src/views/index.html index e0ee9c6757d..1b315183fc6 100644 --- a/src/views/index.html +++ b/src/views/index.html @@ -24,10 +24,10 @@ - + -
+
+