mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-08 13:52:36 +02:00
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:
parent
1332e067c4
commit
67c84c185c
1 changed files with 6 additions and 1 deletions
|
@ -1852,12 +1852,17 @@ footer .social {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding-top: 50px;
|
padding-top: 50px;
|
||||||
|
min-height: calc(100vh - 50px);
|
||||||
}
|
}
|
||||||
.docMainWrapper {
|
.docMainWrapper {
|
||||||
flex-grow: 1;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* those make the footer sticky and work even in IE 11 */
|
||||||
|
.navPusher > :first-child {
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
footer.nav-footer {
|
footer.nav-footer {
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue