UX: Add "spotlight" on first notification.
This commit is contained in:
parent
095767bdb4
commit
5613c5f81a
|
@ -42,7 +42,10 @@ createWidget('header-notifications', {
|
|||
|
||||
const unreadPMs = currentUser.get('unread_private_messages');
|
||||
if (!!unreadPMs) {
|
||||
if (!currentUser.get('read_first_notification')) contents.push(h('span.ring'));
|
||||
if (!currentUser.get('read_first_notification')) {
|
||||
contents.push(h('span.ring'));
|
||||
contents.push(h('span.ring-backdrop'));
|
||||
};
|
||||
|
||||
contents.push(this.attach('link', { action: attrs.action,
|
||||
className: 'badge-notification unread-private-messages',
|
||||
|
|
|
@ -166,6 +166,16 @@ body {
|
|||
&.badge-notification[href] {color: $secondary;}
|
||||
}
|
||||
|
||||
.ring-backdrop {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
top: -18px !important;
|
||||
right: -18px !important;
|
||||
box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.8);
|
||||
border-radius: 100%;
|
||||
z-index: 1040;
|
||||
}
|
||||
|
||||
.ring {
|
||||
$gradient-start: transparent;
|
||||
$gradient-end: #090;
|
||||
|
|
|
@ -123,7 +123,7 @@
|
|||
.notifications {
|
||||
position: relative;
|
||||
}
|
||||
.badge-notification, .ring {
|
||||
.badge-notification, .ring, .ring-backdrop {
|
||||
position: absolute;
|
||||
top: -9px;
|
||||
z-index: 1;
|
||||
|
@ -133,7 +133,7 @@
|
|||
right: 0;
|
||||
background-color: scale-color($tertiary, $lightness: 50%);
|
||||
}
|
||||
.unread-private-messages, .ring {
|
||||
.unread-private-messages, .ring, .ring-backdrop {
|
||||
right: 25px;
|
||||
}
|
||||
.flagged-posts {
|
||||
|
|
Loading…
Reference in New Issue