fixed layout-fixed correct sidebar height to vh instead of %

This commit is contained in:
REJack 2020-02-07 10:45:11 +01:00
parent b1c99c8963
commit 0238015f5e
No known key found for this signature in database
GPG key ID: 9F3976CC630CC888
6 changed files with 20 additions and 5 deletions

View file

@ -33,6 +33,13 @@ body,
}
}
.layout-fixed & .sidebar {
height: calc(100vh - (#{$main-header-height-inner} + #{$main-header-bottom-border-width}));
}
.layout-fixed.text-sm & .sidebar {
height: calc(100vh - (#{$main-header-height-sm-inner} + #{$main-header-bottom-border-width}));
}
.layout-navbar-fixed.layout-fixed & {
.control-sidebar {
top: $main-header-height;

View file

@ -18,7 +18,7 @@
}
.sidebar {
height: calc(100% - 4rem);
height: calc(100% - (#{$main-header-height-inner} + #{$main-header-bottom-border-width}));
overflow-y: auto;
padding-bottom: $sidebar-padding-y;
padding-left: $sidebar-padding-x;

10
dist/css/adminlte.css vendored
View file

@ -10128,6 +10128,14 @@ body,
left: inherit;
}
.layout-fixed .wrapper .sidebar  {
height: calc(100vh - (3.5rem + 1px));
}
.layout-fixed.text-sm .wrapper .sidebar  {
height: calc(100vh - (2.93725rem + 1px));
}
.layout-navbar-fixed.layout-fixed .wrapper .control-sidebar {
top: calc(3.5rem + 1px);
}
@ -11621,7 +11629,7 @@ body.sidebar-collapse:not(.sidebar-mini-md):not(.sidebar-mini) .main-header::bef
}
.sidebar {
height: calc(100% - 4rem);
height: calc(100% - (3.5rem + 1px));
overflow-y: auto;
padding-bottom: 0;
padding-left: 0.5rem;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long