Fix dashboard menu overlapping (#10044)

* dashboard menu: fix overlap by singlestat and panel link icon

* refactor: navbar z-index

* hide grafana icon in solo panel mode
This commit is contained in:
Alexander Zobnin 2017-12-01 16:31:55 +03:00 committed by Torkel Ödegaard
parent 68580f06a3
commit 8bd3d106a2
5 changed files with 12 additions and 8 deletions

View File

@ -201,6 +201,10 @@ $zindex-tooltip: 1020;
$zindex-navbar-fixed: 1030;
$zindex-modal-backdrop: 1040;
$zindex-modal: 1050;
$zindex-typeahead: 1060;
$zindex-sidemenu : $zindex-navbar-fixed + 5;
// Buttons
//

View File

@ -299,7 +299,7 @@
// Typeahead
// ---------
.typeahead {
z-index: 1051;
z-index: $zindex-typeahead;
margin-top: 2px; // give it some space to breathe
}

View File

@ -5,7 +5,7 @@
position: relative;
padding-left: $side-menu-width;
box-shadow: $navbarShadow;
z-index: 1;
z-index: $zindex-navbar-fixed;
background: $navbarBackground;
}

View File

@ -5,8 +5,7 @@
flex-direction: column;
width: $side-menu-width;
background: $navbarBackground;
z-index: 10;
z-index: $zindex-sidemenu;
a:focus {
text-decoration: none;
}
@ -19,7 +18,7 @@
height: auto;
box-shadow: $side-menu-shadow;
position: relative;
z-index: 2;
z-index: $zindex-sidemenu;
}
.sidemenu__top,
.sidemenu__bottom {
@ -56,7 +55,7 @@
// again by the mouse getting outside the hover space
left: $side-menu-width - 2px;
@include animation('dropdown-anim 150ms ease-in-out 100ms forwards');
z-index: 1;
z-index: $zindex-sidemenu;
}
}
}

View File

@ -19,6 +19,7 @@ div.flot-text {
&--solo {
.panel-container {
border: none;
z-index: $zindex-sidemenu + 1
}
}
}
@ -144,14 +145,14 @@ div.flot-text {
width: 27px;
height: 27px;
top: 0;
z-index: 10;
z-index: 1;
.fa {
position: relative;
top: -4px;
left: -6px;
font-size: 75%;
z-index: 1000;
z-index: 1;
}
&--info {