AdminLTE/build/scss/_layout.scss

120 lines
1.8 KiB
SCSS
Raw Normal View History

2015-10-31 21:00:16 +00:00
/*
* Core: General Layout Style
* -------------------------
*/
2016-01-16 16:27:23 +00:00
html,
body,
.wrapper {
2018-03-17 17:07:55 +00:00
min-height: 100%;
2015-10-31 21:00:16 +00:00
overflow-x: hidden;
}
.wrapper {
position: relative;
2015-10-31 21:00:16 +00:00
.layout-boxed & {
2016-10-15 17:20:09 +00:00
box-shadow: 0 0 10px rgba(0, 0, 0, .3);
2016-01-16 16:27:23 +00:00
&,
&:before {
margin: 0 auto;
max-width: $boxed-layout-max-width;
}
2015-10-31 21:00:16 +00:00
}
}
.content-wrapper,
2018-03-17 17:07:55 +00:00
.main-footer,
.main-header {
2016-10-22 19:32:28 +00:00
@include media-breakpoint-up(md) {
2018-03-17 17:07:55 +00:00
@include transition(margin-left $transition-speed $transition-fn);
2016-10-22 19:32:28 +00:00
margin-left: $sidebar-width;
z-index: 3000;
2016-10-22 19:32:28 +00:00
.sidebar-collapse & {
margin-left: 0;
}
2015-10-31 21:00:16 +00:00
}
2016-10-22 19:32:28 +00:00
@include media-breakpoint-down(md) {
2016-10-15 17:20:09 +00:00
&,
&:before {
margin-left: 0;
}
}
2015-10-31 21:00:16 +00:00
}
2016-01-16 16:27:23 +00:00
.content-wrapper {
background: $main-bg;
2015-10-31 21:00:16 +00:00
2016-01-16 16:27:23 +00:00
> .content {
2018-03-17 17:07:55 +00:00
padding: $content-padding-y $content-padding-x;
2015-10-31 21:00:16 +00:00
}
}
2016-01-16 16:27:23 +00:00
.main-sidebar {
2018-03-17 17:07:55 +00:00
position: fixed;
top: 0;
left: 0;
bottom: 0;
2016-10-15 17:20:09 +00:00
&,
&:before {
$local-sidebar-transition: margin-left $transition-speed $transition-fn, width $transition-speed $transition-fn;
@include transition($local-sidebar-transition);
2016-10-15 17:20:09 +00:00
width: $sidebar-width;
}
2016-01-16 16:27:23 +00:00
.sidebar-collapse & {
&,
&:before {
margin-left: -$sidebar-width;
}
}
2016-10-15 17:20:09 +00:00
@include media-breakpoint-down(md) {
2016-10-15 17:20:09 +00:00
&,
&:before {
2018-03-17 17:07:55 +00:00
box-shadow: none!important;
2016-10-15 17:20:09 +00:00
margin-left: -$sidebar-width;
}
2018-03-17 17:07:55 +00:00
.sidebar-open & {
&,
&:before {
margin-left: 0;
}
}
2016-10-15 17:20:09 +00:00
}
2015-10-31 21:00:16 +00:00
}
2016-01-16 16:27:23 +00:00
.main-footer {
padding: $main-footer-padding;
color: #555;
border-top: $main-footer-border-top;
2018-03-17 17:07:55 +00:00
background: $main-footer-bg;
2015-10-31 21:00:16 +00:00
}
2016-01-16 16:27:23 +00:00
.content-header {
2018-03-17 17:07:55 +00:00
padding: 15px $content-padding-x;
2016-01-16 16:27:23 +00:00
h1 {
font-size: 1.8rem;
margin: 0;
2015-10-31 21:00:16 +00:00
}
2016-01-16 16:27:23 +00:00
.breadcrumb {
margin-bottom: 0;
padding: 0;
background: transparent;
line-height: 1.8rem;
}
2018-03-17 17:07:55 +00:00
}
.hold-transition {
.content-wrapper,
.main-header,
.main-footer {
transition: none!important;
}
}