Skip to content

Commit

Permalink
Merge pull request #194 from UTACM/86-fix-floating-footer
Browse files Browse the repository at this point in the history
Fix floating footer #86
  • Loading branch information
alex-bellon committed Mar 21, 2020
2 parents 0b51a61 + 4d1a6bf commit 0d6498a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
10 changes: 9 additions & 1 deletion assets/css/main.css
Expand Up @@ -222,7 +222,7 @@
}

/* Grid */

.row {
border-bottom: solid 1px transparent;
-moz-box-sizing: border-box;
Expand Down Expand Up @@ -3798,6 +3798,14 @@
padding-top: 0em;
}

body #footer-special {
padding-top: 0em;
position: fixed;
bottom: 0;
width: 100%;

}

div:not([name="!body"]){
padding-top: 0em;
}
Expand Down
2 changes: 2 additions & 0 deletions assets/js/faq.js
Expand Up @@ -34,6 +34,8 @@ function buildFAQTable(data) {
content += '<p id="answer' + index + '" class="hideAnswer">' + data[index][answersColumn] + '</p>';
index++;
});
// Extends body to accomdate for tall footer on very small devices (e.g. iPhone 5/5S/SE)
content += "<br></br><br></br>";
return content;
}

Expand Down
2 changes: 2 additions & 0 deletions assets/js/forms.js
Expand Up @@ -65,6 +65,8 @@ function buildAllForms(data) {
content += "<a href='" + public_spreadsheet_url + "'><button class='button admin'>Edit Forms List</button></a>";

content += "</div>";
// Extends body to accomdate for tall footer on very small devices (e.g. iPhone 5/5S/SE)
content += "<br></br><br></br>";
return content;
}

Expand Down
2 changes: 1 addition & 1 deletion faq.html
Expand Up @@ -61,7 +61,7 @@
</section>

<!-- Footer -->
<footer id="footer">
<footer id="footer-special">
<iframe src="footer.html" frameborder="0" scrolling="no" width="100%" id="footer-iframe"></iframe>
</footer>

Expand Down
2 changes: 1 addition & 1 deletion forms.html
Expand Up @@ -69,7 +69,7 @@
</section>

<!-- Footer -->
<footer id="footer">
<footer id="footer-special">
<iframe src="footer.html" frameborder="0" scrolling="no" width="100%" id="footer-iframe"></iframe>
</footer>

Expand Down

0 comments on commit 0d6498a

Please sign in to comment.