grafana/public/sass/components/_sidemenu.scss

230 lines
3.8 KiB
SCSS
Raw Normal View History

2016-02-15 08:27:41 -06:00
.sidemenu-canvas {
position: relative;
}
.sidemenu-wrapper {
position: absolute;
top: 52px;
left: 0;
2016-02-18 12:47:00 -06:00
width: $side-menu-width;
background-color: rgba($side-menu-bg,$side-menu-opacity);
z-index: 1000;
opacity: 0;
2016-02-15 08:27:41 -06:00
visibility: hidden;
a:focus {
text-decoration: none;
}
}
.sidemenu-open {
.sidemenu-wrapper {
visibility: visible;
//transform: translate3d(0, 0, 0);
opacity: 1;
transition: opacity 0.3s;
2016-02-15 08:27:41 -06:00
}
}
.sidemenu-pinned {
.sidemenu-wrapper {
2016-02-17 11:55:57 -06:00
min-height: calc(100% - 54px);
2016-02-15 08:27:41 -06:00
}
.dashboard-container {
padding-left: $side-menu-width + 0.5rem;
2016-02-15 08:27:41 -06:00
}
.page-container {
2016-02-18 12:47:00 -06:00
margin-left: $side-menu-width;
2016-02-15 08:27:41 -06:00
}
.search-container {
left: $side-menu-width;
2016-02-15 08:27:41 -06:00
}
}
.sidemenu {
list-style: none;
margin: 0;
padding: 0;
> li {
2016-02-15 08:27:41 -06:00
position: relative;
@include left-brand-border();
2016-02-15 08:27:41 -06:00
&.active,
2016-02-15 08:27:41 -06:00
&:hover {
background-color: $side-menu-item-hover-bg;
@include left-brand-border-gradient();
2016-02-15 08:27:41 -06:00
.dropdown-menu {
display: block;
2016-02-20 08:02:12 -06:00
opacity: 0;
2016-02-15 08:27:41 -06:00
top: 0px;
// important to overlap it otherwise it can be hidden
// again by the mouse getting outside the hover space
left: $side-menu-width - 0.2rem;
background-color: rgba($side-menu-bg,$side-menu-opacity);
@include animation('dropdown-anim 150ms ease-in-out 100ms forwards');
2016-02-20 08:02:12 -06:00
z-index: -9999;
2016-02-15 08:27:41 -06:00
}
}
}
}
@include keyframes(dropdown-anim) {
2016-02-20 08:02:12 -06:00
0% {
opacity: 0;
transform: translate3d(-5%,0,0);
}
100% {
opacity: 1;
transform: translate3d(0,0,0);
2016-02-20 08:02:12 -06:00
}
}
2016-02-15 08:27:41 -06:00
.sidemenu-main-link {
font-size: 16px;
}
.sidemenu-item-text {
width: 110px;
display: inline-block;
vertical-align: middle;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.icon-circle {
width: 40px;
height: 40px;
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;
left: 7px;
top: 5px;
font-size: 150%;
}
img {
left: 7px;
position: relative;
}
}
.sidemenu-item {
2016-02-16 02:42:46 -06:00
color: $link-color;
2016-02-15 08:27:41 -06:00
line-height: 47px;
padding: 0px 10px 0px 10px;
display: block;
border-left: 1px solid transparent;
2016-02-15 08:27:41 -06:00
.sidemenu-item-text {
padding-left: 11px;
}
img {
border-radius: 50%;
width: 28px;
height: 28px;
box-shadow: 0 0 14px 2px rgba(255,255,255, 0.05);
}
}
.sidemenu-section-tagline {
font-style: italic;
line-height: 10px;
}
.sidemenu-section-text-wrapper {
padding-top: 4px;
}
.sidemenu-org-section .dropdown-menu-title {
margin: 0 10px 0 6px;
padding: 7px 0 7px;
overflow: hidden;
color: $dropdownTitle;
}
.sidemenu-org-section .dropdown-menu-title > span {
display: inline-block;
position: relative;
&::after {
2016-02-15 08:27:41 -06:00
display: block;
position: absolute;
top: 50%;
right: 0;
left: 100%;
width: 200px;
height: 1px;
margin-left: 5px;
background: $dropdownDivider;
content: '';
}
}
.sidemenu-org {
padding: 17px 10px 15px 14px;
box-sizing: border-box;
cursor: pointer;
display: table;
position: relative;
width: 100%;
}
.sidemenu .fa-caret-right {
position: absolute;
top: 38%;
right: 6px;
2016-02-15 08:27:41 -06:00
font-size: 14px;
color: $text-color-faint;
2016-02-15 08:27:41 -06:00
}
.sidemenu-org-avatar,
.sidemenu-org-details {
display: table-cell;
vertical-align: top;
}
.sidemenu-org-avatar {
width: 40px;
height: 40px;
background-color: $gray-2;
border-radius: 50%;
text-align: center;
>img {
position: absolute;
width: 40px;
height: 40px;
border-radius: 50%;
left: 14px;
}
2016-02-15 08:27:41 -06:00
}
.sidemenu-org-avatar--missing {
2016-02-21 06:07:17 -06:00
color: $gray-4;
text-shadow: 0 1px 0 $dark-1;
line-height: 40px;
font-size: $font-size-lg;
2016-02-15 08:27:41 -06:00
}
.sidemenu-org-details {
padding-left: 10px;
2016-02-16 02:42:46 -06:00
color: $link-color;
2016-02-15 08:27:41 -06:00
}
.sidemenu-org-name {
display: block;
font-size: 13px;
2016-02-16 02:42:46 -06:00
color: $link-color-disabled;
2016-02-15 08:27:41 -06:00
}
.sidemenu-org-user {
display: block;
}