From d7d113090c3fca6abe1816861cc26da705cf4727 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Fri, 2 Oct 2020 13:49:44 +0100 Subject: [PATCH] Restyle the broadcast message preview The preview of the broadcast message, with the 2px thick black lines no longer matched the style of the area labels, which have moved to just having a tinted background. This commit restyles the broadcast message preview (including the exclamation mark icon) to use shading only to differentiate the message from the rest of the page. This should make the page fit together more cohesively, and feel less busy. --- app/assets/images/exclamation.svg | 34 +++++++++---------- .../components/broadcast-message.scss | 17 ++++++---- 2 files changed, 27 insertions(+), 24 deletions(-) diff --git a/app/assets/images/exclamation.svg b/app/assets/images/exclamation.svg index 5998192ad..e530210e1 100644 --- a/app/assets/images/exclamation.svg +++ b/app/assets/images/exclamation.svg @@ -1,26 +1,26 @@ - - - - - + + - - + + + + + - - - - - - - - - + + + diff --git a/app/assets/stylesheets/components/broadcast-message.scss b/app/assets/stylesheets/components/broadcast-message.scss index 4ccf1a423..4251922b0 100644 --- a/app/assets/stylesheets/components/broadcast-message.scss +++ b/app/assets/stylesheets/components/broadcast-message.scss @@ -6,7 +6,7 @@ box-sizing: border-box; padding: govuk-spacing(9) govuk-spacing(3) govuk-spacing(3) govuk-spacing(3); background: $panel-colour; - border: 2px solid $black; + box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, 0.05); border-radius: 5px; white-space: normal; margin: govuk-spacing(2) 0 govuk-spacing(4) 0; @@ -16,18 +16,21 @@ &:before { content: "Emergency alert"; display: block; - border-bottom: 2px solid $black; position: absolute; - top: govuk-spacing(2); + top: 0; left: 0; - padding: 2px govuk-spacing(3) govuk-spacing(2) 45px; + padding: govuk-spacing(2) + 1px govuk-spacing(3) (govuk-spacing(2) - 1px) 46px; width: 100%; box-sizing: border-box; font-weight: bold; - background: file-url('exclamation.svg'); - background-size: 20px; + background: $grey-1 file-url('exclamation.svg'); + color: $white; + background-size: 22px; background-repeat: no-repeat; - background-position: govuk-spacing(3) 3px; + background-position: govuk-spacing(3) 11px; + border-top-right-radius: 5px; + border-top-left-radius: 5px; + box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, 0.1); } }