|
|
@@ -31,4 +31,31 @@
|
|
|
top: 0;
|
|
|
z-index: $lte-zindex-fixed-header;
|
|
|
}
|
|
|
+
|
|
|
+ // Fixes #6020: when only `fixed-header` is used (without `layout-fixed`),
|
|
|
+ // the sidebar — including its branding — used to scroll with the page
|
|
|
+ // because nothing made it sticky. Pin the sidebar so the brand and menu
|
|
|
+ // stay visible while the page content scrolls beneath the fixed header.
|
|
|
+ // Only applied on `sidebar-expand-*` breakpoints, since the mobile sidebar
|
|
|
+ // is an off-canvas overlay that handles its own positioning.
|
|
|
+ @each $breakpoint in map-keys($grid-breakpoints) {
|
|
|
+ $next: breakpoint-next($breakpoint, $grid-breakpoints);
|
|
|
+ $infix: breakpoint-infix($next, $grid-breakpoints);
|
|
|
+
|
|
|
+ &.sidebar-expand#{$infix} {
|
|
|
+ @include media-breakpoint-up($next) {
|
|
|
+ .app-sidebar {
|
|
|
+ position: sticky;
|
|
|
+ top: 0;
|
|
|
+ max-height: 100vh;
|
|
|
+
|
|
|
+ .sidebar-wrapper {
|
|
|
+ height: subtract(100vh, add($lte-app-header-height, 1px));
|
|
|
+ overflow-x: hidden;
|
|
|
+ overflow-y: auto;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|