From 9c5f3eddeb37a86994c4ce7d3812eb3956117c8d Mon Sep 17 00:00:00 2001 From: Guillaume Denis Date: Thu, 2 Apr 2015 16:02:19 +0200 Subject: [PATCH] sticky footer --- ckanext/ozwillo_theme/fanstatic/ozwillo.css | 21 +++++++++++++++++++++ ckanext/ozwillo_theme/templates/base.html | 2 -- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/ckanext/ozwillo_theme/fanstatic/ozwillo.css b/ckanext/ozwillo_theme/fanstatic/ozwillo.css index 5b0b1fc..f4e02e5 100644 --- a/ckanext/ozwillo_theme/fanstatic/ozwillo.css +++ b/ckanext/ozwillo_theme/fanstatic/ozwillo.css @@ -151,6 +151,14 @@ padding-top: 80px; } /* footer */ + +#content { + margin-bottom: 40px; +} + +footer { + position: relative; +} footer .t3-footnav { padding: 16px 0 0; } @@ -191,6 +199,19 @@ footer a.ext-twitter:after { background: url('/img/twitter.png') no-repeat top 3px left 0; } +@media (min-width: 992px) { + html, body { + height: 100%; + } + body > .homepage, body > [role="main"] { + min-height: 100%; + height: auto; + margin-bottom: -205px; + padding-bottom: 205px; + background: #eeeeee url("../../../base/images/bg.png"); + } +} + li.media-item { margin-bottom:10px; } diff --git a/ckanext/ozwillo_theme/templates/base.html b/ckanext/ozwillo_theme/templates/base.html index 2510c55..f29ed42 100644 --- a/ckanext/ozwillo_theme/templates/base.html +++ b/ckanext/ozwillo_theme/templates/base.html @@ -5,9 +5,7 @@ {% resource 'theme/ozwillo.css' %} {% resource 'theme/templates.t3_bs3_blank.less.bootstrap.less.css' %} {% resource 'theme/plugins.system.t3.base-bs3.less.t3.less.css' %} - {% resource 'theme/plugins.system.t3.base-bs3.less.t3.less.css' %} {% resource 'theme/templates.t3_bs3_blank.less.core.less.css' %} - {% resource 'theme/templates.t3_bs3_blank.less.typography.less.css' %} {% resource 'theme/templates.t3_bs3_blank.less.forms.less.css' %} {% resource 'theme/templates.t3_bs3_blank.less.navigation.less.css' %} {% resource 'theme/templates.t3_bs3_blank.less.navbar.less.css' %}