2019-07-18 16:22:11 +02:00
|
|
|
//
|
|
|
|
// Core: Layout
|
|
|
|
//
|
2019-06-28 10:02:07 +02:00
|
|
|
|
2019-07-08 18:47:57 +02:00
|
|
|
html {
|
|
|
|
scroll-behavior: smooth;
|
|
|
|
}
|
|
|
|
|
2016-01-16 17:27:23 +01:00
|
|
|
html,
|
|
|
|
body,
|
|
|
|
.wrapper {
|
2018-03-17 18:07:55 +01:00
|
|
|
min-height: 100%;
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.wrapper {
|
2016-10-19 17:24:30 +02:00
|
|
|
position: relative;
|
|
|
|
|
2019-05-25 15:15:32 +02:00
|
|
|
& .content-wrapper {
|
|
|
|
min-height: calc(100vh - 112px);
|
|
|
|
}
|
|
|
|
|
2015-10-31 22:00:16 +01:00
|
|
|
.layout-boxed & {
|
2019-07-18 16:22:11 +02:00
|
|
|
@include box-shadow(0 0 10 rgba($black, .3));
|
2018-04-15 01:33:53 +02:00
|
|
|
|
2016-01-16 17:27:23 +01:00
|
|
|
&,
|
2019-06-28 10:02:07 +02:00
|
|
|
&::before {
|
2016-01-16 17:27:23 +01:00
|
|
|
margin: 0 auto;
|
|
|
|
max-width: $boxed-layout-max-width;
|
|
|
|
}
|
2019-05-25 15:15:32 +02:00
|
|
|
|
|
|
|
& .main-sidebar {
|
|
|
|
left: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-14 15:21:20 +02:00
|
|
|
.layout-navbar-fixed.layout-fixed & {
|
|
|
|
.sidebar {
|
|
|
|
margin-top: $main-header-height;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-15 15:46:45 +02:00
|
|
|
.layout-navbar-fixed.sidebar-collapse & {
|
|
|
|
.brand-link {
|
|
|
|
height: $main-header-height;
|
|
|
|
width: $sidebar-mini-width;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-05 13:34:15 +02:00
|
|
|
.layout-navbar-fixed & {
|
2019-08-13 14:26:25 +02:00
|
|
|
.control-sidebar {
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
2019-07-14 15:21:20 +02:00
|
|
|
a.anchor {
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
top: calc((#{$main-header-height-inner} + #{$main-header-bottom-border-width} + (#{$main-header-link-padding-y} * 2)) / -1);
|
|
|
|
}
|
|
|
|
|
2019-07-15 15:46:45 +02:00
|
|
|
.main-sidebar:hover {
|
2019-07-12 20:00:43 +02:00
|
|
|
.brand-link {
|
|
|
|
transition: width $transition-speed $transition-fn;
|
2019-07-15 15:46:45 +02:00
|
|
|
width: $sidebar-width;
|
2019-07-12 20:00:43 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.brand-link {
|
|
|
|
overflow: hidden;
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
transition: width $transition-speed $transition-fn;
|
|
|
|
width: $sidebar-width;
|
|
|
|
z-index: $zindex-main-sidebar + 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Sidebar variants brand-link fix
|
|
|
|
@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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-05 13:34:15 +02:00
|
|
|
.content-wrapper {
|
2019-07-12 20:00:43 +02:00
|
|
|
margin-top: $main-header-height;
|
2019-06-05 13:34:15 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.main-header {
|
2019-06-28 10:02:07 +02:00
|
|
|
left: 0;
|
2019-06-05 13:34:15 +02:00
|
|
|
position: fixed;
|
|
|
|
right: 0;
|
2019-06-28 10:02:07 +02:00
|
|
|
top: 0;
|
|
|
|
z-index: $zindex-main-sidebar - 1;
|
2019-06-05 13:34:15 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-12 20:00:43 +02:00
|
|
|
.layout-navbar-not-fixed & {
|
|
|
|
.brand-link {
|
|
|
|
position: static;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar,
|
|
|
|
.content-wrapper {
|
2019-07-18 16:22:11 +02:00
|
|
|
margin-top: 0;
|
2019-07-12 20:00:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.main-header {
|
|
|
|
position: static;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@each $breakpoint in map-keys($grid-breakpoints) {
|
|
|
|
@include media-breakpoint-up($breakpoint) {
|
|
|
|
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
|
|
|
|
2019-07-14 15:21:20 +02:00
|
|
|
.layout#{$infix}-navbar-fixed.layout-fixed & {
|
|
|
|
.sidebar {
|
|
|
|
margin-top: $main-header-height;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-12 20:00:43 +02:00
|
|
|
.layout#{$infix}-navbar-fixed & {
|
2019-08-13 14:26:25 +02:00
|
|
|
.control-sidebar {
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
2019-07-14 15:21:20 +02:00
|
|
|
a.anchor {
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
top: calc((#{$main-header-height-inner} + #{$main-header-bottom-border-width} + (#{$main-header-link-padding-y} * 2)) / -1);
|
|
|
|
}
|
|
|
|
|
2019-07-12 20:00:43 +02:00
|
|
|
&.sidebar-collapse {
|
|
|
|
.brand-link {
|
|
|
|
height: $main-header-height;
|
|
|
|
transition: width $transition-speed $transition-fn;
|
|
|
|
width: $sidebar-mini-width;
|
|
|
|
}
|
|
|
|
|
|
|
|
.main-sidebar:hover {
|
|
|
|
.brand-link {
|
|
|
|
transition: width $transition-speed $transition-fn;
|
|
|
|
width: $sidebar-width;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.brand-link {
|
|
|
|
overflow: hidden;
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
transition: width $transition-speed $transition-fn;
|
|
|
|
width: $sidebar-width;
|
|
|
|
z-index: $zindex-main-sidebar + 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Sidebar variants brand-link fix
|
|
|
|
@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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.content-wrapper {
|
|
|
|
margin-top: $main-header-height;
|
|
|
|
}
|
|
|
|
|
|
|
|
.main-header {
|
|
|
|
left: 0;
|
|
|
|
position: fixed;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
z-index: $zindex-main-sidebar - 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.layout#{$infix}-navbar-not-fixed & {
|
|
|
|
.brand-link {
|
|
|
|
position: static;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar,
|
|
|
|
.content-wrapper {
|
2019-07-18 16:22:11 +02:00
|
|
|
margin-top: 0;
|
2019-07-12 20:00:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.main-header {
|
|
|
|
position: static;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-05 13:34:15 +02:00
|
|
|
.layout-footer-fixed & {
|
|
|
|
.main-footer {
|
|
|
|
bottom: 0;
|
2019-06-15 13:21:50 +02:00
|
|
|
left: 0;
|
2019-06-28 10:02:07 +02:00
|
|
|
position: fixed;
|
|
|
|
right: 0;
|
2019-08-13 14:26:25 +02:00
|
|
|
z-index: $zindex-main-footer;
|
2019-06-05 13:34:15 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-12 20:00:43 +02:00
|
|
|
.layout-footer-not-fixed & {
|
|
|
|
.main-footer {
|
|
|
|
position: static;
|
|
|
|
}
|
|
|
|
|
|
|
|
.content-wrapper {
|
2019-07-18 16:22:11 +02:00
|
|
|
margin-bottom: 0;
|
2019-07-12 20:00:43 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@each $breakpoint in map-keys($grid-breakpoints) {
|
|
|
|
@include media-breakpoint-up($breakpoint) {
|
|
|
|
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
|
|
|
|
|
|
|
.layout#{$infix}-footer-fixed & {
|
|
|
|
.main-footer {
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
position: fixed;
|
|
|
|
right: 0;
|
2019-08-13 14:26:25 +02:00
|
|
|
z-index: $zindex-main-footer;
|
2019-07-12 20:00:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.content-wrapper {
|
|
|
|
margin-bottom: $main-footer-height;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.layout#{$infix}-footer-not-fixed & {
|
|
|
|
.main-footer {
|
|
|
|
position: static;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-06-05 13:34:15 +02:00
|
|
|
|
2019-05-25 15:15:32 +02:00
|
|
|
.layout-top-nav & {
|
|
|
|
margin-left: 0;
|
|
|
|
|
|
|
|
|
|
|
|
& .main-sidebar {
|
|
|
|
bottom: inherit;
|
|
|
|
height: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
.brand-image {
|
|
|
|
height: 33px;
|
|
|
|
}
|
|
|
|
|
2019-06-28 10:02:07 +02:00
|
|
|
& .main-sidebar {
|
2019-05-25 15:15:32 +02:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
& .content-wrapper,
|
|
|
|
& .main-header,
|
|
|
|
& .main-footer {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.content-wrapper,
|
2018-03-17 18:07:55 +01:00
|
|
|
.main-footer,
|
|
|
|
.main-header {
|
2019-06-05 13:34:15 +02:00
|
|
|
@include media-breakpoint-up(sm) {
|
2018-03-17 18:07:55 +01:00
|
|
|
@include transition(margin-left $transition-speed $transition-fn);
|
|
|
|
|
2016-10-22 21:32:28 +02:00
|
|
|
margin-left: $sidebar-width;
|
|
|
|
z-index: 3000;
|
2016-10-19 17:24:30 +02:00
|
|
|
|
2016-10-22 21:32:28 +02:00
|
|
|
.sidebar-collapse & {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
2016-10-19 17:24:30 +02:00
|
|
|
|
2019-06-05 13:34:15 +02:00
|
|
|
@include media-breakpoint-down(sm) {
|
2016-10-15 19:20:09 +02:00
|
|
|
&,
|
2019-06-28 10:02:07 +02:00
|
|
|
&::before {
|
2016-10-15 19:20:09 +02:00
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
|
2016-01-16 17:27:23 +01:00
|
|
|
.content-wrapper {
|
|
|
|
background: $main-bg;
|
2015-10-31 22:00:16 +01:00
|
|
|
|
2016-01-16 17:27:23 +01:00
|
|
|
> .content {
|
2018-03-17 18:07:55 +01:00
|
|
|
padding: $content-padding-y $content-padding-x;
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-16 17:27:23 +01:00
|
|
|
.main-sidebar {
|
2016-10-15 19:20:09 +02:00
|
|
|
&,
|
2019-06-28 10:02:07 +02:00
|
|
|
&::before {
|
2016-10-19 17:24:30 +02:00
|
|
|
$local-sidebar-transition: margin-left $transition-speed $transition-fn, width $transition-speed $transition-fn;
|
|
|
|
@include transition($local-sidebar-transition);
|
2016-10-15 19:20:09 +02:00
|
|
|
width: $sidebar-width;
|
|
|
|
}
|
|
|
|
|
2016-01-16 17:27:23 +01:00
|
|
|
.sidebar-collapse & {
|
|
|
|
&,
|
2019-06-28 10:02:07 +02:00
|
|
|
&::before {
|
2016-01-16 17:27:23 +01:00
|
|
|
margin-left: -$sidebar-width;
|
|
|
|
}
|
|
|
|
}
|
2016-10-15 19:20:09 +02:00
|
|
|
|
2019-06-05 13:34:15 +02:00
|
|
|
@include media-breakpoint-down(sm) {
|
2016-10-15 19:20:09 +02:00
|
|
|
&,
|
2019-06-28 10:02:07 +02:00
|
|
|
&::before {
|
|
|
|
box-shadow: none !important;
|
2016-10-15 19:20:09 +02:00
|
|
|
margin-left: -$sidebar-width;
|
|
|
|
}
|
2018-03-17 18:07:55 +01:00
|
|
|
|
|
|
|
.sidebar-open & {
|
|
|
|
&,
|
2019-06-28 10:02:07 +02:00
|
|
|
&::before {
|
2018-03-17 18:07:55 +01:00
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
2016-10-15 19:20:09 +02:00
|
|
|
}
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
|
2019-06-05 13:34:15 +02:00
|
|
|
:not(.layout-fixed) {
|
|
|
|
.main-sidebar {
|
|
|
|
height: inherit;
|
|
|
|
min-height: 100%;
|
2019-06-28 10:02:07 +02:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2019-06-05 13:34:15 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.layout-fixed {
|
2019-07-15 15:46:45 +02:00
|
|
|
.brand-link {
|
|
|
|
width: $sidebar-width;
|
|
|
|
}
|
|
|
|
|
2019-06-05 13:34:15 +02:00
|
|
|
.main-sidebar {
|
2019-06-28 10:02:07 +02:00
|
|
|
bottom: 0;
|
|
|
|
float: none;
|
2019-06-05 13:34:15 +02:00
|
|
|
height: 100vh;
|
2019-06-28 10:02:07 +02:00
|
|
|
left: 0;
|
2019-06-05 13:34:15 +02:00
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
2019-06-28 10:02:07 +02:00
|
|
|
}
|
2019-06-05 13:34:15 +02:00
|
|
|
}
|
|
|
|
|
2016-01-16 17:27:23 +01:00
|
|
|
.main-footer {
|
2018-03-17 18:07:55 +01:00
|
|
|
background: $main-footer-bg;
|
2019-06-28 10:02:07 +02:00
|
|
|
border-top: $main-footer-border-top;
|
|
|
|
color: lighten($gray-700, 25%);
|
|
|
|
padding: $main-footer-padding;
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
|
2016-01-16 17:27:23 +01:00
|
|
|
.content-header {
|
2018-03-17 18:07:55 +01:00
|
|
|
padding: 15px $content-padding-x;
|
|
|
|
|
2016-01-16 17:27:23 +01:00
|
|
|
h1 {
|
|
|
|
font-size: 1.8rem;
|
|
|
|
margin: 0;
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
2019-06-28 10:02:07 +02:00
|
|
|
|
2016-01-16 17:27:23 +01:00
|
|
|
.breadcrumb {
|
|
|
|
background: transparent;
|
|
|
|
line-height: 1.8rem;
|
2019-06-28 10:02:07 +02:00
|
|
|
margin-bottom: 0;
|
|
|
|
padding: 0;
|
2016-01-16 17:27:23 +01:00
|
|
|
}
|
2018-03-17 18:07:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.hold-transition {
|
|
|
|
.content-wrapper,
|
|
|
|
.main-header,
|
|
|
|
.main-footer {
|
2019-06-28 10:02:07 +02:00
|
|
|
transition: none !important;
|
2018-03-17 18:07:55 +01:00
|
|
|
}
|
|
|
|
}
|