Force control sidebar to slide over content on small screens

pull/325/merge
Abdullah Almsaeed 2015-04-03 12:44:22 -04:00
parent 4db47e6ca4
commit fb77d2171c
4 changed files with 17 additions and 11 deletions

View File

@ -48,10 +48,12 @@
.control-sidebar {
.translate(0,0);
}
.content-wrapper,
.right-side,
.main-footer {
margin-right: @control-sidebar-width;
@media(min-width: @screen-sm) {
.content-wrapper,
.right-side,
.main-footer {
margin-right: @control-sidebar-width;
}
}
}

View File

@ -16,7 +16,8 @@
}
}
> li.active > a,
> li.active > a:hover {
> li.active > a:hover,
> li.active > a:focus {
background-color: #f4f4f4;
border-top-color: @light-blue;
color: #444;

13
dist/css/AdminLTE.css vendored
View File

@ -684,10 +684,12 @@ a:focus {
-o-transform: translate(0, 0);
transform: translate(0, 0);
}
.control-sidebar-open .content-wrapper,
.control-sidebar-open .right-side,
.control-sidebar-open .main-footer {
margin-right: 230px;
@media (min-width: 768px) {
.control-sidebar-open .content-wrapper,
.control-sidebar-open .right-side,
.control-sidebar-open .main-footer {
margin-right: 230px;
}
}
.control-sidebar-tabs {
border-bottom: #1c2529;
@ -2248,7 +2250,8 @@ a:focus {
margin-right: 5px;
}
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover {
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
background-color: #f4f4f4;
border-top-color: #3c8dbc;
color: #444;

File diff suppressed because one or more lines are too long