aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-04-30 15:31:34 +0100
committerStruan Donald <struan@exo.org.uk>2012-04-30 15:31:34 +0100
commit79887eeb1f6312adf8a10c62c08c5d9bbd02097a (patch)
tree4c528f966a6981c398f23f89cfc234598a496bf7
parentcea39933bc5627afc627e6f356687b4902d6ba18 (diff)
map display fixes for ie6
-rw-r--r--web/cobrands/barnet/layout.scss27
-rw-r--r--web/cobrands/barnet/position_map.js4
2 files changed, 25 insertions, 6 deletions
diff --git a/web/cobrands/barnet/layout.scss b/web/cobrands/barnet/layout.scss
index f997445f7..b8806b2a9 100644
--- a/web/cobrands/barnet/layout.scss
+++ b/web/cobrands/barnet/layout.scss
@@ -86,8 +86,9 @@
padding: 0 1em;
}
-#site-header {
- display: none;
+#site-header,
+#site-logo {
+ display: none !important;
}
#side-form {
@@ -136,8 +137,23 @@ body > html {font-size: 12px;}
#content.fullWidth {width: 678px;}
#content.home {margin-top: 18px;}
-.mappage #content.withWidth {margin: 0 0 0 0px; width: auto; overflow: hidden; float: left; display: inline;}
-.mappage #content.fullWidth {width: 900px;}
+.mappage {
+ #content.withWidth {margin: 0 0 0 0px; width: auto; overflow: hidden; float: left; display: inline;}
+ #content.fullWidth {width: 900px;}
+}
+
+/* IE6 ignore the second #foo.bar rule so we have to fudge it another way */
+.ie6 {
+ .mappage {
+ .wrapper {
+ margin: 0 0 0 -232px;
+ overflow: hidden;
+ float: left;
+ display: inline;
+ width: 900px;
+ }
+ }
+}
#breadcrumb {font-size: .9em; color: #5c6267; padding: 6px 0; margin: 0 0 0 232px;}
#breadcrumb.full {margin: 0;}
@@ -149,6 +165,9 @@ body > html {font-size: 12px;}
/* ############################################################## */
#column_nav {width: 214px; float: left; display: inline; padding: 0; margin: -35px 0 0 -910px; border-right: 3px solid #fff;}
+.ie6 #column_nav {
+ margin: -590px 0 0 0px;
+}
body.mappage #column_nav { display: none; }
diff --git a/web/cobrands/barnet/position_map.js b/web/cobrands/barnet/position_map.js
index 95e6717ee..3a8d8c078 100644
--- a/web/cobrands/barnet/position_map.js
+++ b/web/cobrands/barnet/position_map.js
@@ -2,13 +2,13 @@ function position_map_box() {
var map_pos = 'absolute', map_height = '100%';
if ($('html').hasClass('ie6')) {
map_pos = 'absolute';
- map_height = $(window).height();
+ map_height = $('.wrapper').height();
}
$('#map_box').prependTo('.wrapper').css({
zIndex: 0, position: map_pos,
top: $('.wrapper').top, left: $('.wrapper').left,
right: $('.wrapper').right, bottom: $('.wrapper').bottom,
- width: '100%', height: map_height,
+ width: '900px', height: map_height,
margin: 0
});
}