diff options
author | Matthew Somerville <matthew@mysociety.org> | 2014-09-25 13:12:41 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2014-09-25 13:12:41 +0100 |
commit | 993e4e9ae3b8f64ce69b0db2478b5152817255a8 (patch) | |
tree | 528619849435470e171381378c894e6d7dec6f0d | |
parent | a43264a12e4339c7cda589368f9b493048eaf7fd (diff) |
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.
-rw-r--r-- | web/cobrands/eastsussex/layout.scss | 1 | ||||
-rw-r--r-- | 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(); } |