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/less/control-sidebar.less

290 lines
5.4 KiB

10 years ago
/*
10 years ago
* Component: Control sidebar. By default, this is the right sidebar.
10 years ago
*/
10 years ago
//The sidebar's background control class
//This is a hack to make the background visible while scrolling
.control-sidebar-bg {
position: fixed;
z-index: 1000;
10 years ago
bottom: 0;
}
9 years ago
//Transitions
.control-sidebar-bg,
10 years ago
.control-sidebar {
top: 0;
right: -@control-sidebar-width;
10 years ago
width: @control-sidebar-width;
.transition(right @transition-speed ease-in-out);
}
9 years ago
//The sidebar
10 years ago
.control-sidebar {
position: absolute;
padding-top: @navbar-height;
z-index: 1010;
//Fix position after header collapse
10 years ago
@media (max-width: @screen-sm) {
10 years ago
padding-top: @navbar-height + 50;
10 years ago
}
//Tab panes
> .tab-content {
padding: 10px 15px;
}
//Open state with slide over content effect
&.control-sidebar-open {
&,
+ .control-sidebar-bg {
10 years ago
right: 0;
}
10 years ago
}
}
9 years ago
10 years ago
//Open without slide over content
10 years ago
.control-sidebar-open {
.control-sidebar-bg,
.control-sidebar {
right: 0;
}
9 years ago
@media (min-width: @screen-sm) {
.content-wrapper,
.right-side,
.main-footer {
margin-right: @control-sidebar-width;
}
}
}
9 years ago
10 years ago
//Control sidebar tabs
.nav-tabs.control-sidebar-tabs {
10 years ago
> li {
&:first-of-type > a {
&,
&:hover,
9 years ago
&:focus {
border-left-width: 0;
10 years ago
}
}
10 years ago
> a {
.border-radius(0);
10 years ago
//Hover and active states
&,
&:hover {
border-top: none;
10 years ago
border-right: none;
border-left: 1px solid transparent;
border-bottom: 1px solid transparent;
10 years ago
}
.icon {
font-size: 16px;
}
}
//Active state
&.active {
> a {
&,
&:hover,
9 years ago
&:focus,
&:active {
border-top: none;
border-right: none;
border-bottom: none;
10 years ago
}
}
}
}
10 years ago
//Remove responsiveness on small screens
9 years ago
@media (max-width: @screen-sm) {
display: table;
9 years ago
> li {
display: table-cell;
}
}
10 years ago
}
9 years ago
10 years ago
//Headings in the sidebar content
10 years ago
.control-sidebar-heading {
font-weight: 400;
font-size: 16px;
padding: 10px 0;
margin-bottom: 10px;
10 years ago
}
9 years ago
//Subheadings
.control-sidebar-subheading {
display: block;
font-weight: 400;
font-size: 14px;
}
9 years ago
//Control Sidebar Menu
.control-sidebar-menu {
list-style: none;
padding: 0;
margin: 0 -15px;
> li > a {
.clearfix();
display: block;
10 years ago
padding: 10px 15px;
> .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 {
10 years ago
margin: 0;
font-size: 11px;
}
}
.progress {
margin: 0;
}
}
9 years ago
//Dark skin
.control-sidebar-dark {
10 years ago
color: @sidebar-dark-color;
// Background
10 years ago
&,
+ .control-sidebar-bg {
background: @sidebar-dark-bg;
}
// Sidebar tabs
.nav-tabs.control-sidebar-tabs {
border-bottom: darken(@sidebar-dark-bg, 3%);
> li {
> a {
background: darken(@sidebar-dark-bg, 5%);
color: @sidebar-dark-color;
//Hover and active states
&,
&:hover,
9 years ago
&:focus {
border-left-color: darken(@sidebar-dark-bg, 7%);
9 years ago
border-bottom-color: darken(@sidebar-dark-bg, 7%);
}
&:hover,
9 years ago
&:focus,
&:active {
background: darken(@sidebar-dark-bg, 3%);
}
&:hover {
color: #fff;
}
}
//Active state
&.active {
> a {
&,
&:hover,
9 years ago
&: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;
}
}
}
}
}
}
9 years ago
//Light skin
.control-sidebar-light {
10 years ago
color: lighten(@sidebar-light-color, 10%);
// Background
10 years ago
&,
+ .control-sidebar-bg {
background: @sidebar-light-bg;
border-left: 1px solid @gray;
}
// Sidebar tabs
.nav-tabs.control-sidebar-tabs {
border-bottom: @gray;
> li {
> a {
background: darken(@sidebar-light-bg, 5%);
color: @sidebar-light-color;
//Hover and active states
&,
&:hover,
9 years ago
&:focus {
border-left-color: @gray;
border-bottom-color: @gray;
}
&:hover,
9 years ago
&:focus,
&:active {
background: darken(@sidebar-light-bg, 3%);
}
}
//Active state
&.active {
> a {
&,
&:hover,
9 years ago
&: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%);
}
}
}
}
}
10 years ago
}