grafana/public/sass/components/_navbar.scss

119 lines
1.9 KiB
SCSS
Raw Normal View History

2016-02-15 08:27:41 -06:00
.navbar {
2016-02-16 07:07:41 -06:00
display: block;
2016-02-15 08:27:41 -06:00
overflow: visible;
position: relative;
2017-08-17 07:59:10 -05:00
margin-left: $side-menu-width;
2017-08-17 11:50:46 -05:00
box-shadow: 0 0 20px black;
z-index: 1;
2016-02-15 08:27:41 -06:00
}
.navbar-inner {
min-height: $navbarHeight;
padding-right: $spacer;
2016-02-15 08:27:41 -06:00
background-color: $navbarBackground;
@include clearfix();
}
2017-08-17 07:00:41 -05:00
.sidemenu-open {
2017-08-17 07:59:10 -05:00
.navbar {
2017-08-17 07:00:41 -05:00
margin-left: 0;
}
}
2016-02-15 08:27:41 -06:00
.navbar .nav {
position: relative;
left: 0;
float: left;
}
.navbar .nav.pull-right {
float: right; // redeclare due to specificity
margin-right: 0; // remove margin on float right nav
}
.navbar .nav > li {
float: left;
}
// Links
.navbar .nav > li > a {
float: none;
padding: 17px 13px 13px;
color: $navbarLinkColor;
text-decoration: none;
.fa { font-size: 115%; }
}
// Hover/focus
.navbar .nav > li > a:focus,
.navbar .nav > li > a:hover {
color: $navbarLinkColorHover;
text-decoration: none;
}
// Active nav items
.navbar .nav > .active > a,
.navbar .nav > .active > a:hover,
.navbar .nav > .active > a:focus {
color: $navbarLinkColorActive;
text-decoration: none;
background-color: $navbarLinkBackgroundActive;
}
2017-06-12 14:11:22 -05:00
.navbar-page-btn-wrapper {
float: left;
&:hover {
background: $navbarButtonBackgroundHighlight;
}
}
.navbar-page-btn {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
display: block;
margin: 0;
color: darken($link-color, 5%);
font-size: $font-size-lg;
padding: 1rem 1rem 0.75rem 1rem;
min-height:: $navbarHeight;
.fa-caret-down {
font-size: 60%;
padding-left: 0.2rem;
2016-02-15 08:27:41 -06:00
}
.icon-gf {
position: relative;
top: 2px;
font-size: 20px;
line-height: 8px;
2017-06-12 14:11:22 -05:00
margin-right: 0.5rem;
2016-02-15 08:27:41 -06:00
}
> img {
max-width: 27px;
max-height: 27px;
}
2017-06-08 06:56:51 -05:00
&--search {
padding: 1rem 1.5rem 0.75rem 1.5rem;
}
2016-02-15 08:27:41 -06:00
}
.navbar-page-btn-wrapper {
display: inline-block;
position: relative;
}
.navbar-section-wrapper {
position: relative;
float: left;
}
2017-08-17 11:50:46 -05:00
.navbar-mini-btn-wrapper {
padding: 15px;
}