From 68a36aa14bfd9e236fc2cdf77b370bdc0cc9cf4d Mon Sep 17 00:00:00 2001 From: Zarino Zappia Date: Tue, 9 Sep 2014 17:07:50 +0100 Subject: Fix display of user menu on map page. --- templates/web/fixmystreet/header.html | 10 ++++------ web/cobrands/sass/_layout.scss | 28 ++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/templates/web/fixmystreet/header.html b/templates/web/fixmystreet/header.html index 14dbf0ddc..3d69fbac6 100644 --- a/templates/web/fixmystreet/header.html +++ b/templates/web/fixmystreet/header.html @@ -26,7 +26,7 @@ [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js', site_title = c.cobrand.site_title %] [% extra_js %] - + [% IF c.req.uri.host == 'osm.fixmystreet.com' %] [% END %] @@ -46,16 +46,14 @@ + [% IF c.user_exists %]
- [% IF c.user_exists %]

- [% tprintf(loc('Hi %s'), c.user.name || c.user.email) %] + [% tprintf(loc('Hi %s'), c.user.name || c.user.email) %] [% loc('sign out') %]

- [% ELSE %] - - [% END %]
+ [% END %] [% pre_container_extra %] diff --git a/web/cobrands/sass/_layout.scss b/web/cobrands/sass/_layout.scss index f03fa85ae..5a35d989b 100644 --- a/web/cobrands/sass/_layout.scss +++ b/web/cobrands/sass/_layout.scss @@ -271,6 +271,34 @@ body.mappage { #user-meta { max-width: none; + p { + display: block; + height: auto; + width: 22.2em; // 27em (.content width) - 2em (.content padding) - 6em - 0.8em + padding: 0.5em 6em 0.5em 0.8em; + top: 0; + left: 0; + z-index: 1; + box-shadow: none; + background: #FCEA9A; + border-bottom: 1px solid #ffd000; + + a { + // move the "Sign out" link in and down a bit, because of extra padding on parent + top: 0.8em; + right: 0.8em; + } + } + + & + .container .content { + padding-top: 3.5em; // make room for user menu! + } + } + + .banner { + p { + top: -2.1em; // a few pixels lower than default + } } } -- cgit v1.2.3