diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-04-17 13:37:19 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-04-17 13:37:19 +0100 |
commit | 73c4c7553b3a5064bbdebb9ccb36ed46b57027d0 (patch) | |
tree | 4d4583597087e4c933f8f29d982438414634cbf6 | |
parent | 7debd78604c533994e30389118ec56f7e8de0be6 (diff) |
Make fixed things static on Bromley, and open correctly.
-rw-r--r-- | web/cobrands/bromley/layout.scss | 11 | ||||
-rw-r--r-- | web/cobrands/fixmystreet/_base.scss | 4 | ||||
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 6 |
3 files changed, 16 insertions, 5 deletions
diff --git a/web/cobrands/bromley/layout.scss b/web/cobrands/bromley/layout.scss index ebc207613..40528e4cf 100644 --- a/web/cobrands/bromley/layout.scss +++ b/web/cobrands/bromley/layout.scss @@ -118,3 +118,14 @@ body.twothirdswidthpage { } } +// So as not to interfere with the Bromley footer, make the fixed nav static. +.shadow-wrap { + position: static; + padding-top: 0; + margin-bottom: 1em; + ul#key-tools { + border-top: none; + border-bottom: 1px solid $primary; + } +} + diff --git a/web/cobrands/fixmystreet/_base.scss b/web/cobrands/fixmystreet/_base.scss index 3d266b28e..4ac6d7d59 100644 --- a/web/cobrands/fixmystreet/_base.scss +++ b/web/cobrands/fixmystreet/_base.scss @@ -540,7 +540,7 @@ p.label-valid { size:0.6875em; family: 'helvetica', 'arial', sans-serif; } - &:hover, &.hover, &.active { + &:hover, &.hover { text-decoration:none; background-color:#333; color:#fff; @@ -557,7 +557,7 @@ p.label-valid { background-image:url('/cobrands/fixmystreet/images/sprite.png'); background-position:center -2716px; } - &.hover, &.active { + &.hover { background-image:url('/cobrands/fixmystreet/images/sprite.png'); background-position:center -2064px; } diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index cce66803c..54e725864 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -134,7 +134,7 @@ $(function(){ } if (typeof fixmystreet !== 'undefined') { if (cobrand == 'bromley') { - $('#bromley-footer').hide(); + //$('#bromley-footer').hide(); } else { fixmystreet.state_map = 'full'; } @@ -348,12 +348,12 @@ $.fn.drawer = function(id, ajax) { }); }; - if ($('html.mobile').length) { + if ($('html.mobile').length || cobrand == 'bromley') { $('#council_wards').hide().removeClass('hidden-js').find('h2').hide(); $('#key-tool-wards').click(function(e){ e.preventDefault(); $('#council_wards').slideToggle('800', function(){ - $('#key-tool-wards').toggleClass('active'); + $('#key-tool-wards').toggleClass('hover'); }); }); } else { |