diff options
-rw-r--r-- | templates/web/fixmystreet/alert/index.html | 24 | ||||
-rw-r--r-- | web/cobrands/bromley/layout.scss | 10 |
2 files changed, 13 insertions, 21 deletions
diff --git a/templates/web/fixmystreet/alert/index.html b/templates/web/fixmystreet/alert/index.html index 9390ec809..03d9843f6 100644 --- a/templates/web/fixmystreet/alert/index.html +++ b/templates/web/fixmystreet/alert/index.html @@ -2,18 +2,6 @@ <h1>[% loc('Local RSS feeds and email alerts') %]</h1> -[% IF photos.size %] -<div class="sticky-sidebar"> - <aside> - <h2>[% loc('Some photos of recent reports') %]</h2> - [% FOREACH p IN photos %] - <a href="/report/[% p.id %]"><img border="0" height="100" - src="/photo/[% p.id %].tn.jpeg" alt="[% p.title | html %]" title="[% p.title | html %]"></a> - [% END %] - </aside> -</div> -[% END %] - <p> [% IF c.cobrand.is_council %] FixMyStreet has a variety of RSS feeds and email alerts for local problems, including @@ -50,4 +38,16 @@ To find out what local alerts we have for you, please enter your [% c.cobrand.co </fieldset> </form> +[% IF photos.size %] +<div class="sticky-sidebar"> + <aside> + <h2>[% loc('Some photos of recent reports') %]</h2> + [% FOREACH p IN photos %] + <a href="/report/[% p.id %]"><img border="0" height="100" + src="/photo/[% p.id %].tn.jpeg" alt="[% p.title | html %]" title="[% p.title | html %]"></a> + [% END %] + </aside> +</div> +[% END %] + [% INCLUDE 'footer.html' %] diff --git a/web/cobrands/bromley/layout.scss b/web/cobrands/bromley/layout.scss index 57c2dbd71..d3c8fb065 100644 --- a/web/cobrands/bromley/layout.scss +++ b/web/cobrands/bromley/layout.scss @@ -132,6 +132,7 @@ body.twothirdswidthpage { @include box-shadow(none); } .sticky-sidebar { + top: 1em; aside { position: absolute; top: 0; @@ -139,15 +140,6 @@ body.twothirdswidthpage { } } } -@media only screen and (min-width: 48em) and (max-width: 61em) { - body.twothirdswidthpage { - .content { - .sticky-sidebar { - top: auto; - } - } - } -} // So as not to interfere with the Bromley footer, make the fixed nav static. .shadow-wrap { |