2015-02-01 22:25:09 +01:00
|
|
|
/*
|
|
|
|
* Component: Sidebar
|
|
|
|
* ------------------
|
|
|
|
*/
|
2015-02-11 01:53:16 +01:00
|
|
|
//Main Sidebar
|
2015-02-28 01:57:17 +01:00
|
|
|
// ``` .left-side has been deprecated as of 2.0.0 in favor of .main-sidebar ```
|
2015-02-02 18:39:29 +01:00
|
|
|
|
|
|
|
.main-sidebar,
|
2015-02-01 22:25:09 +01:00
|
|
|
.left-side {
|
|
|
|
position: absolute;
|
2015-02-11 01:53:16 +01:00
|
|
|
top: 0;
|
2015-04-10 00:52:51 +02:00
|
|
|
left: 0;
|
2015-02-11 01:53:16 +01:00
|
|
|
padding-top: 50px;
|
2015-03-04 01:59:20 +01:00
|
|
|
min-height: 100%;
|
2015-02-01 22:25:09 +01:00
|
|
|
width: @sidebar-width;
|
|
|
|
z-index: 810;
|
2015-03-22 22:32:38 +01:00
|
|
|
//Using disposable variable to join statements with a comma
|
2015-04-10 00:52:51 +02:00
|
|
|
@transition-rule: @transition-speed @transition-fn,
|
2015-04-04 18:55:15 +02:00
|
|
|
width @transition-speed @transition-fn;
|
2015-03-22 22:31:15 +01:00
|
|
|
.transition-transform(@transition-rule);
|
2015-02-01 22:25:09 +01:00
|
|
|
@media (max-width: @screen-xs-max) {
|
2015-04-10 00:52:51 +02:00
|
|
|
.translate(-@sidebar-width, 0);
|
2015-02-01 22:25:09 +01:00
|
|
|
}
|
|
|
|
.sidebar-collapse & {
|
|
|
|
@media (min-width: @screen-sm) {
|
|
|
|
.translate(-@sidebar-width, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.sidebar-open & {
|
|
|
|
@media (max-width: @screen-xs-max) {
|
|
|
|
.translate(0, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar {
|
2015-02-11 01:53:16 +01:00
|
|
|
padding-bottom: 10px;
|
2015-02-01 22:25:09 +01:00
|
|
|
}
|
|
|
|
// remove border from form
|
|
|
|
.sidebar-form {
|
|
|
|
input:focus {
|
|
|
|
border-color: transparent!important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//Sidebar user panel
|
|
|
|
.user-panel {
|
2015-04-10 00:52:51 +02:00
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
2015-02-01 22:25:09 +01:00
|
|
|
padding: 10px;
|
2015-04-10 00:52:51 +02:00
|
|
|
overflow: hidden;
|
2015-02-01 22:25:09 +01:00
|
|
|
.clearfix();
|
|
|
|
> .image > img {
|
2015-04-03 18:19:55 +02:00
|
|
|
width: 100%;
|
|
|
|
max-width: 45px;
|
2015-04-10 00:52:51 +02:00
|
|
|
height: auto;
|
2015-02-01 22:25:09 +01:00
|
|
|
}
|
2015-07-12 15:42:26 +02:00
|
|
|
> .info {
|
2015-02-01 22:25:09 +01:00
|
|
|
padding: 5px 5px 5px 15px;
|
|
|
|
line-height: 1;
|
2015-04-10 00:52:51 +02:00
|
|
|
position: absolute;
|
2015-07-12 15:42:26 +02:00
|
|
|
left: 55px;
|
2015-04-10 00:52:51 +02:00
|
|
|
> 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;
|
|
|
|
}
|
2015-02-01 22:25:09 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Sidebar menu
|
|
|
|
.sidebar-menu {
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2015-04-10 00:52:51 +02:00
|
|
|
//First Level
|
2015-02-01 22:25:09 +01:00
|
|
|
> li {
|
|
|
|
position: relative;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
> a {
|
|
|
|
padding: 12px 5px 12px 15px;
|
|
|
|
display: block;
|
|
|
|
> .fa,
|
|
|
|
> .glyphicon,
|
|
|
|
> .ion {
|
|
|
|
width: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.label,
|
|
|
|
.badge {
|
|
|
|
margin-top: 3px;
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
li.header {
|
|
|
|
padding: 10px 25px 10px 15px;
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
li > a > .fa-angle-left {
|
|
|
|
width: auto;
|
|
|
|
height: auto;
|
|
|
|
padding: 0;
|
|
|
|
margin-right: 10px;
|
|
|
|
margin-top: 3px;
|
|
|
|
}
|
|
|
|
li.active {
|
|
|
|
> a > .fa-angle-left {
|
|
|
|
.rotate(-90deg);
|
|
|
|
}
|
|
|
|
> .treeview-menu {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Tree view menu
|
|
|
|
.treeview-menu {
|
|
|
|
display: none;
|
|
|
|
list-style: none;
|
|
|
|
padding:0;
|
|
|
|
margin:0;
|
|
|
|
padding-left: 5px;
|
|
|
|
.treeview-menu {
|
|
|
|
padding-left: 20px;
|
|
|
|
}
|
|
|
|
> li {
|
|
|
|
margin: 0;
|
|
|
|
> a {
|
|
|
|
padding: 5px 5px 5px 15px;
|
|
|
|
display: block;
|
|
|
|
font-size: 14px;
|
|
|
|
> .fa,
|
|
|
|
> .glyphicon,
|
|
|
|
> .ion {
|
|
|
|
width: 20px;
|
|
|
|
}
|
|
|
|
> .fa-angle-left,
|
|
|
|
> .fa-angle-down {
|
|
|
|
width: auto;
|
|
|
|
}
|
2015-02-11 01:53:16 +01:00
|
|
|
}
|
2015-02-01 22:25:09 +01:00
|
|
|
}
|
|
|
|
}
|
2015-07-12 15:42:26 +02:00
|
|
|
}
|