diff options
Diffstat (limited to 'web/cobrands/sass/_base.scss')
-rw-r--r-- | web/cobrands/sass/_base.scss | 647 |
1 files changed, 385 insertions, 262 deletions
diff --git a/web/cobrands/sass/_base.scss b/web/cobrands/sass/_base.scss index 8f6efe51e..0788a99ed 100644 --- a/web/cobrands/sass/_base.scss +++ b/web/cobrands/sass/_base.scss @@ -4,6 +4,10 @@ $body-font: MuseoSans, Helmet, Freesans, sans-serif !default; $meta-font: Helmet, Freesans, sans-serif !default; $heading-font: 'Museo300-display', MuseoSans, Helmet, Freesans, sans-serif !default; $image-sprite: '/cobrands/fixmystreet/images/sprite.png' !default; +$menu-image: 'menu-white' !default; + +@import "_mixins"; +@import "_report_list"; body { font-family: $body-font; @@ -18,7 +22,7 @@ body { p { font-size: 1em; font-weight: normal; - margin:0 0 1em 0; + margin: 0 0 1em; } small{ @@ -71,7 +75,7 @@ h4 { ul, ol { font-size: 1em; margin-bottom: 2em; - margin-left: 2em; + margin-#{$left}: 2em; padding:0; } @@ -96,13 +100,13 @@ ol.big-numbers { > li { position: relative; list-style: none; - padding:0 0 0 2.5em; + padding: flip(0 0 0 2.5em, 0 2.5em 0 0); margin-bottom:2em; &:before { content: counter(li); // set the content to be whatever the 'li' var is counter-increment: li; // add to the counter var position: absolute; - left: 0; + #{$left}: 0; top:-0.2em; color:#ccc; line-height:1; @@ -126,7 +130,7 @@ dl { dd { font-weight: 1em; line-height: 1.5em; - margin:0 0 1em 0; + margin: 0 0 1em; } } @@ -295,14 +299,14 @@ label{ font-weight: bold; &.inline{ display: inline; - padding: 0 2em 0 1em; + padding: flip(0 2em 0 1em, 0 1em 0 2em); font-weight: normal; } } // grey background, full width box .form-box { - margin: 0 -1em 0.25em -1em; + margin: 0 -1em 0.25em; background: #eee; padding: 1em; > input[type=text], input[type=email] { @@ -320,7 +324,7 @@ label{ } strong { font-size:2em; - margin-right:0.25em; + margin-#{$right}: 0.25em; } } } @@ -328,21 +332,22 @@ label{ // the password box falls off screen for some reason. Just have boring margins, // it looks okay. .ie6 .form-box { - margin: 0 0 0.25em 0; + margin: 0 0 0.25em; padding: 1em; } // Prevent grey displaying oddly by giving it a width, and stop odd left margin issue .ie7 .form-box { width: 100%; > input[type=text], input[type=email] { - margin-left: 2em; + margin-#{$left}: 2em; } } .change_location { color: #666; - padding-left: 24px; - background: transparent url(/cobrands/fixmystreet/images/wrong-location.png) 4px 50% no-repeat; + padding-#{$left}: 20px; + background: transparent url(/cobrands/fixmystreet/images/wrong-location.png) $left 50% no-repeat; + border-#{$left}: solid 4px #fff; margin-top: -0.5em; } @@ -352,12 +357,12 @@ label{ input[type=text], input[type=email] { width: 65%; - float:left; + float: $left; } input[type=submit] { - float:right; + float: $right; width:28%; - margin-right:0.25em; + margin-#{$right}: 0.25em; padding-top:0.7em; padding-bottom:0.6em; } @@ -442,7 +447,7 @@ p.label-valid { width: 175px; height: 40px; top: 0.4em; - left: 0.5em; + #{$left}: 0.5em; background: url($image-sprite) -3px -3px no-repeat; text-indent: -999999px; position: absolute; @@ -456,13 +461,13 @@ p.label-valid { #nav-link { width: 3em; height: 3em; // same height as #site-header - background: transparent url(/cobrands/fixmystreet/images/menu-white.png) center center no-repeat; - background-image: url(/cobrands/fixmystreet/images/menu-white.svg), none; + background: transparent url(/cobrands/fixmystreet/images/#{$menu-image}.png) center center no-repeat; + background-image: inline-image("../fixmystreet/images/#{$menu-image}.svg"), none; background-size: 22px 18px; display: block; text-indent: -999999px; position: absolute; - right: 0; + #{$right}: 0; top: 0.25em; // same as border-top on #site-header } @@ -471,7 +476,7 @@ p.label-valid { display: block; position: absolute; top: (3em / 2); // half the height of #site-header - right: 3.5em; + #{$right}: 3.5em; margin-top: -0.5em; font-size: 0.9em; @@ -488,47 +493,42 @@ p.label-valid { } -#main-nav{ - ul{ - @include list-reset-soft; - li{ - a, span { - display: block; - padding: 0.5em 1em; - background:#f6f6f6; - color:#333; - font-size: 1.25em; - border-bottom: 0.25em solid #333; - } - a:hover, span.hover { - background: #333; - color:#fff; - text-decoration: none; - } - span { - background-color: #ccc; - } - } - &#mysoc-menu{ - li { - a { - color: $primary_text; - background: $primary; - &#mysoc-logo { - background-position: 20px 13px; - background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAYCAYAAAArrNkGAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABBtJREFUaN7tmT2u1DAQx/cIPgBCQUJCICH5BuQIPkIq6hzBB0AyiAP4ABQ5ghtEm54mEtVrICUNkpmsJjBvdvyR1S7hPa2lv1aJs5PEP894xjkc/tMWY+xADhRQA8iC9I7PtD6PP9xa9aC1oCnmm9lpgtHW3WiVB03HuqYeA9DlPZbJuXj8o5wgGM5os+ixLb74MeTt+Hz+kiGXva99jEDjJV7w+5Pn3aIHNoEvB/Tu7s6iejzuQAEUQRPIgxT2KTwesX+5rkvYs7yP2KDXLN7XXCKkAUgHiii3MaQuideI9x/x2GB/gxFjVZMIoY6AmtBGJ+QJluUKgdheI1LpfveuoQMciTw7XrUAbEFzot8Re4GcnwWghv23Ezx0PiejBYiBAA0/Pz7VoOV3AKnEup1LwhyBQFsr2Jkzdjy51hZyBIuwaOuFZ6fPPaaA5jQX+hvi4fS8YUC9BBzXqJOB4INXAGpAM8oAxBEUUbYSQiCD1ZWACnZGhDJIUacGaBbY34ghAxfAdHheCxBHAs6yvp7YpP/zDOgk9WHIGhMvOZ5TrjCgfUUSptigqQqg1M7A7kHhTVvWUAF8Q/r6ZObPQy4bfMf62wycoeSFOEmoPS2sQ74mdFUC1RhuHQ25QonkKurjE6CCpzTC+9CmNwBNeiHz/oGvabnweG+9E9ZDul6GDDiD53tybsoMYIMJhhQSjy/28YVzoAgKoGRt+uvHMwUaQRHkS7N/I1AjhGuuGs+2ifsOPOwKk6TLAeUe2J4DFPtG7vnsnK3MQPngTwg0ErUZoC3CPEqyWbmDJQG1cVvbCpRPmIadm6Wy5VpAeXKkpCRqQ1F/DwBAnAlQnQHaEKDzlYGGgvQWoEJy1LOx8P8SqOLJEU2uNhbhvQC0AVn76n3/9vWHpIe++/Km/fxVL17aL3ATSYU5E2h77rbkBqA2kYFHsbS7FlAhOTrJpIXwkirYRynMAEgDiignwHSgiGozCceUg5EBqs5N2hhQX8gnpDaldoquCVQn6lmV2foLbJdkSmWkANESoNPLT98UyKMUgbnIFsqWGRMxQ0JbW1G2eCHsdmQferWlMwlPxHuLnwiFa9NefU2gQiJ0UholBixm6lGV8lAEGVFDykMr6l5e5OeA1tg5ASB8wcmVMEa4rtkLqM3VnqQuDJnBmHnhT6A2oKPNBSIFuq6hoCbzCatY91Zs/ZXspED5Ws+rDu0IbZUSEps//YmQuvbrCg8NFd8I1zBl8bd66w8galBA6Q3rmWKb3YZlpIqE0Da13pLrVjtd6flxMtP7qorvse1hjyYkRfs8yMP/8E83WMIeII2wdrobnk0gG6HOnUu7WteAqRKf39QN0yagTlhf9/lwz9fNG8yzgBrmmWa3h8Ftv0HaQLi1TYlaSGX3UvsNzdBKw+waoEEAAAAASUVORK5CYII='); - background-repeat:no-repeat; - text-indent:-999999px; - } - } - } - } +.nav-menu { + @include list-reset-soft; + a, span { + display: block; + padding: 0.5em 1em; + background: #f6f6f6; + color: #333; + font-size: 1.25em; + border-bottom: 0.25em solid #333; + } + a:hover, span.hover { + background: #333; + color: #fff; + text-decoration: none; + } + span { + background: #ccc; + } +} +.nav-menu--mysoc { + a { + color: $primary_text; + background: $primary; } } -.ie6 #main-nav ul#mysoc-menu li a#mysoc-logo { +#mysoc-logo { + background-origin: content-box; + background-position: $left 3px; + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAYCAYAAAArrNkGAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABBtJREFUaN7tmT2u1DAQx/cIPgBCQUJCICH5BuQIPkIq6hzBB0AyiAP4ABQ5ghtEm54mEtVrICUNkpmsJjBvdvyR1S7hPa2lv1aJs5PEP894xjkc/tMWY+xADhRQA8iC9I7PtD6PP9xa9aC1oCnmm9lpgtHW3WiVB03HuqYeA9DlPZbJuXj8o5wgGM5os+ixLb74MeTt+Hz+kiGXva99jEDjJV7w+5Pn3aIHNoEvB/Tu7s6iejzuQAEUQRPIgxT2KTwesX+5rkvYs7yP2KDXLN7XXCKkAUgHiii3MaQuideI9x/x2GB/gxFjVZMIoY6AmtBGJ+QJluUKgdheI1LpfveuoQMciTw7XrUAbEFzot8Re4GcnwWghv23Ezx0PiejBYiBAA0/Pz7VoOV3AKnEup1LwhyBQFsr2Jkzdjy51hZyBIuwaOuFZ6fPPaaA5jQX+hvi4fS8YUC9BBzXqJOB4INXAGpAM8oAxBEUUbYSQiCD1ZWACnZGhDJIUacGaBbY34ghAxfAdHheCxBHAs6yvp7YpP/zDOgk9WHIGhMvOZ5TrjCgfUUSptigqQqg1M7A7kHhTVvWUAF8Q/r6ZObPQy4bfMf62wycoeSFOEmoPS2sQ74mdFUC1RhuHQ25QonkKurjE6CCpzTC+9CmNwBNeiHz/oGvabnweG+9E9ZDul6GDDiD53tybsoMYIMJhhQSjy/28YVzoAgKoGRt+uvHMwUaQRHkS7N/I1AjhGuuGs+2ifsOPOwKk6TLAeUe2J4DFPtG7vnsnK3MQPngTwg0ErUZoC3CPEqyWbmDJQG1cVvbCpRPmIadm6Wy5VpAeXKkpCRqQ1F/DwBAnAlQnQHaEKDzlYGGgvQWoEJy1LOx8P8SqOLJEU2uNhbhvQC0AVn76n3/9vWHpIe++/Km/fxVL17aL3ATSYU5E2h77rbkBqA2kYFHsbS7FlAhOTrJpIXwkirYRynMAEgDiignwHSgiGozCceUg5EBqs5N2hhQX8gnpDaldoquCVQn6lmV2foLbJdkSmWkANESoNPLT98UyKMUgbnIFsqWGRMxQ0JbW1G2eCHsdmQferWlMwlPxHuLnwiFa9NefU2gQiJ0UholBixm6lGV8lAEGVFDykMr6l5e5OeA1tg5ASB8wcmVMEa4rtkLqM3VnqQuDJnBmHnhT6A2oKPNBSIFuq6hoCbzCatY91Zs/ZXspED5Ws+rDu0IbZUSEps//YmQuvbrCg8NFd8I1zBl8bd66w8galBA6Q3rmWKb3YZlpIqE0Da13pLrVjtd6flxMtP7qorvse1hjyYkRfs8yMP/8E83WMIeII2wdrobnk0gG6HOnUu7WteAqRKf39QN0yagTlhf9/lwz9fNG8yzgBrmmWa3h8Ftv0HaQLi1TYlaSGX3UvsNzdBKw+waoEEAAAAASUVORK5CYII='); + background-repeat: no-repeat; + text-indent: -999999px; +} +.ie6 #mysoc-logo { background: url('/cobrands/fixmystreet/images/ie_mysoc_logo.gif') center no-repeat; } -.ie7 #main-nav ul#mysoc-menu li a#mysoc-logo { +.ie7 #mysoc-logo { background: url($image-sprite) -240px -38px no-repeat; } @@ -544,10 +544,10 @@ p.label-valid { position: relative; color: $primary_text; background: $primary; - padding:1em 6em 1em 1em; + padding: flip(1em 6em 1em 1em, 1em 1em 1em 6em); a { position: absolute; - right:1em; + #{$right}: 1em; @include inline-block; text-transform:uppercase; font-size:0.75em; @@ -572,9 +572,9 @@ p.label-valid { display: table-cell; vertical-align: bottom; text-align: center; - border-right:0.25em solid #fff; + border-#{$right}: 0.25em solid #fff; &:last-child { - border-right:none; + border-#{$right}: none; } input[type=submit] { width: 100%; @@ -585,7 +585,7 @@ p.label-valid { background-color: #f5f5f5; background-repeat: no-repeat; color:#333; - padding:4em 2em 1em 2em; + padding:4em 2em 1em; text-transform:uppercase; font: { size:0.6875em; @@ -609,8 +609,9 @@ p.label-valid { background-position: center 25%; } &.chevron { - background-image:url($image-sprite); - background-position:center -2716px; + background-image: inline-image("../fixmystreet/images/chevron-grey-#{$right}.svg"); + background-position: center 25%; + background-size: 20px 25px; } &.hover { background-image:url($image-sprite); @@ -627,10 +628,10 @@ p.label-valid { ul#key-tools{ background:#f5f5f5; li{ - float:left; + float: $left; a { - padding-left:1.5em; - padding-right:3em; + padding-#{$left}: 1.5em; + padding-#{$right}: 3em; } } } @@ -639,23 +640,25 @@ p.label-valid { .ie6 .shadow-wrap ul#key-tools li a { &.abuse { background-image:url('/cobrands/fixmystreet/images/ie_key_tools_sprite.gif'); - background-position: right 0px; + background-position: $right 0px; } &.feed { background-image:url('/cobrands/fixmystreet/images/ie_key_tools_sprite.gif'); - background-position: right -58px; - } - &.chevron { - background-image:url('/cobrands/fixmystreet/images/ie_key_tools_sprite.gif'); - background-position: right -116px; + background-position: $right -58px; } &:hover { background-image:url('/cobrands/fixmystreet/images/ie_key_tools_sprite_dark.gif'); } } +.iel8 { + .shadow-wrap ul#key-tools li a.chevron { + background-image:url('/cobrands/fixmystreet/images/ie_key_tools_sprite.gif'); + background-position: $right -116px; + } +} #report-updates-data img { - float: right; + float: $right; } #report-share iframe { @@ -669,7 +672,7 @@ footer { #footer-mobileapps { @extend .full-width; - padding:1em 1em 0 1em; + padding: 1em 1em 0; h4 { margin:0; } @@ -689,7 +692,7 @@ footer { border-bottom:none; } h4 { - margin:0.75em 0 0.25em 0; + margin:0.75em 0 0.25em; } p { font-size:0.75em; @@ -722,14 +725,20 @@ input.red-btn{ .final-submit, input.final-submit { - margin:1em 0.5em; - float:right; + margin: 1em 0.5em; + float: $right; } -.button-right, -.button-left, -a.button-right, -a.button-left { +.button-fwd { + padding: flip(1em 3em 1em 1em, 1em 1em 1em 3em); + background: inline-image("../fixmystreet/images/chevron-grey-#{$right}.svg") $right 50% no-repeat; +} +.button-back { + padding: flip(1em 1em 1em 3em, 1em 3em 1em 1em); + background: inline-image("../fixmystreet/images/chevron-grey-#{$left}.svg") $left 50% no-repeat; +} +.button-fwd, +.button-back { @include inline-block; cursor:pointer; font-size: 1em; @@ -737,33 +746,27 @@ a.button-left { margin:0; border:1px solid #999; color:#333; - background: #eee; + background-color: #eee; + background-size: 20px+16px 25px; @include border-radius(4px); &:hover{ color:#fff; - background:#777; + background-color: #777; text-decoration: none; border:1px solid #666; } } -.button-right, -a.button-right, -:hover.button-right, -a:hover.button-right { - padding:1em 3em 1em 1em; - background-image: url($image-sprite); - background-repeat:no-repeat; - background-position:right -686px; -} - -.button-left, -a.button-left, -:hover.button-left, -a:hover.button-left { - padding:1em 1em 1em 3em; - background-image: url($image-sprite); - background-repeat:no-repeat; - background-position:-18px -802px; +.iel8 { + .button-fwd, .button-back { + background-image: url($image-sprite); + background-repeat: no-repeat; + } + .button-fwd { + background-position: right -686px; + } + .button-back { + background-position: -18px -802px; + } } .big-green-banner { @@ -779,12 +782,12 @@ a:hover.button-left { font-size:0.875em; &:before { content: ""; - left:-0.5em; + #{$left}: -0.5em; top:0; position: absolute; width: 0; height: 0; - border-left: 0.5em solid transparent; + border-#{$left}: 0.5em solid transparent; border-bottom: 0.5em solid $col_click_map_dark; } } @@ -794,7 +797,7 @@ a:hover.button-left { p { position: absolute; top:-1.95em; - right:0; + #{$right}: 0; @include inline-block; font-size:0.6875em;//11px line-height:1em; @@ -808,12 +811,12 @@ a:hover.button-left { } &:before { content: ""; - left:-0.5em; + #{$left}: -0.5em; top:0; position: absolute; width: 0; height: 0; - border-left: 0.5em solid transparent; + border-#{$left}: 0.5em solid transparent; border-bottom: 0.5em solid #888; } &#fixed { @@ -835,126 +838,98 @@ a:hover.button-left { } } -.issue-list{ - margin: 0 0 1em 0; +.item-list { + margin: 0 0 1em; padding: 0; border-bottom: 0.25em solid $primary; - li{ - list-style: none; - background: #f6f6f6; - margin: 0.25em 0 0 0; - padding: 0.5em 1em; - display:block; - .update-wrap { - @include clearfix; - } - .update-text p { - margin-bottom: 0.5em; - } - .update-img { - float: right; - margin: 0.5em 0 0.5em 1em; // gutter between text and floated image - } + .update-img { + float: $right; + margin: flip(0.5em 0 0.5em 1em, 0.5em 1em 0.5em 0); // gutter between text and floated image } } -.issue-list-a { - margin: 0 0 1em 0; +.item-list__item { + list-style: none; + background-color: #f6f6f6; + margin: 0.25em 0 0; + padding: 0.5em 1em; + display: block; +} + +.item-list__update-wrap { + @include clearfix; +} + +.item-list__update-text p { + margin-bottom: 0.5em; +} + +.item-list__item--link { padding: 0; - border-bottom: 0.25em solid $primary; - li { - list-style: none; - margin:0; - padding:0; - margin: 0.25em 0 0 0; - /* see note below about this */ - display:table; - background: #f6f6f6; - color:#222222; - width:100%; - &:hover { - text-decoration:none; - color:#222222; - background:#e6e6e6; - } - a { - color:#222222; - } - a:hover { - color:#222222; - background:#e6e6e6; - text-decoration: none; - } - .text { - /* this is and the display:table above are required otherwise - on iphone the rows end up being slightly wider than the screen */ - display: table-cell; - width: 100%; - vertical-align:top; - padding: 0px 0px 0px 1em; - .img { - width: 90px; - float: right; - height:auto; - } - h4 { - padding-right: 1em; - padding-top: 0.25em; - margin:0; - } - small { - color:#666; - display: block; - padding-right: 1em; - padding-top: 0.25em; - padding-bottom: 0.25em; - } - } - >p { - margin: 0.25em 0 0 0; - padding: 0.5em 1em; - background: #f6f6f6; - } + a { + color: #222222; + display: block; + padding: 0.5em 1em; } + a:hover, a:focus { + background-color: #e6e6e6; + text-decoration: none; + } +} + +.item-list--wards__item { + @extend .item-list__item--link; } -.list-a { - @extend .issue-list-a; + +.item-list--reports__item { + @extend .item-list__item--link; a { - padding:0.5em 1em; - font-weight:bold; + @include clearfix; + padding: flip(0 0 0 1em, 0 1em 0 0); } -} -//display:table fixes -.ie6, .ie7 { - .issue-list-a { - overflow:hidden; - li { - clear:both; - width:100%; - display:block; - overflow:hidden; - .text { - float:left; - } - } + .img { + width: 90px; + float: $right; + height: auto; + margin-#{$left}: 1em; + } + h4 { + padding-top: 0.25em; + margin: 0; + } + small { + color: #666; + display: block; + padding: 0.25em 0; } } -.ie6 .issue-list-a li a { - height:5.5em; + +.item-list__item--empty p { + margin: 0; +} + +.item-list--front-page { + border-bottom: none; +} + +.ie6 .item-list--reports__item { + a { + height: 5.5em; + } .img { - height:60px; + height: 60px; } } // fancybox gallery images have a magnifying glass in the corner .update-img { a { - @include inline-block; - position:relative; + display: block; + position: relative; span { position:absolute; top:0; - right:0; + #{$right}: 0; display:block; width:20px; height:20px; @@ -974,8 +949,8 @@ a:hover.button-left { margin-bottom:1em; } .problem-header .update-img { - float: right; - margin-left: 0.5em; + float: $right; + margin-#{$left}: 0.5em; margin-bottom: 0.5em; } @@ -1007,16 +982,23 @@ a:hover.button-left { } } +// The map's static image fallback is visible by default. +// Hide it if javascript has loaded. (We show it again when +// the page is printed.) +html.js #map .noscript { + display: none; +} + // OpenLayers fix for navigation being top right // Left and right so that zoom can be left, pan right. #fms_pan_zoom { - right: 0.5em !important; top: 0.5em; - left: 0.5em !important; + #{$left}: 0.5em !important; + #{$right}: 0.5em !important; } // The left and right of the above causes the navigation to move off-screen left in IE6. .ie6 #fms_pan_zoom { - left: auto !important; + #{$left}: auto !important; } // Openlayers map controls (overrides) @@ -1028,7 +1010,7 @@ a:hover.button-left { #fms_pan_zoom_zoomout { width:36px !important; height:36px !important; - text-indent:-999999px; + text-indent: flip(-999999px, 999999px); // text-align from OL style makes this necessary background:url($image-sprite) no-repeat; filter: none !important; // Override OpenLayers PNG handling of the navigation } @@ -1040,48 +1022,48 @@ a:hover.button-left { #fms_pan_zoom_panup { background-position:-42px -222px; - right:30px !important; - left: auto !important; + #{$right}: 30px !important; + #{$left}: auto !important; top:0 !important; } #fms_pan_zoom_pandown { background-position:-42px -282px; - right:30px !important; - left: auto !important; + #{$right}: 30px !important; + #{$left}: auto !important; top:72px !important; } #fms_pan_zoom_panleft { background-position:-12px -252px; width:48px !important; - right:48px !important; - left: auto !important; + #{$right}: flip(48px, 0) !important; + #{$left}: auto !important; top:36px !important; } #fms_pan_zoom_panright { background-position:-60px -252px; width:48px !important; - right:0 !important; - left: auto !important; + #{$right}: flip(0, 48px) !important; + #{$left}: auto !important; top:36px !important; } #fms_pan_zoom_zoomin { background-position:-152px -223px; height:44px !important; - left:0 !important; + #{$left}: 0 !important; top:0 !important; } #fms_pan_zoom_zoomout { background-position:-152px -259px; height:44px !important; - left:0 !important; + #{$left}: 0 !important; top:44px !important; } //hide pins, show old reports etc #sub_map_links { position: absolute; - left: 0; - right:0; + #{$left}: 0; + #{$right}: 0; bottom: 0; background:#333; background:rgba(0, 0, 0, 0.7); @@ -1090,23 +1072,23 @@ a:hover.button-left { @include inline-block; font-size:0.6875em; color:#fff; - padding:0.6em 3em 0.5em 1em; + padding: flip(0.6em 3em 0.5em 1em, 0.6em 1em 0.5em 3em); background-repeat:no-repeat; &#hide_pins_link { background-image:url($image-sprite); - background-position: right -3976px; + background-position: flip(right, -341px) -3976px; } &#all_pins_link { background-image:url($image-sprite); - background-position: right -4022px; + background-position: flip(right, -337px) -4022px; } &#map_permalink { background-image:url($image-sprite); - background-position: right -4070px; + background-position: flip(right, -341px) -4070px; } &.feed { background-image:url($image-sprite); - background-position: right -3936px; + background-position: flip(right, -341px) -3936px; } &:hover { background-color:#000; @@ -1118,15 +1100,15 @@ a:hover.button-left { .ie6 #sub_map_links a { &#hide_pins_link { background-image:url('/cobrands/fixmystreet/images/ie_sub_map_links_sprite.gif'); - background-position: right 1px; + background-position: $right 1px; } &#all_pins_link { background-image:url('/cobrands/fixmystreet/images/ie_sub_map_links_sprite.gif'); - background-position: right -45px; + background-position: $right -45px; } &#map_permalink { background-image:url('/cobrands/fixmystreet/images/ie_sub_map_links_sprite.gif'); - background-position: right -93px; + background-position: $right -93px; } } @@ -1157,7 +1139,7 @@ a:hover.button-left { a#try_again { position: absolute; display: block; - left: 25%; + left: 25%; // along with width of 50%, centres it bottom: 0; margin-bottom: 6em; background: rgba(0, 0, 0, 0.8); @@ -1166,7 +1148,7 @@ a:hover.button-left { a#mob_ok { position: absolute; display: block; - right: 1em; + #{$right}: 1em; bottom: 0; height: 20px; padding-top: 30px; @@ -1181,8 +1163,8 @@ a:hover.button-left { margin:0; position: absolute; top:0; - left:0; - right:0; + #{$left}: 0; + #{$right}: 0; font-size:0.75em; background:rgba(0, 0, 0, 0.7); padding:0.75em 30px; @@ -1195,15 +1177,15 @@ a:hover.button-left { line-height:1; padding:0.5em 0.75em; position:absolute; - left:0.3em; + #{$left}: 0.3em; top:0.3em; } } .olControlAttribution { bottom: 3.25em !important; - right: 0.25em !important; - left: 0.25em !important; + #{$right}: 0.25em !important; + #{$left}: 0.25em !important; color: #222222; font-size:0.75em !important; } @@ -1212,7 +1194,7 @@ a:hover.button-left { } .olControlPermalink { bottom: 3px !important; - right: 3px; + #{$right}: 3px; } /* Drag is only present in noscript form. XXX Copy from core. */ @@ -1244,8 +1226,8 @@ a.rap-notes-trigger, a:hover.rap-notes-trigger { display:block; width:90%; - padding-left:5%; - padding-right:5%; + padding-#{$left}: 5%; + padding-#{$right}: 5%; } .rap-notes { margin:1em 0; @@ -1262,9 +1244,9 @@ a:hover.rap-notes-trigger { width:100%; li { display:table-cell; - border-right:0.25em solid #fff; + border-#{$right}: 0.25em solid #fff; &:last-child { - border-right:none; + border-#{$right}: none; } a { display:block; @@ -1295,7 +1277,7 @@ a:hover.rap-notes-trigger { margin:0; padding:0; ul li { - float:left; + float: $left; } } } @@ -1318,16 +1300,17 @@ label .muted { ul { width: 49%; margin: 0; - float: left; + float: $left; font-size: 14px; line-height: 20px; } li { margin-bottom: 0; - padding-left: 20px; + padding-#{$left}: 16px; list-style: none; - background: transparent url(/cobrands/fixmystreet/images/tick-10px-8px.png) 4px 5px no-repeat; + background: transparent url(/cobrands/fixmystreet/images/tick-10px-8px.png) $left 5px no-repeat; + border-#{$left}: solid 4px #fff; } .do { @@ -1335,12 +1318,14 @@ label .muted { } .dont { - float: right; + float: $right; color: #881111; li { background-image: url(/cobrands/fixmystreet/images/cross-7px-7px.png); - background-position: 6px 6px; + background-position: $left 6px; + padding-#{$left}: 14px; + border-#{$left}: solid 6px #fff; } } } @@ -1381,7 +1366,7 @@ table.nicetable { } } .title { - text-align:left; + text-align: $left; } .data { width:12%; @@ -1399,7 +1384,7 @@ table.nicetable { .close-promo { position:absolute; top:0.5em; - right:0.5em; + #{$right}: 0.5em; display:block; width:16px; height:16px; @@ -1430,18 +1415,18 @@ table.nicetable { position:relative; .prev { position:absolute; - left:0.5em; + #{$left}: 0.5em; } .next { position:absolute; - right:0.5em; + #{$right}: 0.5em; } a { @include inline-block; color: $primary_text; background: $primary; - padding-left:0.5em; - padding-right:0.5em; + padding-#{$left}: 0.5em; + padding-#{$right}: 0.5em; &:hover { text-decoration:none; background:$primary/1.1; @@ -1565,12 +1550,6 @@ table.nicetable { } } -#front-recently { - .issue-list-a { - border-bottom:none; - } -} - #alerts { ul { margin-bottom: 1em; @@ -1583,7 +1562,7 @@ table.nicetable { background: #f6f6f6; } img[width="16"] { - float: right; + float: $right; } } @@ -1592,10 +1571,15 @@ table.nicetable { text-align: center; background: transparent url(/cobrands/fixmystreet/images/tick-in-circle-100px.png) center 1em no-repeat; + &.confirmation-header--failure { background-image: url(/cobrands/fixmystreet/images/sad-face-in-circle-100px.png); } + &.confirmation-header--inbox { + background-image: url(/cobrands/fixmystreet/images/inbox-in-circle-100px.png); + } + h1, h2 { margin: 0; line-height: 1.2em; @@ -1630,5 +1614,144 @@ table.nicetable { } } +/* Questionnaire page */ + +.questionnaire-report-header { + font-family: inherit; + font-size: 1.2em; + font-weight: 600; +} + +.questionnaire-report-reminder { + @include clearfix(); // clear the floated image, in case there is no update-header to do it + background: #f3f3f3; + border-radius: 3px; + padding: 1em 1em 1px 1em; // basically no padding-bottom, as children have their own margin-bottom instead + margin-bottom: 2em; + + .update-img { + width: 120px; + float: left; + margin: 0.1em 1em 1em 0; + } +} + +.questionnaire-report-reminder__report-title { + margin: 0 0 0.3em 0; +} + +.questionnaire-report-reminder__report-meta { + color: #666; + line-height: 1.4em; +} + +.questionnaire-report-reminder__last-update-header { + border-top: 1px solid #ddd; + margin: 0; + padding: 0.8em 0 0.5em 0; + clear: left; // clear the floated image above + + a { + float: right; + } +} + +.questionnaire-errors { + margin-left: 0; +} + +.radio-segmented-control { + overflow: auto; // clear floats (if browser doesn't support flexbox) + display: flex; // fancy full-width buttons for browsers that support flexbox + + input { + display: none; + } + + label { + display: block; + margin: 0; + padding: 0.75em 1.5em; + text-align: center; + background: #fff linear-gradient(to bottom, #fff 0%, #eee 100%) 0 0 no-repeat; + border: 1px solid #ddd; + border-right-width: 0; // avoid double border between items + font-weight: bold; + float: left; // float fallback for browsers that don't support flexbox + flex: 1 0 auto; + + &:hover, &:focus { + background: #f3f3f3 linear-gradient(to bottom, #f9f9f9 0%, #e9e9e9 100%) 0 0 no-repeat; + } + } + + input:checked + label { + color: $primary_text; + background: $primary; + border-color: darken($primary, 5%); + background-image: none; // remove gradient + box-shadow: inset 0 0.1em 0.2em rgba(0,0,0,0.2); + border-right-width: 1px; // add a realistic coloured border to all sides + } + + input:checked + label + input + label { + border-left-width: none; // in favour of the realistic coloured border on the selected item + } + + input:first-child + label { + border-radius: 0.25em 0 0 0.25em; + } + + label:last-child { + border-radius: 0 0.25em 0.25em 0; + border-right-width: 1px; // reinstate border on last item + } +} + + +@media screen { + .print-only { + display: none !important; + } +} + +@media print { + @page { + margin: 3em; + } + + #main-nav, + #nav-link, + .admin-nav, + .olControlAttribution, + .olControlPanZoom, + #sub_map_links, + #fms_pan_zoom, + .screen-only, + .olMapViewport { + display: none !important; + } + + #map_box { + position: static !important; + height: 256px !important; + width: auto !important; + background: #f1eee9 !important; // cream colour to match OSM image + } + + #map { + -webkit-transform: scale(0.5); + -ms-transform: scale(0.5); + transform: scale(0.5); + -webkit-transform-origin: 0 0; + -ms-transform-origin: 0 0; + transform-origin: 0 0; + } + + html.js #map .noscript { + display: block; + } +} + @import "_admin"; @import "_fixedthead"; |