2012-07-31 01:09:14 +02:00
|
|
|
/**
|
|
|
|
* @provides phabricator-notification-menu-css
|
|
|
|
*/
|
|
|
|
|
|
|
|
.phabricator-notification-menu {
|
2017-07-17 20:08:17 +02:00
|
|
|
background: {$page.content};
|
2017-08-28 23:51:00 +02:00
|
|
|
font-size: {$smallerfontsize};
|
|
|
|
line-height: 18px;
|
2012-07-31 01:09:14 +02:00
|
|
|
word-wrap: break-word;
|
|
|
|
overflow-y: auto;
|
2015-04-14 18:48:59 +02:00
|
|
|
box-shadow: {$dropshadow};
|
2017-01-17 21:04:28 +01:00
|
|
|
border: 1px solid {$lightgreyborder};
|
2013-03-23 00:15:28 +01:00
|
|
|
border-radius: 3px;
|
2012-07-31 01:09:14 +02:00
|
|
|
}
|
|
|
|
|
2017-08-28 23:51:00 +02:00
|
|
|
.phabricator-notification {
|
|
|
|
padding: 8px 12px;
|
2019-03-22 17:11:53 +01:00
|
|
|
color: {$darkgreytext};
|
2014-01-23 05:09:32 +01:00
|
|
|
}
|
|
|
|
|
2013-01-29 02:34:59 +01:00
|
|
|
.phabricator-notification-menu-loading {
|
|
|
|
text-align: center;
|
|
|
|
padding: 10px 0;
|
2013-09-02 17:12:18 +02:00
|
|
|
color: {$lightgreytext};
|
2013-01-29 02:34:59 +01:00
|
|
|
}
|
|
|
|
|
2013-03-23 00:15:28 +01:00
|
|
|
.device-desktop .phabricator-notification-menu,
|
|
|
|
.device-tablet .phabricator-notification-menu {
|
2014-08-14 00:37:13 +02:00
|
|
|
position: absolute;
|
2012-07-31 01:09:14 +02:00
|
|
|
width: 360px;
|
|
|
|
top: 42px;
|
|
|
|
}
|
|
|
|
|
2013-03-23 00:15:28 +01:00
|
|
|
.device-phone .phabricator-notification-menu {
|
2014-05-28 00:26:16 +02:00
|
|
|
border-bottom: 1px solid {$thinblueborder};
|
2013-03-23 00:15:28 +01:00
|
|
|
width: 94%;
|
|
|
|
max-width: 390px;
|
|
|
|
top: 42px !important;
|
|
|
|
left: 3% !important;
|
|
|
|
position: absolute;
|
2012-07-31 01:09:14 +02:00
|
|
|
}
|
|
|
|
|
2015-06-19 12:46:20 +02:00
|
|
|
.phabricator-notification-list.pm {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.phabricator-notification-list .phabricator-notification {
|
2017-08-28 23:51:00 +02:00
|
|
|
padding: 8px;
|
2013-12-03 20:58:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.phabricator-notification-menu .phabricator-notification {
|
2012-12-08 01:26:43 +01:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2013-06-20 22:51:56 +02:00
|
|
|
.device-desktop .phabricator-notification-menu .phabricator-notification:hover {
|
2017-08-28 23:51:00 +02:00
|
|
|
background: {$lightgreybackground};
|
2012-12-08 01:26:43 +01:00
|
|
|
}
|
|
|
|
|
2014-05-31 06:03:23 +02:00
|
|
|
.device-desktop .phabricator-notification-menu
|
|
|
|
.phabricator-notification-unread.phabricator-notification:hover {
|
|
|
|
background: {$hoverselectedblue};
|
|
|
|
}
|
|
|
|
|
2012-12-08 01:26:43 +01:00
|
|
|
.phabricator-notification + .phabricator-notification {
|
2017-07-17 20:08:17 +02:00
|
|
|
border-top: 1px solid {$thinblueborder};
|
2012-07-31 01:09:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.no-notifications {
|
2013-09-02 17:12:18 +02:00
|
|
|
color: {$lightgreytext};
|
2012-07-31 01:09:14 +02:00
|
|
|
}
|
|
|
|
|
Fix the most significant "phantom notification" badness
Summary:
Ref T13124. Ref T13131. Fixes T8953. See PHI512.
When you receieve a notification about an object and then someone hides that object from you (or deletes it), you get a phantom notification which is very difficult to clear.
For now, test that notifications are visible when you open the menu and clear any that are not.
This could be a little more elegant than it is, but the current behavior is very clearly broken. This unbreaks it, at least.
Test Plan:
- As Alice, configured task stuff to notify me (instead of sending email).
- As Bailey, added Alice as a subscriber to a task, then commented on it.
- As Alice, loaded home and saw a notification count. Didn't click it yet.
- As Bailey, set the task to private.
- As Alice, clicked the notification bell menu icon.
- Before change: no unread notifications, bell menu is semi-stuck in a phantom state which you can't clear.
- After change: bad notifications automatically cleared.
{F5530005}
Reviewers: amckinley
Reviewed By: amckinley
Maniphest Tasks: T13131, T13124, T8953
Differential Revision: https://secure.phabricator.com/D19384
2018-04-19 19:49:30 +02:00
|
|
|
.phabricator-notification-warning {
|
|
|
|
background: {$sh-yellowbackground};
|
|
|
|
}
|
|
|
|
|
2012-07-31 01:09:14 +02:00
|
|
|
.phabricator-notification-list .phabricator-notification-unread,
|
|
|
|
.phabricator-notification-menu .phabricator-notification-unread {
|
2014-05-28 00:26:16 +02:00
|
|
|
background: {$hoverblue};
|
2012-07-31 01:09:14 +02:00
|
|
|
}
|
|
|
|
|
2016-08-28 04:00:35 +02:00
|
|
|
.phabricator-notification-read {
|
|
|
|
color: {$lightgreytext};
|
|
|
|
}
|
|
|
|
|
2017-08-28 23:51:00 +02:00
|
|
|
.phabricator-notification-foot {
|
|
|
|
color: {$lightgreytext};
|
|
|
|
font-size: {$smallestfontsize};
|
|
|
|
line-height: 18px;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.phabricator-notification-unread .phabricator-notification-foot {
|
|
|
|
padding-left: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.phabricator-notification-foot .phabricator-notification-status {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.phabricator-notification-unread .phabricator-notification-foot
|
|
|
|
.phabricator-notification-status {
|
|
|
|
font-size: 7px;
|
Fix the most significant "phantom notification" badness
Summary:
Ref T13124. Ref T13131. Fixes T8953. See PHI512.
When you receieve a notification about an object and then someone hides that object from you (or deletes it), you get a phantom notification which is very difficult to clear.
For now, test that notifications are visible when you open the menu and clear any that are not.
This could be a little more elegant than it is, but the current behavior is very clearly broken. This unbreaks it, at least.
Test Plan:
- As Alice, configured task stuff to notify me (instead of sending email).
- As Bailey, added Alice as a subscriber to a task, then commented on it.
- As Alice, loaded home and saw a notification count. Didn't click it yet.
- As Bailey, set the task to private.
- As Alice, clicked the notification bell menu icon.
- Before change: no unread notifications, bell menu is semi-stuck in a phantom state which you can't clear.
- After change: bad notifications automatically cleared.
{F5530005}
Reviewers: amckinley
Reviewed By: amckinley
Maniphest Tasks: T13131, T13124, T8953
Differential Revision: https://secure.phabricator.com/D19384
2018-04-19 19:49:30 +02:00
|
|
|
color: {$lightbluetext};
|
2017-08-28 23:51:00 +02:00
|
|
|
position: absolute;
|
|
|
|
display: inline-block;
|
|
|
|
top: 6px;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
2012-12-08 01:26:43 +01:00
|
|
|
.phabricator-notification-header {
|
|
|
|
font-weight: bold;
|
2017-08-28 23:51:00 +02:00
|
|
|
padding: 10px 12px;
|
2015-06-26 18:33:03 +02:00
|
|
|
font-size: {$smallerfontsize};
|
2014-05-28 00:26:16 +02:00
|
|
|
border-bottom: 1px solid {$thinblueborder};
|
2012-12-08 01:26:43 +01:00
|
|
|
}
|
|
|
|
|
2014-04-29 19:43:38 +02:00
|
|
|
.phabricator-notification-header a {
|
2019-03-22 17:11:53 +01:00
|
|
|
color: {$anchor};
|
2014-04-29 19:43:38 +02:00
|
|
|
}
|
|
|
|
|
2014-08-15 02:19:01 +02:00
|
|
|
.phabricator-notification-header a:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
2014-04-29 19:43:38 +02:00
|
|
|
.phabricator-notification-header .phabricator-notification-clear-all {
|
2015-05-19 15:38:48 +02:00
|
|
|
color: {$anchor};
|
2014-04-29 19:43:38 +02:00
|
|
|
float: right;
|
2014-05-28 00:26:16 +02:00
|
|
|
font-weight: normal;
|
2014-04-29 19:43:38 +02:00
|
|
|
}
|
|
|
|
|
2014-08-15 02:19:01 +02:00
|
|
|
.phabricator-notification-footer {
|
2014-05-28 00:26:16 +02:00
|
|
|
background: {$greybackground};
|
|
|
|
border-top: 1px solid {$thinblueborder};
|
2013-03-23 00:15:28 +01:00
|
|
|
border-bottom-left-radius: 3px;
|
|
|
|
border-bottom-right-radius: 3px;
|
2014-05-28 00:26:16 +02:00
|
|
|
padding: 8px;
|
2015-06-26 18:33:03 +02:00
|
|
|
font-size: {$smallerfontsize};
|
2014-08-15 02:19:01 +02:00
|
|
|
color: {$darkgreytext};
|
|
|
|
}
|
|
|
|
|
|
|
|
.phabricator-notification-footer a {
|
|
|
|
color: {$darkgreytext};
|
|
|
|
}
|
|
|
|
|
|
|
|
.phabricator-notification-footer a:hover {
|
|
|
|
text-decoration: underline;
|
2012-07-31 01:09:14 +02:00
|
|
|
}
|
2014-06-24 01:26:16 +02:00
|
|
|
|
|
|
|
.phabricator-notification-menu .aphlict-connection-status {
|
|
|
|
color: {$lightgreytext};
|
|
|
|
}
|
|
|
|
|
2016-10-02 05:37:28 +02:00
|
|
|
.aphlict-connection-status {
|
|
|
|
position: relative;
|
2014-06-24 01:26:16 +02:00
|
|
|
}
|
|
|
|
|
2016-10-02 05:37:28 +02:00
|
|
|
.aphlict-connection-status .phui-icon-view {
|
|
|
|
font-size: 9px;
|
|
|
|
position: absolute;
|
|
|
|
top: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.aphlict-connection-status .connection-status-text {
|
|
|
|
margin-left: 12px;
|
2014-06-24 01:26:16 +02:00
|
|
|
}
|
2019-03-22 17:11:53 +01:00
|
|
|
|
|
|
|
.phabricator-notification .phui-timeline-value {
|
|
|
|
font-style: italic;
|
|
|
|
color: #000;
|
|
|
|
}
|