mirror of
https://github.com/grafana/grafana.git
synced 2025-01-08 15:13:30 -06:00
182 lines
2.9 KiB
SCSS
182 lines
2.9 KiB
SCSS
.navbar {
|
|
position: relative;
|
|
padding-left: 40px;
|
|
z-index: $zindex-navbar-fixed;
|
|
height: $navbarHeight;
|
|
padding-right: 20px;
|
|
display: flex;
|
|
flex-grow: 1;
|
|
border-bottom: 1px solid transparent;
|
|
transition-duration: 350ms;
|
|
transition-timing-function: ease-in-out;
|
|
transition-property: box-shadow, border-bottom;
|
|
}
|
|
|
|
@mixin navbar-alt-look() {
|
|
background: $page-header-bg;
|
|
box-shadow: $search-shadow;
|
|
border-bottom: $navbarBorder;
|
|
}
|
|
|
|
.dashboard-page--settings-open {
|
|
.navbar {
|
|
@include navbar-alt-look();
|
|
}
|
|
|
|
.navbar-buttons--tv,
|
|
.navbar-button--add-panel,
|
|
.navbar-button--star,
|
|
.navbar-button--save,
|
|
.navbar-button--share,
|
|
.navbar-button--settings,
|
|
.navbar-page-btn .fa-caret-down,
|
|
.gf-timepicker-nav {
|
|
display: none;
|
|
}
|
|
|
|
.navbar-buttons--close {
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
.panel-in-fullscreen {
|
|
.navbar {
|
|
padding-left: 15px;
|
|
}
|
|
|
|
.navbar-button--add-panel,
|
|
.navbar-button--star,
|
|
.navbar-button--tv,
|
|
.navbar-page-btn .fa-caret-down {
|
|
display: none;
|
|
}
|
|
|
|
.navbar-buttons--close {
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
.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-left: 1rem;
|
|
min-height: $navbarHeight;
|
|
line-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: 13px;
|
|
display: none;
|
|
}
|
|
|
|
&--folder {
|
|
color: $text-color-weak;
|
|
|
|
@include media-breakpoint-down(md) {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.navbar-buttons {
|
|
// height: $navbarHeight;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
margin-left: 10px;
|
|
|
|
&--close {
|
|
display: none;
|
|
margin-right: 0;
|
|
}
|
|
|
|
&--zoom {
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
|
|
.navbar__spacer {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.navbar-button {
|
|
@include buttonBackground($btn-inverse-bg, $btn-inverse-bg-hl, $btn-inverse-text-color, $btn-inverse-text-shadow);
|
|
|
|
display: inline-block;
|
|
font-weight: $btn-font-weight;
|
|
padding: 6px 11px;
|
|
line-height: 16px;
|
|
height: 30px;
|
|
color: $text-muted;
|
|
border: 1px solid $navbar-button-border;
|
|
margin-right: 3px;
|
|
white-space: nowrap;
|
|
|
|
.gicon {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.fa {
|
|
font-size: 16px;
|
|
}
|
|
|
|
&--add-panel {
|
|
padding: 2px 10px;
|
|
|
|
.gicon {
|
|
font-size: 22px;
|
|
}
|
|
}
|
|
|
|
&--tight {
|
|
padding: 7px 4px;
|
|
|
|
.fa {
|
|
font-size: 14px;
|
|
position: relative;
|
|
top: 1px;
|
|
}
|
|
}
|
|
|
|
&--primary {
|
|
@include buttonBackground($btn-secondary-bg, $btn-secondary-bg-hl);
|
|
}
|
|
}
|
|
|
|
@include media-breakpoint-up(sm) {
|
|
.navbar {
|
|
padding-left: 50px;
|
|
}
|
|
|
|
.sidemenu-open {
|
|
.navbar {
|
|
padding-left: 15px;
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
.navbar-page-btn {
|
|
.gicon {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
}
|