grafana/public/sass/components/_sidemenu.scss

243 lines
3.9 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);
2016-02-15 08:27:41 -06:00
z-index: 101;
transform: translate3d(0, -100%, 0);
visibility: hidden;
a:focus {
text-decoration: none;
}
}
.sidemenu-open {
.sidemenu-wrapper {
visibility: visible;
transform: translate3d(0, 0, 0);
transition: all 0.2s;
}
}
.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.2rem;
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
}
.navbar-brand-btn {
background-color: $page-bg;
width: $side-menu-width;
2016-02-15 08:27:41 -06:00
.icon-gf-grafana_wordmark {
display: inline-block;
}
.fa {
display: none;
}
}
.search-container {
left: auto;
}
}
.sidemenu {
list-style: none;
margin: 0;
padding: 0;
li {
position: relative;
&:hover {
.dropdown-menu {
display: block;
2016-02-20 08:02:12 -06:00
opacity: 0;
2016-02-15 08:27:41 -06:00
top: 0px;
2016-02-18 12:47:00 -06:00
left: $side-menu-width;
background-color: rgba($side-menu-bg,$side-menu-opacity);
@include animation('dropdown-anim 100ms 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% {
display: none;
opacity: 0;
}
1% {
display: block;
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;
&:hover {
2016-02-19 05:26:39 -06:00
background-color: $side-menu-item-hover-bg;
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 {
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;
&:hover {
2016-02-19 05:26:39 -06:00
background-color: $side-menu-item-hover-bg;
2016-02-15 08:27:41 -06:00
}
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;
2016-02-16 02:42:46 -06:00
color: $link-color;
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 {
color: $text-color;
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;
}