2015-03-27 23:29:28 +00:00
|
|
|
/*
|
2015-04-22 21:13:31 +00:00
|
|
|
* Component: Control sidebar. By default, this is the right sidebar.
|
2015-03-27 23:29:28 +00:00
|
|
|
*/
|
2015-04-22 21:13:31 +00:00
|
|
|
//The sidebar's background control class
|
2015-04-03 15:57:46 +00:00
|
|
|
//This is a hack to make the background visible while scrolling
|
|
|
|
.control-sidebar-bg {
|
|
|
|
position: fixed;
|
2015-05-05 01:50:20 +00:00
|
|
|
z-index: 1000;
|
2015-07-12 13:42:26 +00:00
|
|
|
bottom: 0;
|
2015-04-03 15:57:46 +00:00
|
|
|
}
|
|
|
|
//Transitions
|
|
|
|
.control-sidebar-bg,
|
2015-03-27 23:29:28 +00:00
|
|
|
.control-sidebar {
|
2015-05-05 01:50:20 +00:00
|
|
|
top: 0;
|
|
|
|
right: -@control-sidebar-width;
|
2015-07-12 13:42:26 +00:00
|
|
|
width: @control-sidebar-width;
|
2015-05-05 01:50:20 +00:00
|
|
|
.transition(right @transition-speed ease-in-out);
|
2015-04-03 15:57:46 +00:00
|
|
|
}
|
2015-04-14 01:44:47 +00:00
|
|
|
//The sidebar
|
2015-07-12 13:42:26 +00:00
|
|
|
.control-sidebar {
|
|
|
|
position: absolute;
|
|
|
|
padding-top: @navbar-height;
|
2015-04-14 01:44:47 +00:00
|
|
|
z-index: 1010;
|
2015-04-03 15:57:46 +00:00
|
|
|
//Fix position after header collapse
|
2015-03-27 23:29:28 +00:00
|
|
|
@media (max-width: @screen-sm) {
|
2015-05-01 00:17:35 +00:00
|
|
|
padding-top: @navbar-height + 50;
|
2015-03-27 23:29:28 +00:00
|
|
|
}
|
|
|
|
//Tab panes
|
|
|
|
> .tab-content {
|
2015-03-28 18:44:48 +00:00
|
|
|
padding: 10px 15px;
|
|
|
|
}
|
2015-04-03 15:57:46 +00:00
|
|
|
//Open state with slide over content effect
|
2015-03-28 18:44:48 +00:00
|
|
|
&.control-sidebar-open {
|
2015-04-03 15:57:46 +00:00
|
|
|
&,
|
|
|
|
+ .control-sidebar-bg {
|
2015-07-12 13:42:26 +00:00
|
|
|
right: 0;
|
2015-04-03 15:57:46 +00:00
|
|
|
}
|
2015-03-27 23:29:28 +00:00
|
|
|
}
|
|
|
|
}
|
2015-04-22 21:13:31 +00:00
|
|
|
//Open without slide over content
|
2015-07-12 13:42:26 +00:00
|
|
|
.control-sidebar-open {
|
2015-04-03 15:57:46 +00:00
|
|
|
.control-sidebar-bg,
|
2015-03-29 00:39:26 +00:00
|
|
|
.control-sidebar {
|
2015-05-05 01:50:20 +00:00
|
|
|
right: 0;
|
2015-03-29 00:39:26 +00:00
|
|
|
}
|
2015-04-03 16:44:22 +00:00
|
|
|
@media(min-width: @screen-sm) {
|
|
|
|
.content-wrapper,
|
|
|
|
.right-side,
|
|
|
|
.main-footer {
|
|
|
|
margin-right: @control-sidebar-width;
|
|
|
|
}
|
2015-03-29 00:39:26 +00:00
|
|
|
}
|
|
|
|
}
|
2015-03-27 23:29:28 +00:00
|
|
|
//Control sidebar tabs
|
2015-07-21 02:36:04 +00:00
|
|
|
.nav-tabs.control-sidebar-tabs {
|
2015-03-27 23:29:28 +00:00
|
|
|
> li {
|
2015-04-14 01:44:47 +00:00
|
|
|
&:first-of-type > a {
|
|
|
|
&,
|
2015-07-21 02:36:04 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
border-left-width: 0;
|
2015-07-12 13:42:26 +00:00
|
|
|
}
|
2015-04-14 01:44:47 +00:00
|
|
|
}
|
2015-03-27 23:29:28 +00:00
|
|
|
> a {
|
2015-07-21 02:36:04 +00:00
|
|
|
.border-radius(0);
|
|
|
|
|
2015-03-27 23:29:28 +00:00
|
|
|
//Hover and active states
|
|
|
|
&,
|
|
|
|
&:hover {
|
2015-03-29 00:39:26 +00:00
|
|
|
border-top: none;
|
2015-03-27 23:29:28 +00:00
|
|
|
border-right: none;
|
2015-07-21 02:36:04 +00:00
|
|
|
border-left: 1px solid transparent;
|
|
|
|
border-bottom: 1px solid transparent;
|
2015-03-27 23:29:28 +00:00
|
|
|
}
|
|
|
|
.icon {
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//Active state
|
|
|
|
&.active {
|
|
|
|
> a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
2015-07-21 02:36:04 +00:00
|
|
|
border-top: none;
|
|
|
|
border-right: none;
|
|
|
|
border-bottom: none;
|
2015-03-27 23:29:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-03-28 18:44:48 +00:00
|
|
|
}
|
2015-04-22 21:13:31 +00:00
|
|
|
//Remove responsiveness on small screens
|
2015-03-28 18:44:48 +00:00
|
|
|
@media(max-width: @screen-sm) {
|
|
|
|
display: table;
|
|
|
|
>li {
|
2015-07-21 02:36:04 +00:00
|
|
|
display: table-cell;
|
2015-03-28 18:44:48 +00:00
|
|
|
}
|
|
|
|
}
|
2015-03-27 23:29:28 +00:00
|
|
|
}
|
|
|
|
//Headings in the sidebar content
|
2015-07-12 13:42:26 +00:00
|
|
|
.control-sidebar-heading {
|
2015-03-28 18:44:48 +00:00
|
|
|
font-weight: 400;
|
|
|
|
font-size: 16px;
|
|
|
|
padding: 10px 0;
|
|
|
|
margin-bottom: 10px;
|
2015-03-27 23:29:28 +00:00
|
|
|
}
|
2015-03-29 00:39:26 +00:00
|
|
|
//Subheadings
|
2015-03-28 18:44:48 +00:00
|
|
|
.control-sidebar-subheading {
|
|
|
|
display: block;
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: 14px;
|
2015-03-29 00:39:26 +00:00
|
|
|
}
|
|
|
|
//Control Sidebar Menu
|
|
|
|
.control-sidebar-menu {
|
|
|
|
list-style: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0 -15px;
|
|
|
|
> li > a {
|
|
|
|
.clearfix();
|
|
|
|
display: block;
|
2015-07-12 13:42:26 +00:00
|
|
|
padding: 10px 15px;
|
2015-03-29 00:39:26 +00:00
|
|
|
> .control-sidebar-subheading {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.menu-icon {
|
|
|
|
float: left;
|
|
|
|
width: 35px;
|
|
|
|
height: 35px;
|
|
|
|
border-radius: 50%;
|
|
|
|
text-align: center;
|
|
|
|
line-height: 35px;
|
|
|
|
}
|
|
|
|
.menu-info {
|
|
|
|
margin-left: 45px;
|
|
|
|
margin-top: 3px;
|
|
|
|
> .control-sidebar-subheading {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
> p {
|
2015-07-12 13:42:26 +00:00
|
|
|
margin: 0;
|
2015-03-29 00:39:26 +00:00
|
|
|
font-size: 11px;
|
|
|
|
}
|
2015-04-14 01:44:47 +00:00
|
|
|
}
|
2015-03-29 00:39:26 +00:00
|
|
|
.progress {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2015-04-14 01:44:47 +00:00
|
|
|
}
|
|
|
|
//Dark skin
|
|
|
|
.control-sidebar-dark {
|
2015-07-12 13:42:26 +00:00
|
|
|
color: @sidebar-dark-color;
|
2015-04-14 01:44:47 +00:00
|
|
|
// Background
|
2015-05-01 00:17:35 +00:00
|
|
|
&,
|
2015-04-14 01:44:47 +00:00
|
|
|
+ .control-sidebar-bg {
|
|
|
|
background: @sidebar-dark-bg;
|
|
|
|
}
|
|
|
|
// Sidebar tabs
|
2015-07-21 02:36:04 +00:00
|
|
|
.nav-tabs.control-sidebar-tabs {
|
2015-04-14 01:44:47 +00:00
|
|
|
border-bottom: darken(@sidebar-dark-bg, 3%);
|
|
|
|
> li {
|
|
|
|
> a {
|
|
|
|
background: darken(@sidebar-dark-bg, 5%);
|
|
|
|
color: @sidebar-dark-color;
|
|
|
|
//Hover and active states
|
|
|
|
&,
|
2015-07-21 02:36:04 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
border-left-color: darken(@sidebar-dark-bg, 7%);
|
|
|
|
border-bottom-color: darken(@sidebar-dark-bg, 7%);
|
2015-04-14 01:44:47 +00:00
|
|
|
}
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
background: darken(@sidebar-dark-bg, 3%);
|
|
|
|
}
|
2015-07-21 02:36:04 +00:00
|
|
|
&:hover {
|
|
|
|
color: #fff;
|
|
|
|
}
|
2015-04-14 01:44:47 +00:00
|
|
|
}
|
|
|
|
//Active state
|
|
|
|
&.active {
|
|
|
|
> a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
background: @sidebar-dark-bg;
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//Heading & subheading
|
|
|
|
.control-sidebar-heading,
|
|
|
|
.control-sidebar-subheading {
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
//Sidebar list
|
|
|
|
.control-sidebar-menu {
|
|
|
|
> li {
|
|
|
|
> a {
|
|
|
|
&:hover {
|
|
|
|
background: @sidebar-dark-hover-bg;
|
|
|
|
}
|
|
|
|
.menu-info {
|
|
|
|
> p {
|
|
|
|
color: @sidebar-dark-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//Light skin
|
|
|
|
.control-sidebar-light {
|
2015-07-12 13:42:26 +00:00
|
|
|
color: lighten(@sidebar-light-color, 10%);
|
2015-04-14 01:44:47 +00:00
|
|
|
// Background
|
2015-05-01 00:17:35 +00:00
|
|
|
&,
|
2015-04-14 01:44:47 +00:00
|
|
|
+ .control-sidebar-bg {
|
|
|
|
background: @sidebar-light-bg;
|
|
|
|
border-left: 1px solid @gray;
|
|
|
|
}
|
|
|
|
// Sidebar tabs
|
2015-07-21 02:36:04 +00:00
|
|
|
.nav-tabs.control-sidebar-tabs {
|
2015-04-14 01:44:47 +00:00
|
|
|
border-bottom: @gray;
|
|
|
|
> li {
|
|
|
|
> a {
|
|
|
|
background: darken(@sidebar-light-bg, 5%);
|
|
|
|
color: @sidebar-light-color;
|
|
|
|
//Hover and active states
|
|
|
|
&,
|
2015-07-21 02:36:04 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
border-left-color: @gray;
|
|
|
|
border-bottom-color: @gray;
|
2015-04-14 01:44:47 +00:00
|
|
|
}
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
background: darken(@sidebar-light-bg, 3%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//Active state
|
|
|
|
&.active {
|
|
|
|
> a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
background: @sidebar-light-bg;
|
|
|
|
color: #111;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//Heading & subheading
|
|
|
|
.control-sidebar-heading,
|
|
|
|
.control-sidebar-subheading {
|
|
|
|
color: #111;
|
|
|
|
}
|
|
|
|
//Sidebar list
|
|
|
|
.control-sidebar-menu {
|
|
|
|
margin-left: -14px;
|
|
|
|
> li {
|
|
|
|
> a {
|
|
|
|
&:hover {
|
|
|
|
background: @sidebar-light-hover-bg;
|
|
|
|
}
|
|
|
|
.menu-info {
|
|
|
|
> p {
|
|
|
|
color: lighten(@sidebar-light-color, 10%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-07-12 13:42:26 +00:00
|
|
|
}
|