mirror of
https://github.com/StartBootstrap/startbootstrap-sb-admin.git
synced 2025-01-08 14:22:22 +01:00
fix calculation of sticky footer when heights differ from default
This commit is contained in:
parent
ea3934617b
commit
4070ec3d8d
3 changed files with 7 additions and 5 deletions
|
@ -4,7 +4,7 @@ footer.sticky-footer {
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 56px;
|
height: $sticky-footer-height;
|
||||||
|
|
||||||
background-color: $gray-200;
|
background-color: $gray-200;
|
||||||
|
|
||||||
|
|
|
@ -10,18 +10,18 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
body.sticky-footer {
|
body.sticky-footer {
|
||||||
margin-bottom: 56px;
|
margin-bottom: $sticky-footer-height;
|
||||||
.content-wrapper {
|
.content-wrapper {
|
||||||
min-height: calc(100vh - 56px - 56px);
|
min-height: calc(100vh - #{$sticky-footer-height} - #{$navbar-base-height});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body.fixed-nav {
|
body.fixed-nav {
|
||||||
padding-top: 56px;
|
padding-top: $navbar-base-height;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-wrapper {
|
.content-wrapper {
|
||||||
min-height: calc(100vh - 56px);
|
min-height: calc(100vh - #{$sticky-footer-height});
|
||||||
padding-top: 1rem;
|
padding-top: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,3 +30,5 @@ $navbar-base-height: 56px;
|
||||||
$sidenav-base-width: 250px;
|
$sidenav-base-width: 250px;
|
||||||
// Change below variable to change the width of the sidenav when collapsed
|
// Change below variable to change the width of the sidenav when collapsed
|
||||||
$sidenav-collapsed-width: 55px;
|
$sidenav-collapsed-width: 55px;
|
||||||
|
// Change below variable to change the height of the sticky footer
|
||||||
|
$sticky-footer-height: 56px;
|
Loading…
Reference in a new issue