diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/cobrands/fixmystreet/images/crosshairs.png | bin | 0 -> 248 bytes | |||
-rw-r--r-- | web/cobrands/fixmystreet/images/crosshairs.svg | 1 | ||||
-rw-r--r-- | web/cobrands/fixmystreet/images/crosshairs@2x.png | bin | 0 -> 427 bytes | |||
-rw-r--r-- | web/cobrands/fixmystreet/images/navigate.png | bin | 0 -> 261 bytes | |||
-rw-r--r-- | web/cobrands/fixmystreet/images/navigate.svg | 1 | ||||
-rw-r--r-- | web/cobrands/fixmystreet/images/navigate@2x.png | bin | 0 -> 489 bytes | |||
-rw-r--r-- | web/cobrands/sass/_base.scss | 88 |
7 files changed, 66 insertions, 24 deletions
diff --git a/web/cobrands/fixmystreet/images/crosshairs.png b/web/cobrands/fixmystreet/images/crosshairs.png Binary files differnew file mode 100644 index 000000000..e3f216814 --- /dev/null +++ b/web/cobrands/fixmystreet/images/crosshairs.png diff --git a/web/cobrands/fixmystreet/images/crosshairs.svg b/web/cobrands/fixmystreet/images/crosshairs.svg new file mode 100644 index 000000000..80b5172c6 --- /dev/null +++ b/web/cobrands/fixmystreet/images/crosshairs.svg @@ -0,0 +1 @@ +<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><title>icon-crosshairs</title><path d="M13.013 8.48c-.242 2.344-2.117 4.204-4.475 4.445V9.977H7.534v2.953c-2.375-.225-4.268-2.095-4.512-4.45h3.005v-.997H3.02C3.246 5.113 5.146 3.227 7.533 3v2.986h1.004V3.003c2.37.243 4.25 2.12 4.478 4.48h-2.97v.998h2.967zm1.008-.997c-.232-2.91-2.558-5.232-5.482-5.48V0H7.534v2.002c-2.942.233-5.285 2.56-5.52 5.48H0v1h2.017c.25 2.904 2.587 5.214 5.517 5.446V16h1.004v-2.074c2.912-.247 5.232-2.55 5.48-5.445H16v-.997h-1.98z" fill="#000" fill-rule="evenodd"/></svg>
\ No newline at end of file diff --git a/web/cobrands/fixmystreet/images/crosshairs@2x.png b/web/cobrands/fixmystreet/images/crosshairs@2x.png Binary files differnew file mode 100644 index 000000000..c7caa518a --- /dev/null +++ b/web/cobrands/fixmystreet/images/crosshairs@2x.png diff --git a/web/cobrands/fixmystreet/images/navigate.png b/web/cobrands/fixmystreet/images/navigate.png Binary files differnew file mode 100644 index 000000000..c37331e0d --- /dev/null +++ b/web/cobrands/fixmystreet/images/navigate.png diff --git a/web/cobrands/fixmystreet/images/navigate.svg b/web/cobrands/fixmystreet/images/navigate.svg new file mode 100644 index 000000000..a00b08825 --- /dev/null +++ b/web/cobrands/fixmystreet/images/navigate.svg @@ -0,0 +1 @@ +<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><title>icon-navigate</title><path d="M15.348.002c-.072.007-.142.026-.206.057L.342 7.057c-.216.103-.35.324-.342.562.008.24.158.45.38.538l5.356 2.106 2.106 5.356c.088.222.3.372.538.38.238.008.46-.126.562-.342l7-14.8c.092-.194.074-.423-.05-.6-.122-.177-.33-.274-.544-.256zm-2.82 2.62L6.055 9.095 2.11 7.546 12.53 2.62zm.857.836l-4.937 10.43-1.55-3.942 6.487-6.488z" fill="#000" fill-rule="evenodd"/></svg>
\ No newline at end of file diff --git a/web/cobrands/fixmystreet/images/navigate@2x.png b/web/cobrands/fixmystreet/images/navigate@2x.png Binary files differnew file mode 100644 index 000000000..1ea3659eb --- /dev/null +++ b/web/cobrands/fixmystreet/images/navigate@2x.png diff --git a/web/cobrands/sass/_base.scss b/web/cobrands/sass/_base.scss index 7462682ee..60f992410 100644 --- a/web/cobrands/sass/_base.scss +++ b/web/cobrands/sass/_base.scss @@ -398,30 +398,6 @@ select.form-control { margin:1em 0; } -.problem-inspector-fields { - select { - height: 2.4em; // match text inputs - -webkit-appearance: menulist-button; // so it's the right height in Safari - } - - p.left, - p.right { - width: 46%; - - label { - margin-top: 0; - } - } - - p.left { - float: #{$left}; - } - - p.right { - float: #{$right}; - } -} - // form errors div.form-error, @@ -750,6 +726,13 @@ input.final-submit { float: $right; } +// TODO: Sort out this a/a:visited/a.btn hideousness +.btn-block, +a.btn-block { + display: block; + text-align: center; +} + .btn--facebook { @include button-reset(#3b5998, darken(#3b5998, 10%), #3b5998, #fff, darken(#3b5998, 5%), darken(#3b5998, 10%), #3b5998, #fff); @@ -780,6 +763,42 @@ input.final-submit { } } +.btn--navigate, +.btn--geolocate { + &:before { + content: ""; + display: inline-block; + width: 16px; + height: 16px; + background: transparent url(/cobrands/fixmystreet/images/navigate.png) no-repeat 0 0; + background-size: 16px 16px; + margin-#{$right}: 0.5em; + vertical-align: -0.1em; // vertically centre icon in button + + @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { + background-image: url(/cobrands/fixmystreet/images/navigate@2.png); + } + + @media all { + background-image: url(/cobrands/fixmystreet/images/navigate.svg), none; + } + } +} + +.btn--geolocate { + &:before { + background-image: url(/cobrands/fixmystreet/images/crosshairs.png); + + @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { + background-image: url(/cobrands/fixmystreet/images/crosshairs@2.png); + } + + @media all { + background-image: url(/cobrands/fixmystreet/images/crosshairs.svg), none; + } + } +} + .btn--block { display: block; width: auto; @@ -1463,6 +1482,27 @@ label .muted { } } +.inspect-section { + border-top: 1px solid rgba(0, 0, 0, 0.2); + padding-top: 1.5em; + margin-top: 1.5em; + + &:first-child { + border-top: none; + margin-top: 0; + padding-top: 0; + } + + & > :first-child, + & > :first-child > :first-child { + margin-top: 0; + } +} + +.inspect-section--hidden { + display: none; +} + table.nicetable { width:100%; |