Files
notifications-admin/app/assets/stylesheets/components/task-list.scss
T

63 lines
1.2 KiB
SCSS
Raw Normal View History

$indicator-colour: $black;
%task-list-indicator {
@include bold-16;
display: inline-block;
padding: 3px 8px 1px 8px;
position: absolute;
right: 0;
2020-02-21 13:21:44 +00:00
top: govuk-spacing(6) - 2px;
margin-top: -15px;
border: 2px solid $indicator-colour;
2019-02-27 15:44:01 +00:00
pointer-events: none;
z-index: 2;
min-width: 20%;
text-align: center;
}
.task-list {
2019-02-27 15:44:01 +00:00
border-top: 1px solid $border-colour;
2020-02-21 13:21:44 +00:00
margin: govuk-spacing(6) 0;
&-item {
2019-02-27 15:44:01 +00:00
position: relative;
2019-02-27 15:44:01 +00:00
a {
border-bottom: 1px solid $border-colour;
display: block;
2020-02-21 13:21:44 +00:00
padding: govuk-spacing(3) 0;
2019-02-27 15:44:01 +00:00
padding-right: 20%;
position: relative;
&:focus {
2020-09-14 23:48:55 +01:00
box-shadow: inset 0 -4px $govuk-focus-text-colour;
2019-02-27 15:44:01 +00:00
border-color: transparent;
top: -1px;
margin-bottom: -2px;
2020-02-21 13:21:44 +00:00
padding-top: govuk-spacing(3) + 1px;
padding-bottom: govuk-spacing(3) + 1px;
2019-02-27 15:44:01 +00:00
}
}
}
&-indicator-completed {
@extend %task-list-indicator;
background-color: $indicator-colour;
color: $grey-4;
// Just a pinch of letter spacing to make reversed-out text a bit
// easier to read
letter-spacing: 0.02em;
}
&-indicator-not-completed {
@extend %task-list-indicator;
2019-02-27 15:44:01 +00:00
background-color: $white;
color: $indicator-colour;
}
}