mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 08:31:00 -04:00
To help people understand that broadcasting is not a precise technology, we have shown the estimate bleed area on the map. Because people aren’t familiar with the technology a visual only clue is not enough. So this commit adds a key to the map, which explains what the different outlines mean. It also removes the sticky footer from this page to: - make the key visible on the page - make people scroll and review the map before they get to the big green button - not reduce the size of the map any further
122 lines
2.2 KiB
SCSS
122 lines
2.2 KiB
SCSS
.area-list {
|
||
|
||
display: inline-block;
|
||
|
||
&-item {
|
||
|
||
display: inline-block;
|
||
border: 2px solid $black;
|
||
padding: (govuk-spacing(1) + 1px) (govuk-spacing(2) + 35px) govuk-spacing(1) govuk-spacing(2);
|
||
margin: 0 govuk-spacing(1) govuk-spacing(2) 0;
|
||
position: relative;
|
||
|
||
&-remove {
|
||
|
||
font-size: 0;
|
||
|
||
&:before {
|
||
content: "×";
|
||
display: block;
|
||
position: absolute;
|
||
top: -2px;
|
||
right: -2px;
|
||
bottom: -2px;
|
||
width: 35px;
|
||
background: $govuk-blue;
|
||
color: $white;
|
||
box-shadow: -2px 0 0 0 $black, inset 1px 0 0 0 rgba($white, 0.1);
|
||
border: 2px solid $govuk-blue;
|
||
border-left: none;
|
||
font-size: 24px;
|
||
font-weight: normal;
|
||
line-height: 40px;
|
||
text-align: center;
|
||
text-decoration: none;
|
||
}
|
||
|
||
&:hover,
|
||
&:focus {
|
||
|
||
&:before {
|
||
color: $light-blue-25;
|
||
}
|
||
|
||
}
|
||
|
||
&:focus {
|
||
|
||
outline: none;
|
||
|
||
&:before {
|
||
background: $focus-colour;
|
||
color: $black;
|
||
border-color: $black;
|
||
}
|
||
|
||
}
|
||
|
||
}
|
||
|
||
&:last-child {
|
||
margin-right: govuk-spacing(1) * 1.5;
|
||
}
|
||
|
||
&--unremoveable {
|
||
padding-right: govuk-spacing(2);
|
||
background: $light-blue-25;
|
||
margin-right: govuk-spacing(3);
|
||
}
|
||
|
||
}
|
||
|
||
.govuk-button {
|
||
margin-left: 3px;
|
||
}
|
||
|
||
}
|
||
|
||
#map {
|
||
z-index: 50;
|
||
margin-bottom: govuk-spacing(4);
|
||
}
|
||
|
||
.area-key {
|
||
|
||
display: inline-block;
|
||
position: relative;
|
||
margin-right: govuk-spacing(3);
|
||
margin-bottom: govuk-spacing(5);
|
||
height: govuk-spacing(7);
|
||
padding-left: govuk-spacing(8);
|
||
line-height: govuk-spacing(7);
|
||
|
||
&:before {
|
||
content: "";
|
||
display: block;
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
width: govuk-spacing(7);
|
||
height: govuk-spacing(7);
|
||
box-sizing: border-box;
|
||
margin-right: govuk-spacing(1);
|
||
}
|
||
|
||
&--certain {
|
||
&:before {
|
||
border: 4px solid rgba($white, 0.1);
|
||
background: rgba($govuk-blue, 0.6);
|
||
box-shadow: inset 0 0 0 2px $black;
|
||
}
|
||
}
|
||
|
||
&--likely {
|
||
&:before {
|
||
padding: 1px;
|
||
border: 2px solid $govuk-blue;
|
||
background: rgba($govuk-blue, 0.2);
|
||
}
|
||
}
|
||
|
||
}
|