Move footer to the bottom if content is not larger than viewport

This commit is contained in:
Jonas Schäfer
2021-01-17 10:45:11 +01:00
parent fa700bba07
commit fce7b9a637
3 changed files with 14 additions and 12 deletions

View File

@@ -26,10 +26,20 @@ body {
margin: 0;
padding: 0;
background-color: $gray-900;
display: flex;
flex-direction: column;
min-height: 100vh;
}
body > main {
main {
padding: $w-l1;
margin-left: auto;
max-width: 60rem;
margin-right: auto;
}
#mwrap {
flex: 1;
}
/* top bar */
@@ -85,14 +95,6 @@ div#topbar {
}
}
/* main content */
main {
max-width: 60rem;
margin-left: auto;
margin-right: auto;
}
/* standard elevations */
.el-1, .box.el-1, div.form.el-1 {