mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-04 11:08:25 -04:00
Style the area labels and polygons
Gives them some colours, borders and stuff to make them visually consistent with the rest of Notify. The idea is the tags and polygons have a similar affordances (i.e. border thickness, colour) to visually link them and imply that they are two representations of the same thing.
This commit is contained in:
64
app/assets/stylesheets/components/area-list.scss
Normal file
64
app/assets/stylesheets/components/area-list.scss
Normal file
@@ -0,0 +1,64 @@
|
||||
.area-list {
|
||||
|
||||
&-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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.govuk-button {
|
||||
margin-left: 3px;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -70,6 +70,7 @@ $path: '/static/images/';
|
||||
@import 'components/preview-pane';
|
||||
@import 'components/task-list';
|
||||
@import 'components/loading-indicator';
|
||||
@import 'components/area-list';
|
||||
|
||||
@import 'views/dashboard';
|
||||
@import 'views/users';
|
||||
|
||||
Reference in New Issue
Block a user