Commit 795d9c03 by Torkel Ödegaard

ux: fixed navbar and sidemenu z-index issue and improved responsive rules

parent 2ce4a8e4
......@@ -30,7 +30,7 @@ import (
_ "github.com/grafana/grafana/pkg/tsdb/testdata"
)
var version = "4.6.0"
var version = "5.0.0"
var commit = "NA"
var buildstamp string
var build_date string
......
.navbar {
position: relative;
padding-left: $side-menu-width;
margin-left: 40px;
// box-shadow: $navbarShadow;
z-index: $zindex-navbar-fixed;
// background: $navbarBackground;
......@@ -11,12 +11,6 @@
flex-grow: 1;
}
.sidemenu-open {
.navbar {
padding-left: 15px;
}
}
.navbar-page-btn {
text-overflow: ellipsis;
overflow: hidden;
......@@ -44,6 +38,8 @@
line-height: 8px;
opacity: 0.75;
margin-right: 8px;
// icon hidden on smaller screens
display: none;
}
}
......@@ -111,3 +107,22 @@
}
}
}
@include media-breakpoint-up(sm) {
.navbar {
margin-left: 50px;
}
.sidemenu-open {
.navbar {
margin-left: 15px;
}
}
.navbar-page-btn {
.gicon {
display: inline-block;
}
}
}
......@@ -16,7 +16,6 @@
.sidemenu__close {
display: none;
}
}
// body class that hides sidemenu
......@@ -191,12 +190,6 @@ li.sidemenu-org-switcher {
}
@include media-breakpoint-down(xs) {
.sidemenu-open {
.navbar {
padding-left: 60px !important;
}
}
.sidemenu-open--xs {
.sidemenu {
width: 100%;
......@@ -227,7 +220,7 @@ li.sidemenu-org-switcher {
}
.sidemenu__logo_small_breakpoint {
padding: 12px 10px 26px;
padding: 16px 10px 26px;
display: flex;
flex-direction: row;
justify-content: space-between;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment