Skip to content

Commit ccc8738

Browse files
committed
ensure the footer is always at the bottom of the screen
1 parent 9104226 commit ccc8738

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/styles/app.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ $yellow: #FECD2F;
1212
body {
1313
font-family: $body-font;
1414
background-color: white;
15+
16+
/* Ensure the footer is always at the bottom of the screen */
17+
min-height: 100vh;
18+
display: flex;
19+
flex-direction: column;
20+
& > #main-content {
21+
flex: 1;
22+
}
1523
}
1624

1725
#ferris img {

templates/layout.hbs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@
4848
</head>
4949
<body>
5050
{{> nav}}
51-
{{~> page}}
51+
<div id="main-content">
52+
{{~> page}}
53+
</div>
5254
{{> footer}}
5355
</body>
5456
</html>

0 commit comments

Comments
 (0)