mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-03 11:22:30 +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;
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue