2021-02-21 16:13:58 +01:00
|
|
|
.notifications {
|
2021-06-23 22:08:20 +02:00
|
|
|
width: $navbar-icon-width;
|
2021-02-21 16:13:58 +01:00
|
|
|
|
2021-05-30 20:30:08 +02:00
|
|
|
.unread-indicator {
|
|
|
|
position: absolute;
|
2021-06-24 01:24:57 +02:00
|
|
|
top: .75rem;
|
|
|
|
right: 1.15rem;
|
2021-05-30 20:30:08 +02:00
|
|
|
width: .75rem;
|
|
|
|
height: .75rem;
|
2021-02-21 16:13:58 +01:00
|
|
|
|
2021-05-30 20:30:08 +02:00
|
|
|
background: $primary;
|
|
|
|
border-radius: 100%;
|
|
|
|
border: 2px solid $white;
|
2021-02-21 16:13:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.notifications-list {
|
|
|
|
position: fixed;
|
|
|
|
right: 1rem;
|
|
|
|
margin-top: 1rem;
|
|
|
|
max-height: 400px;
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
|
|
background: $white;
|
|
|
|
width: 350px;
|
|
|
|
max-width: calc(100vw - 2rem);
|
|
|
|
padding: .75rem .25rem;
|
|
|
|
border-radius: $radius;
|
|
|
|
box-shadow: $shadow-sm;
|
|
|
|
font-size: .85rem;
|
|
|
|
|
|
|
|
@media screen and (max-width: $tablet) {
|
|
|
|
max-height: calc(100vh - 1rem - #{$navbar-height});
|
|
|
|
}
|
|
|
|
|
|
|
|
.head {
|
|
|
|
font-family: $vikunja-font;
|
|
|
|
font-size: 1rem;
|
|
|
|
padding: .5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.single-notification {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2021-04-18 17:21:14 +02:00
|
|
|
padding: 0.25rem 0;
|
2021-02-21 16:13:58 +01:00
|
|
|
|
|
|
|
transition: background-color $transition;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: $grey-100;
|
|
|
|
border-radius: $radius;
|
|
|
|
}
|
|
|
|
|
|
|
|
.read-indicator {
|
|
|
|
width: .35rem;
|
|
|
|
height: .35rem;
|
|
|
|
background: $primary;
|
|
|
|
border-radius: 100%;
|
|
|
|
margin-left: .5rem;
|
|
|
|
|
|
|
|
&.read {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.user {
|
2021-04-18 17:21:14 +02:00
|
|
|
display: inline-flex;
|
2021-02-21 16:13:58 +01:00
|
|
|
align-items: center;
|
|
|
|
width: auto;
|
2021-04-18 17:21:14 +02:00
|
|
|
margin: 0 .5rem;
|
2021-02-21 16:13:58 +01:00
|
|
|
|
|
|
|
span {
|
|
|
|
font-family: $family-sans-serif;
|
|
|
|
}
|
|
|
|
|
|
|
|
.avatar {
|
|
|
|
height: 16px;
|
|
|
|
}
|
2021-04-18 17:21:14 +02:00
|
|
|
|
|
|
|
img {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2021-02-21 16:13:58 +01:00
|
|
|
}
|
|
|
|
|
2021-04-18 17:21:14 +02:00
|
|
|
.created {
|
2021-02-21 16:13:58 +01:00
|
|
|
color: $grey-400;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: .25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: $grey-800;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.nothing {
|
|
|
|
text-align: center;
|
|
|
|
padding: 1rem 0;
|
|
|
|
color: $grey-500;
|
|
|
|
|
|
|
|
.explainer {
|
|
|
|
font-size: .75rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|