aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/static
diff options
context:
space:
mode:
authorJessica Tallon <jessica@megworld.co.uk>2014-09-30 11:23:24 +0100
committerJessica Tallon <jessica@megworld.co.uk>2014-09-30 11:23:24 +0100
commitec84acacdcb7dd385ef8c76cad07388ec076382a (patch)
tree3962b2af5549fc7db7d7009a900d56776061de2a /mediagoblin/static
parenteddb1aaf9e9ddcaef66cc0e6ee2ec43ee03baa1c (diff)
downloadmediagoblin-ec84acacdcb7dd385ef8c76cad07388ec076382a.tar.lz
mediagoblin-ec84acacdcb7dd385ef8c76cad07388ec076382a.tar.xz
mediagoblin-ec84acacdcb7dd385ef8c76cad07388ec076382a.zip
Fix #952 - Force the footer to the bottom of the page
Diffstat (limited to 'mediagoblin/static')
-rw-r--r--mediagoblin/static/css/base.css21
1 files changed, 18 insertions, 3 deletions
diff --git a/mediagoblin/static/css/base.css b/mediagoblin/static/css/base.css
index 0bd58738..f9d90df1 100644
--- a/mediagoblin/static/css/base.css
+++ b/mediagoblin/static/css/base.css
@@ -25,7 +25,7 @@
src: local('Lato Regular'), local('Lato-Regular'), url('../fonts/Lato-Regular.ttf') format('truetype');
}
-body {
+html, body {
background-color: #161616;
color: #C3C3C3;
padding: 0;
@@ -110,6 +110,23 @@ input, textarea {
/* website structure */
+#wrap {
+ min-height: 100%;
+ height: auto;
+
+ /* This must be equal to the footer height + 5px */
+ margin-bottom: -35px;
+}
+
+#wrap:after {
+ content: "";
+ display: block;
+}
+
+footer, #wrap:after {
+ height: 30px;
+}
+
header {
width: 100%;
padding: 0;
@@ -176,9 +193,7 @@ a.logo {
footer {
width: 100%;
- height: 30px;
border-top: 1px solid #333;
- bottom: 0px;
padding: 8px 0;
text-align: center;
font-size: 0.875em;