diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-10-25 18:41:53 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-10-25 18:45:37 +0100 |
commit | 7c9e4b1a5c0a4f2e18adb30a715cd6aaa1b8139d (patch) | |
tree | e864f561d5e2414a34ec03821b6bdbe3a7fe6e66 /web | |
parent | 0226c242b0aed7bed49ced79edda11bb5ff10615 (diff) |
Work around Chrome bug with bottom fixed navbar.
The position:fixed bottom navigation does not stay fixed in Chrome, it
appears to scroll with the content (though the link targets remain and
swapping tabs fixes the display, so I'm pretty sure it's a bug). The bug
is logged in Chrome's tracker at:
https://code.google.com/p/chromium/issues/detail?id=311513
To work around it, the z-index has been removed from .container; this
would mean that the sidebar notes all disappeared under the map, so they
have been jigged to appear on top of the main content div instead.
Diffstat (limited to 'web')
-rw-r--r-- | web/cobrands/sass/_layout.scss | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/web/cobrands/sass/_layout.scss b/web/cobrands/sass/_layout.scss index dea6d8b74..565e7d4d8 100644 --- a/web/cobrands/sass/_layout.scss +++ b/web/cobrands/sass/_layout.scss @@ -32,7 +32,6 @@ h1 { padding: 0em; width: 60em; position: relative; - z-index:1; } //z-index stack order gets reset to 0 in ie6/7 if you position anything, @@ -736,30 +735,30 @@ textarea.form-error { @include border-radius(0 0 0.25em 0.25em); } +#report-a-problem-sidebar, .general-sidebar-notes { + position: absolute; + left: 29em; + width: 15em; + @include box-shadow(rgba(0, 0, 0, 0.6) 0px 0px 4px 1px); +} // Report a problem sidebar notes #report-a-problem-sidebar { - position:absolute; - z-index:-1;//push behind .content, .container resets z-index for this - left:29.5em; top:5em; - width:15em; - @include box-shadow(rgba(0, 0, 0, 0.6) 0px 0px 4px 1px); - .sidebar-tips { - background:#eeeeee; + div { padding:1em; font-size:0.75em; + background:#eeeeee; } .sidebar-notes { background:#333333; - padding:1em; color:#ffffff; - font-size:0.75em; } } .ie6, .ie7 { #report-a-problem-sidebar, .general-sidebar-notes { - left: 29em; // 0.5em left margin gone on .content in IE6/7, so reduce this accordingly. + left: 28.5em; // 0.5em left margin gone on .content in IE6/7, so reduce this accordingly. + z-index: 1; } } @@ -776,11 +775,6 @@ textarea.form-error { // More general sidebar notes .general-sidebar-notes { - position: absolute; - left:29.5em; - width:15em; - z-index: -1; //push behind .content, .container resets z-index for this - @include box-shadow(rgba(0, 0, 0, 0.6) 0px 0px 4px 1px); p { background:#eeeeee; font-size:0.75em; @@ -796,7 +790,7 @@ textarea.form-error { /* Adjust the above so text flow can be different from display */ #forgotten-pw { position: relative; - left: 27em; + left: 26.5em; top: -7em; margin-bottom: -7em; // So no gap in main flow } |