grafana/public/sass/components/_sidemenu.scss

137 lines
2.2 KiB
SCSS
Raw Normal View History

2016-02-15 08:27:41 -06:00
.sidemenu {
display: flex;
flex-flow: column;
flex-direction: column;
2016-02-18 12:47:00 -06:00
width: $side-menu-width;
2017-06-08 15:17:43 -05:00
background-color: $side-menu-bg;
z-index: 1;
2016-02-15 08:27:41 -06:00
a:focus {
text-decoration: none;
}
}
2017-08-15 07:49:12 -05:00
.sidemenu__top {
flex-grow: 1;
}
.sidemenu__bottom {
padding-bottom: $spacer;
}
.sidemenu-item {
position: relative;
@include left-brand-border();
&.active,
&:hover {
background-color: $side-menu-item-hover-bg;
@include left-brand-border-gradient();
.dropdown-menu {
margin: 0;
display: block;
opacity: 0;
top: 0px;
// important to overlap it otherwise it can be hidden
// again by the mouse getting outside the hover space
left: $side-menu-width - 2px;
@include animation('dropdown-anim 100ms ease-in-out 100ms forwards');
2017-08-15 07:49:12 -05:00
z-index: 1;
2016-02-15 08:27:41 -06:00
}
}
}
2017-08-15 07:49:12 -05:00
.dropup.sidemenu-item:hover .dropdown-menu {
top: auto !important;
}
.sidemenu-link {
color: $link-color;
line-height: 42px;
padding: 0px 10px 0px 10px;
display: block;
position: relative;
font-size: 16px;
border: 1px solid transparent;
img {
border-radius: 50%;
width: 28px;
height: 28px;
box-shadow: 0 0 14px 2px rgba(255,255,255, 0.05);
}
}
@include keyframes(dropdown-anim) {
2016-02-20 08:02:12 -06:00
0% {
opacity: 0;
//transform: translate3d(-5%,0,0);
2016-02-20 08:02:12 -06:00
}
100% {
opacity: 1;
//transform: translate3d(0,0,0);
2016-02-20 08:02:12 -06:00
}
}
2016-02-15 08:27:41 -06:00
.icon-circle {
width: 35px;
height: 35px;
2016-02-15 08:27:41 -06:00
display: inline-block;
i {
2016-02-16 02:42:46 -06:00
color: $link-color;
2016-02-15 08:27:41 -06:00
opacity: .7;
position: relative;
2017-08-15 07:49:12 -05:00
left: 3px;
font-size: 130%;
2016-02-15 08:27:41 -06:00
}
2017-06-12 09:46:02 -05:00
.fa {
top: 2px;
}
.icon-gf {
top: 5px;
}
2016-02-15 08:27:41 -06:00
img {
2017-08-15 07:49:12 -05:00
left: 3px;
2016-02-15 08:27:41 -06:00
position: relative;
}
}
2017-06-08 16:13:38 -05:00
.side-menu-header {
2017-06-12 14:11:22 -05:00
padding: 10px 10px 10px 20px;
2017-06-22 17:11:29 -05:00
white-space: nowrap;
2017-06-08 16:13:38 -05:00
background-color: $side-menu-item-hover-bg;
2017-08-15 07:49:12 -05:00
font-size: 17px;
2016-02-15 08:27:41 -06:00
}
li.sidemenu-org-switcher {
border-bottom: 1px solid $dropdownDividerBottom;
2016-02-15 08:27:41 -06:00
}
.sidemenu-org-switcher__org-name {
font-size: $font-size-base;
2016-02-15 08:27:41 -06:00
}
.sidemenu-org-switcher__org-current {
font-size: $font-size-xs;
color: $text-color-weak;
position: relative;
top: -2px;
2016-02-15 08:27:41 -06:00
}
.sidemenu-org-switcher__switch {
font-size: $font-size-sm;
padding-left: 1.5rem;
display: flex;
align-items: center;
> i.fa.fa-random {
margin-right: 4px;
top: 1px;
}
}