grafana/public/sass/components/_navbar.scss
2017-12-01 15:58:12 +01:00

112 lines
1.7 KiB
SCSS

.navbar {
position: relative;
padding-left: $side-menu-width;
box-shadow: $navbarShadow;
z-index: $zindex-navbar-fixed;
background: $navbarBackground;
height: $navbarHeight;
padding-right: $spacer;
display: flex;
}
.sidemenu-open {
.navbar {
padding-left: 15px;
}
}
.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;
}
&--search {
padding: 1rem 1.5rem 0.75rem 1.5rem;
}
.gicon {
position: relative;
top: -1px;
font-size: 19px;
line-height: 8px;
opacity: 0.75;
margin-right: 8px;
}
}
.navbar-page-btn-wrapper {
display: inline-block;
position: relative;
}
.navbar-section-wrapper {
position: relative;
float: left;
}
.navbar-mini-btn-wrapper {
padding: 15px;
}
.navbar-buttons {
height: $navbarHeight;
display: flex;
align-items: center;
justify-content: flex-end;
margin-right: $spacer;
}
.navbar__spacer {
flex-grow: 1;
}
.navbar-button {
@include buttonBackground($btn-inverse-bg, $btn-inverse-bg-hl, $btn-inverse-text-color);
display: inline-block;
font-weight: $btn-font-weight;
padding: 5px 10px;
line-height: 16px;
color: $text-muted;
border: 1px solid #151515;
margin-right: 1px;
.gicon {
font-size: 16px;
}
.fa {
font-size: 16px;
}
&--add-panel {
padding: 2px 8px;
.gicon {
font-size: 22px;
}
}
&--tight {
padding: 6px 4px;
.fa {
font-size: 14px;
position: relative;
top: 2px;
}
}
}