From 993e4e9ae3b8f64ce69b0db2478b5152817255a8 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 25 Sep 2014 13:12:41 +0100 Subject: Fix map page content minimum height. Reduce the default by 3em to match the .content margin change. Include East Sussex in this calculation again, but set a .mappage padding-bottom so that there's no gap at the bottom of the page. --- web/cobrands/eastsussex/layout.scss | 1 + web/cobrands/fixmystreet/fixmystreet.js | 8 ++------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/web/cobrands/eastsussex/layout.scss b/web/cobrands/eastsussex/layout.scss index a6e919229..68ab3b3cb 100644 --- a/web/cobrands/eastsussex/layout.scss +++ b/web/cobrands/eastsussex/layout.scss @@ -76,6 +76,7 @@ body.mappage { #mysociety { margin-top: 0; padding-top: 0; + padding-bottom: 0; width: auto; background: transparent; } diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index faa269a7c..60aa9d1ff 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -458,15 +458,11 @@ $.fn.drawer = function(id, ajax) { */ if (!$('html.mobile').length) { if (!($('body').hasClass('frontpage'))){ - var offset = -18 * 16; + var offset = -15 * 16; if (cobrand == 'bromley') { offset = -110; - } else if (cobrand == 'oxfordshire') { - offset = -15 * 16; - } - if (cobrand !== "eastsussex") { - heightFix(window, '.content', offset, 1); } + heightFix(window, '.content', offset, 1); // in case we have a map that isn't full screen map_fix(); } -- cgit v1.2.3