mirror of https://github.com/ColorlibHQ/AdminLTE
92 lines
2.0 KiB
Plaintext
92 lines
2.0 KiB
Plaintext
/*
|
|
* Component: Control sidebar. By deafult, this is the right sidebar.
|
|
*/
|
|
.control-sidebar {
|
|
.translate(@control-sidebar-width, 0);
|
|
.transition-transform(@transition-speed ease-in-out);
|
|
position: absolute;
|
|
top: @navbar-height;
|
|
right: 0;
|
|
width: @control-sidebar-width;
|
|
z-index: 1010;
|
|
background: @sidebar-dark-bg;
|
|
color: @sidebar-dark-color;
|
|
//Make it hide in small screens
|
|
@media (max-width: @screen-sm) {
|
|
top: @navbar-height + 50;
|
|
//.translate(@control-sidebar-width, 0);
|
|
}
|
|
//Tab panes
|
|
> .tab-content {
|
|
padding: 10px 15px;
|
|
}
|
|
//Open state
|
|
&.control-sidebar-open {
|
|
.translate(0, 0);
|
|
.box-shadow(-1px 0 3px rgba(0,0,0,.2));
|
|
}
|
|
}
|
|
//Control sidebar tabs
|
|
.control-sidebar-tabs {
|
|
border-bottom: darken(@sidebar-dark-bg, 3%);
|
|
> li {
|
|
> a {
|
|
.border-radius(0)!important;
|
|
background: darken(@sidebar-dark-bg, 5%);
|
|
color: @sidebar-dark-color;
|
|
//Hover and active states
|
|
&,
|
|
&:hover {
|
|
border-right: none;
|
|
border-left: 1px solid darken(@sidebar-dark-bg, 7%)!important;
|
|
border-bottom: 1px solid darken(@sidebar-dark-bg, 7%)!important;
|
|
}
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
border-top: none;
|
|
background: darken(@sidebar-dark-bg, 3%);
|
|
}
|
|
.icon {
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
//Active state
|
|
&.active {
|
|
> a {
|
|
&,
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
border-top: none!important;
|
|
border-right: none!important;
|
|
border-bottom: none!important;
|
|
background: @sidebar-dark-bg;
|
|
color: #fff;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//Remove resposiveness on small screens
|
|
@media(max-width: @screen-sm) {
|
|
display: table;
|
|
>li {
|
|
display: table-cell!important;
|
|
}
|
|
}
|
|
}
|
|
//Headings in the sidebar content
|
|
.control-sidebar-heading {
|
|
color: #fff;
|
|
font-weight: 400;
|
|
font-size: 16px;
|
|
padding: 10px 0;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.control-sidebar-subheading {
|
|
display: block;
|
|
color: #fff;
|
|
font-weight: 400;
|
|
font-size: 14px;
|
|
} |