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

128 lines
2.1 KiB

/*
* Core: General Layout Style
* -------------------------
*/
9 years ago
html,
body,
.wrapper {
height: 100%;
overflow-x: hidden;
}
9 years ago
.layout-boxed {
background: url('#{$boxed-layout-bg-image-path}') #ccc repeat;
}
.wrapper {
position: relative;
.layout-boxed & {
box-shadow: 0 0 10px rgba(0, 0, 0, .3);
9 years ago
&,
&:before {
margin: 0 auto;
max-width: $boxed-layout-max-width;
}
}
}
9 years ago
.wrapper:before,
.main-sidebar:before {
content: " ";
position: fixed;
9 years ago
top: 0;
bottom: 0;
z-index: -1;
}
9 years ago
.wrapper:before {
background: $main-bg;
width: 100%;
}
9 years ago
.content-wrapper,
.main-footer {
@include media-breakpoint-up(md) {
margin-left: $sidebar-width;
z-index: 3000;
$local-content-transition: margin-right $transition-speed $transition-fn, margin-left $transition-speed $transition-fn;
@include transition($local-content-transition);
.sidebar-collapse & {
margin-left: 0;
}
}
@include media-breakpoint-down(md) {
&,
&:before {
margin-left: 0;
}
}
}
.content-wrapper,
9 years ago
.main-sidebar {
@include calc("min-height", "100% - #{$main-header-height + $main-footer-height}");
}
9 years ago
.content-wrapper {
background: $main-bg;
> .content-header,
> .content {
display: table;
width: 100%;
}
9 years ago
> .content {
padding: 15px;
}
}
9 years ago
.main-sidebar {
float: left;
&,
&: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(md) {
&,
&:before {
margin-left: -$sidebar-width;
}
}
}
9 years ago
.main-footer {
padding: $main-footer-padding;
color: #555;
border-top: $main-footer-border-top;
background: #fff;
}
9 years ago
.content-header {
padding: 15px;
background: #fff;
border-bottom: 1px solid $card-border-color;
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;
}
}