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/scss/_layout.scss

233 lines
3.5 KiB

/*
* Core: General Layout Style
* -------------------------
*/
9 years ago
html,
body,
.wrapper {
7 years ago
min-height: 100%;
overflow-x: hidden;
}
.wrapper {
overflow: hidden;
position: relative;
& .content-wrapper {
min-height: calc(100vh - 112px);
}
.layout-boxed & {
@include box-shadow(0 0 10px rgba(0, 0, 0, .3));
9 years ago
&,
&:before {
margin: 0 auto;
max-width: $boxed-layout-max-width;
}
& .main-sidebar {
left: inherit;
}
}
.layout-navbar-fixed & {
.content-wrapper {
margin-top: 57px;
}
.main-header {
position: fixed;
top: 0;
right: 0;
left: 0;
}
}
.layout-footer-fixed & {
.main-footer {
position: fixed;
bottom: 0;
width: calc(100% - 250px);
}
}
.layout-top-nav & {
margin-left: 0;
& .main-sidebar {
bottom: inherit;
height: inherit;
}
.brand-image {
height: 33px;
}
& .main-sidebar{
display: none;
}
& .content-wrapper,
& .main-header,
& .main-footer {
margin-left: 0;
}
}
}
.content-wrapper,
7 years ago
.main-footer,
.main-header {
@include media-breakpoint-up(sm) {
7 years ago
@include transition(margin-left $transition-speed $transition-fn);
margin-left: $sidebar-width;
z-index: 3000;
.sidebar-collapse & {
margin-left: 0;
}
}
@include media-breakpoint-down(sm) {
&,
&:before {
margin-left: 0;
}
}
}
9 years ago
.content-wrapper {
background: $main-bg;
9 years ago
> .content {
7 years ago
padding: $content-padding-y $content-padding-x;
}
}
9 years ago
.main-sidebar {
&,
&:before {
$local-sidebar-transition: margin-left $transition-speed $transition-fn, width $transition-speed $transition-fn;
@include transition($local-sidebar-transition);
width: $sidebar-width;
}
9 years ago
.sidebar-collapse & {
&,
&:before {
margin-left: -$sidebar-width;
}
}
@include media-breakpoint-down(sm) {
&,
&:before {
7 years ago
box-shadow: none!important;
margin-left: -$sidebar-width;
}
7 years ago
.sidebar-open & {
&,
&:before {
margin-left: 0;
}
}
}
}
:not(.layout-fixed) {
.main-sidebar {
position: absolute;
top: 0;
height: inherit;
min-height: 100%;
}
}
.layout-navbar-fixed {
&.sidebar-collapse {
.brand-link {
$local-sidebar-transition: width $transition-speed $transition-fn;
@include transition($local-sidebar-transition);
width: $sidebar-mini-width;
height: 57px;
}
.main-sidebar:hover {
.brand-link {
width: $sidebar-width;
}
}
}
.sidebar {
margin-top: 57px;
}
.brand-link {
position: fixed;
top: 0;
z-index: $zindex-main-sidebar;
width: $sidebar-width;
}
// Sidebar variants
@each $name, $color in $theme-colors {
.sidebar-dark-#{$name} .brand-link {
background-color: $sidebar-dark-bg;
}
.sidebar-light-#{$name} .brand-link {
background-color: $sidebar-light-bg;
}
}
}
.layout-fixed {
.main-sidebar {
height: 100vh;
position: fixed;
top: 0;
left: 0;
bottom: 0;
float: none;
}
}
9 years ago
.main-footer {
padding: $main-footer-padding;
color: #555;
border-top: $main-footer-border-top;
7 years ago
background: $main-footer-bg;
}
9 years ago
.content-header {
7 years ago
padding: 15px $content-padding-x;
9 years ago
h1 {
font-size: 1.8rem;
margin: 0;
}
9 years ago
.breadcrumb {
margin-bottom: 0;
padding: 0;
background: transparent;
line-height: 1.8rem;
}
7 years ago
}
.hold-transition {
.content-wrapper,
.main-header,
.main-footer {
transition: none!important;
}
}