You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AdminLTE/build/scss/_sidebar.scss

133 lines
2.4 KiB

/*
* Component: Sidebar
* ------------------
9 years ago
*
//Main Sidebar
.main-sidebar {
position: absolute;
9 years ago
top: $main-header-height;
left: 0;
9 years ago
@include calc("min-height", "100% - #{$main-header-height}");
z-index: 810;
9 years ago
width: $sidebar-width;
transition: transform $transition-speed $transition-fn,
width $transition-speed $transition-fn;
.layout-fixed & {
height: 100%;
overflow-y: auto;
padding-bottom: 55px;
}
9 years ago
@include media-breakpoint-down(md) {
@include translate(-$sidebar-width, 0);
}
.sidebar-collapse & {
9 years ago
@include media-breakpoint-up(md) {
@include translate(-$sidebar-width, 0);
}
}
.sidebar-open & {
9 years ago
@include media-breakpoint-down(md) {
@include translate(0, 0);
}
}
9 years ago
}*/
.sidebar {
padding-bottom: 10px;
}
//Sidebar user panel
.user-panel {
position: relative;
width: 100%;
padding: 10px;
overflow: hidden;
@include clearfix();
> .image > img {
width: 100%;
max-width: 45px;
height: auto;
}
> .info {
padding: 5px 5px 5px 15px;
line-height: 1;
position: absolute;
left: 55px;
> p {
font-weight: 600;
margin-bottom: 9px;
}
> a {
text-decoration: none;
padding-right: 5px;
margin-top: 3px;
font-size: 11px;
> .fa,
> .ion,
> .glyphicon {
margin-right: 3px;
}
}
}
}
// Sidebar menu
9 years ago
.nav-sidebar {
//First Level
9 years ago
> .nav-item {
> .nav-link {
@include border-radius(0);
> .nav-icon {
width: 20px;
}
}
9 years ago
.pull-right {
margin-top: 3px;
margin-right: 5px;
}
}
9 years ago
.nav-header {
padding: $nav-link-padding;
font-size: .85em;
}
9 years ago
// All other levels
.nav-link > .fa-angle-left {
width: auto;
height: auto;
padding: 0;
margin-right: 10px;
margin-top: 3px;
}
9 years ago
.nav-item.active {
> .nav-link {
font-weight: $display1-weight;
}
> .nav-link > .fa-angle-left {
@include rotate(-90deg);
}
9 years ago
> .nav-treeview {
display: block;
}
}
// Tree view menu
9 years ago
.nav-treeview {
display: none;
list-style: none;
padding: 0;
margin: 0;
padding-left: 5px;
9 years ago
.nav-treeview {
padding-left: 20px;
}
9 years ago
> .nav-item {
margin: 0;
9 years ago
> .nav-link {
padding: 5px 5px 5px 15px;
display: block;
font-size: 14px;
9 years ago
> .nav-icon {
width: 20px;
}
}
}
}
}