Simplify notification item HTML

Other than simplifying the view, we can write tests using `click_link`,
which makes the tests more robust. Clicking the `.icon-notification`
element was causing some tests to fail when defining a window height of
750 pixels in the `admin_budgets` branch.
This commit is contained in:
Javi Martín
2021-02-16 00:30:01 +01:00
parent 5b6551f6d7
commit 4c289f2489
8 changed files with 72 additions and 51 deletions

View File

@@ -1,25 +1,40 @@
.notifications {
position: relative;
&.unread-notifications {
@include has-fa-icon(bell, solid);
@include has-fa-icon(circle, solid, after);
&::before {
@include breakpoint(medium) {
margin-right: 0;
}
}
&::after {
color: #ecf00b;
font-size: rem-calc(10);
margin-right: 0;
position: absolute;
left: 12px;
top: 6px;
@include breakpoint(medium) {
left: auto;
right: 8px;
}
}
}
&.no-notifications {
@include has-fa-icon(bell, regular);
}
&::before {
font-size: rem-calc(19);
}
&:hover {
text-decoration: none;
}
[class^="icon-"] {
font-size: rem-calc(19);
vertical-align: middle;
}
.icon-circle {
color: #ecf00b;
font-size: rem-calc(10);
position: absolute;
left: 12px;
top: 6px;
@include breakpoint(medium) {
left: auto;
right: 8px;
}
}
}