mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -04:00
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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user