diff options
5 files changed, 23 insertions, 19 deletions
diff --git a/templates/web/fixmystreet/around/around_index.html b/templates/web/fixmystreet/around/around_index.html index a465eae63..95577134a 100644 --- a/templates/web/fixmystreet/around/around_index.html +++ b/templates/web/fixmystreet/around/around_index.html @@ -1,4 +1,4 @@ -[% INCLUDE 'header.html', title => loc('Reporting a problem') %] +[% INCLUDE 'header.html', title => loc('Reporting a problem'), bodyclass => 'mappage' %] [% # NOTE ON PARTIAL REPORTS: diff --git a/templates/web/fixmystreet/around/display_location.html b/templates/web/fixmystreet/around/display_location.html index caa56ae57..db0a2d4c0 100755 --- a/templates/web/fixmystreet/around/display_location.html +++ b/templates/web/fixmystreet/around/display_location.html @@ -32,6 +32,7 @@ INCLUDE 'header.html', title => loc('Viewing a location') rss => [ loc('Recent local problems, FixMyStreet'), rss_url ], + bodyclass => 'mappage', robots => 'noindex,nofollow'; %] diff --git a/templates/web/fixmystreet/report/display.html b/templates/web/fixmystreet/report/display.html index 5a7ccfd2f..cc29795a7 100644 --- a/templates/web/fixmystreet/report/display.html +++ b/templates/web/fixmystreet/report/display.html @@ -6,6 +6,7 @@ title = problem_title rss = [ loc('Updates to this problem, FixMyStreet'), "/rss/$problem.id" ] robots = 'index, nofollow' + bodyclass = 'mappage' %] [% map_html %] diff --git a/templates/web/fixmystreet/report/new/fill_in_details.html b/templates/web/fixmystreet/report/new/fill_in_details.html index 83865d9fe..0c293d744 100644 --- a/templates/web/fixmystreet/report/new/fill_in_details.html +++ b/templates/web/fixmystreet/report/new/fill_in_details.html @@ -1,6 +1,6 @@ [% PROCESS "maps/${map.type}.html" IF report.used_map; - INCLUDE 'header.html', title => loc('Reporting a problem') + INCLUDE 'header.html', title => loc('Reporting a problem'), bodyclass => 'mappage' %] [% IF report.used_map %] diff --git a/web/cobrands/fixmystreet/layout.scss b/web/cobrands/fixmystreet/layout.scss index a19b348a1..f84469c8f 100644 --- a/web/cobrands/fixmystreet/layout.scss +++ b/web/cobrands/fixmystreet/layout.scss @@ -12,9 +12,7 @@ } body { - // temp map background - background:url(images/temp-map.jpg) center fixed; - // temp map background + background: #1A1A1A; } // Page wrapper and header bits follow @@ -55,11 +53,9 @@ body { .nav-wrapper-2{ width: 100%; min-height: 3.5em; - position: fixed; + position: absolute; border-top: 0.25em solid $primary; z-index:2; - background: #222; - @include background(linear-gradient(#000, #222 10%, #222 90%, #000)); } } @@ -72,7 +68,6 @@ body { left:0; .nav-wrapper-2 { // position static as well so we fix lots of the z-index issues - // and revert to normal scrolling position:static; } } @@ -86,7 +81,7 @@ body { } #site-logo { top: 0.75em; - position: fixed; + position: absolute; z-index: 3; } #nav-link { @@ -190,19 +185,26 @@ body { margin-top:7em; } } + +// map page - has fixed header with a gradient +body.mappage { + .nav-wrapper{ + .nav-wrapper-2{ + position: fixed; + background: #222; + @include background(linear-gradient(#000, #222 10%, #222 90%, #000)); + } + } + #site-logo{ + position: fixed; + } +} + // full width page body.fullwidthpage { - background:#1a1a1a; .content { width: 57em; } - .nav-wrapper-2{ - background: #1a1a1a; - position:absolute; - } - #site-logo{ - position: absolute; - } .intro { width:40em; } @@ -486,7 +488,7 @@ textarea{ div.form-error, p.form-error { display:block; - width:25.25em; + width:24.7em; } input.form-error, |