grafana/public/sass/components/_navbar.scss

148 lines
2.4 KiB
SCSS
Raw Normal View History

2016-02-15 08:27:41 -06:00
.navbar {
position: relative;
2017-08-25 03:19:08 -05:00
padding-left: $side-menu-width;
box-shadow: $navbarShadow;
z-index: $zindex-navbar-fixed;
2017-11-26 15:07:34 -06:00
background: $navbarBackground;
2017-12-01 08:56:08 -06:00
height: $navbarHeight;
padding-right: $spacer;
2017-10-14 14:17:16 -05:00
display: flex;
2016-02-15 08:27:41 -06:00
}
2017-08-17 07:00:41 -05:00
.sidemenu-open {
2017-08-17 07:59:10 -05:00
.navbar {
2017-10-25 05:37:34 -05:00
padding-left: 15px;
2017-08-17 07:00:41 -05:00
}
}
2017-12-01 08:56:08 -06:00
// .navbar .nav {
// position: relative;
// left: 0;
// float: left;
//
// &--grow {
// flex-grow: 1;
// }
// }
//
//
// .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;
// }
2016-02-15 08:27:41 -06:00
.navbar-page-btn {
2017-12-01 08:56:08 -06:00
flex-grow: 1;
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
}
2017-06-08 06:56:51 -05:00
&--search {
padding: 1rem 1.5rem 0.75rem 1.5rem;
}
2017-10-25 05:37:34 -05:00
.gicon {
position: relative;
top: -1px;
font-size: 19px;
line-height: 8px;
opacity: 0.75;
margin-right: 8px;
}
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;
}
2017-12-01 08:56:08 -06:00
.navbar-buttons {
height: $navbarHeight;
display: flex;
align-items: center;
justify-content: flex-end;
margin-right: $spacer;
}
.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 {
.gicon {
font-size: 22px;
}
padding: 2px 8px;
}
&--tight {
.fa {
font-size: 14px;
position: relative;
top: 2px;
}
padding: 6px 4px;
}
}