From aced62fec357750b814a06e7479b4f45d18b2ab8 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Thu, 17 Mar 2016 16:39:50 +0000 Subject: [PATCH] gui: Improve layout of footer on narrow screens (fixes #2663) --- gui/default/assets/css/overrides.css | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/gui/default/assets/css/overrides.css b/gui/default/assets/css/overrides.css index 9d0caadca..897d84652 100644 --- a/gui/default/assets/css/overrides.css +++ b/gui/default/assets/css/overrides.css @@ -246,11 +246,32 @@ ul.three-columns li, ul.two-columns li { /** Footer nav on small devices **/ @media (max-width: 1199px) { + /* Stay at the end of the page, with space reserved for the footer + usually taking up two rows. */ + + html { + position: relative; + min-height: 100%; + } + body { - padding-bottom: 0; + padding-bottom: 60px; } .navbar-fixed-bottom { - position: static; + position: absolute; } } + +@media (max-width: 768px) { + /* Layout after the normal contents, as this is when the footer switches + to a vertical layout. */ + + body { + padding-bottom: 0px; + } + + .navbar-fixed-bottom { + position: relative; + } +} \ No newline at end of file