diff options
author | Zarino Zappia <mail@zarino.co.uk> | 2017-09-01 12:35:26 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-09-06 15:02:48 +0100 |
commit | edf8456ea8a94687b766915237269b1048417cd3 (patch) | |
tree | bcbc5174e729fbc121f399c3f22caceb7e9ddd1b /web | |
parent | fd42c29f4aaa5110f39993511bc6cdeb3ca6dba7 (diff) |
Simpler alerts signup page.
Alert options on the /alert/list page are now in an order that is easier
to parse, with a slightly clearer message for users in two-tier
locations, and a more prominent email subscription CTA.
Diffstat (limited to 'web')
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 2 | ||||
-rw-r--r-- | web/cobrands/sass/_base.scss | 25 | ||||
-rw-r--r-- | web/cobrands/sass/_layout.scss | 9 |
3 files changed, 35 insertions, 1 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index 39117be4a..8673b6b76 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -767,7 +767,7 @@ $.extend(fixmystreet.set_up, { // (due to not wanting around form to submit, though good thing anyway) $('body').on('click', '#alert_rss_button', function(e) { e.preventDefault(); - var feed = $('input[name=feed][type=radio]:checked').nextAll('a').attr('href'); + var feed = $('input[name=feed][type=radio]:checked').parent().prevAll('a').attr('href'); window.location.href = feed; }); $('body').on('click', '#alert_email_button', function(e) { diff --git a/web/cobrands/sass/_base.scss b/web/cobrands/sass/_base.scss index 679e7da3b..d02efe489 100644 --- a/web/cobrands/sass/_base.scss +++ b/web/cobrands/sass/_base.scss @@ -2130,6 +2130,8 @@ table.nicetable { background: #f6f6f6; } img[width="16"] { + margin-top: 4px; + margin-left: 0.5em; float: $right; } } @@ -2154,6 +2156,29 @@ table.nicetable { } } +.alerts__cta-box { + @extend .form-box; + background-color: mix($primary, #fff, 10%); + margin-top: 2em; + margin-bottom: 2em; + + & > :first-child { + margin-top: 0; + } + + .form-txt-submit-box { + max-width: 32em; + } +} + +#rss_local_alt { + // Match .label-containing-checkbox + padding-left: 24px; + + // Close up space between this and #rss_local + margin-top: -1em; +} + .confirmation-header { padding: 140px 0 2em; text-align: center; diff --git a/web/cobrands/sass/_layout.scss b/web/cobrands/sass/_layout.scss index e251a6208..a0c27863e 100644 --- a/web/cobrands/sass/_layout.scss +++ b/web/cobrands/sass/_layout.scss @@ -960,6 +960,15 @@ textarea.form-error { } } +.alerts__columns { + @include clearfix; + @include flex-container(); + > div { + width: 50%; + margin: 0 2em; + } +} + .confirmation-header { width: 25em; margin: 0 auto 1em; |