Fix sticky footer to work on index page (#674)

* fixing sticky footer not being sticky

* remove unneeded flex rules

* Revert "remove unneeded flex rules"

This reverts commit 9b8d1809ca.

* adding flex-grow to first-child

* adding min-height in 'vh' to .navPusher for it to work on IE11
This commit is contained in:
Noam Elboim 2018-05-21 08:31:45 +03:00 committed by Yangshun Tay
parent 1332e067c4
commit 67c84c185c

View file

@ -1852,12 +1852,17 @@ footer .social {
display: flex;
flex-direction: column;
padding-top: 50px;
min-height: calc(100vh - 50px);
}
.docMainWrapper {
flex-grow: 1;
width: 100%;
box-sizing: border-box;
}
/* those make the footer sticky and work even in IE 11 */
.navPusher > :first-child {
flex-grow: 1;
}
footer.nav-footer {
flex-shrink: 0;
}