mirror of https://github.com/ColorlibHQ/AdminLTE
Fixed Sidebar - Scrollbar not working when change screen size
parent
3e064d11e4
commit
05d3c49284
|
@ -1,4 +1,5 @@
|
|||
.content-wrapper {
|
||||
grid-area: #{$lte-prefix}content-wrapper;
|
||||
max-width: 100vw;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@include media-breakpoint-up(lg) {
|
||||
@include media-breakpoint-up($lte-sidebar-breakpoint) {
|
||||
.layout-fixed {
|
||||
.main-sidebar {
|
||||
position: fixed;
|
||||
|
@ -6,6 +6,7 @@
|
|||
bottom: 0;
|
||||
left: 0;
|
||||
float: none;
|
||||
max-height: 100vh;
|
||||
|
||||
.sidebar {
|
||||
height: subtract(100vh, add($lte-main-header-height-inner, $lte-main-header-bottom-border-width));
|
||||
|
|
|
@ -4,10 +4,11 @@
|
|||
position: fixed;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
min-height: 100vh;
|
||||
max-height: 100vh;
|
||||
margin-left: calc(var(--#{$lte-prefix}sidebar-width) * -1); // stylelint-disable-line function-disallowed-list
|
||||
|
||||
.sidebar {
|
||||
height: subtract(100vh, add($lte-main-header-height-inner, $lte-main-header-bottom-border-width));
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
.main-footer {
|
||||
grid-area: #{$lte-prefix}main-footer;
|
||||
width: inherit;
|
||||
max-width: 100vw;
|
||||
padding: $lte-main-footer-padding;
|
||||
color: $lte-main-footer-color;
|
||||
background-color: $lte-main-footer-bg;
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
.main-header {
|
||||
z-index: $lte-zindex-main-header;
|
||||
grid-area: #{$lte-prefix}main-header;
|
||||
max-width: 100vw;
|
||||
border-bottom: $lte-main-header-bottom-border;
|
||||
|
||||
.nav-link {
|
||||
|
|
Loading…
Reference in New Issue