2015-07-17 13:17:49 +08:00
|
|
|
|
|
|
|
|
|
.NotificationList {
|
2020-05-16 08:10:40 +08:00
|
|
|
|
overflow: hidden;
|
2015-07-17 13:17:49 +08:00
|
|
|
|
& .loading-indicator {
|
|
|
|
|
height: 100px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.NotificationList-header {
|
|
|
|
|
@media @tablet-up {
|
|
|
|
|
padding: 12px 15px;
|
|
|
|
|
border-bottom: 1px solid @control-bg;
|
|
|
|
|
|
|
|
|
|
h4 {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
margin: 0;
|
|
|
|
|
color: @muted-color;
|
|
|
|
|
}
|
2015-07-18 08:37:22 +08:00
|
|
|
|
}
|
|
|
|
|
.Button {
|
|
|
|
|
float: right;
|
|
|
|
|
margin-top: -11px;
|
|
|
|
|
margin-right: -11px;
|
|
|
|
|
|
|
|
|
|
// The NotificationList may be displayed inside of the drawer as a
|
|
|
|
|
// dropdown menu – but the drawer may have .light-contents() applied to
|
|
|
|
|
// it. In this case we will need to reset the button's styles back to
|
|
|
|
|
// normal.
|
|
|
|
|
& when (@config-colored-header = true) {
|
|
|
|
|
.Button--color(@control-color, @control-bg);
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
color: @link-color;
|
|
|
|
|
}
|
2015-07-17 13:17:49 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.NotificationList-empty {
|
|
|
|
|
color: @muted-color;
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding: 50px 0;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
.NotificationGroup {
|
|
|
|
|
border-top: 1px solid @control-bg;
|
|
|
|
|
margin-top: -1px;
|
|
|
|
|
|
|
|
|
|
&:not(:last-child) {
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.NotificationGroup-header {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: @heading-color !important;
|
|
|
|
|
padding: 6px 15px;
|
|
|
|
|
display: block;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
}
|
|
|
|
|
.NotificationGroup-badges {
|
|
|
|
|
margin-left: -2px;
|
|
|
|
|
margin-right: 18px;
|
|
|
|
|
vertical-align: 1px;
|
|
|
|
|
|
2015-07-23 13:02:21 +08:00
|
|
|
|
.Badge {
|
2015-07-17 13:17:49 +08:00
|
|
|
|
margin-right: -13px;
|
|
|
|
|
position: relative;
|
|
|
|
|
.Badge--size(21px);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.NotificationGroup-content {
|
|
|
|
|
list-style: none;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
.Notification {
|
2015-09-04 10:45:11 +08:00
|
|
|
|
display: block;
|
|
|
|
|
padding: 8px 15px 8px 70px;
|
|
|
|
|
color: @muted-color !important; // required to override .light-contents applied to header
|
|
|
|
|
overflow: hidden;
|
2015-07-17 13:17:49 +08:00
|
|
|
|
|
2015-09-04 10:45:11 +08:00
|
|
|
|
.unread& {
|
|
|
|
|
background: @control-bg;
|
|
|
|
|
}
|
|
|
|
|
&:hover {
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
background: @control-bg;
|
2019-09-10 05:36:06 +08:00
|
|
|
|
|
|
|
|
|
.Notification-action {
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
2015-07-17 13:17:49 +08:00
|
|
|
|
}
|
|
|
|
|
.Avatar {
|
|
|
|
|
.Avatar--size(24px);
|
|
|
|
|
float: left;
|
|
|
|
|
margin: -2px 0 -2px -55px;
|
|
|
|
|
}
|
|
|
|
|
time {
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
}
|
2019-09-10 05:36:06 +08:00
|
|
|
|
|
|
|
|
|
.Notification-action {
|
|
|
|
|
float: right;
|
|
|
|
|
display: none;
|
|
|
|
|
margin-top: -7px;
|
|
|
|
|
margin-right: -10px;
|
|
|
|
|
line-height: inherit;
|
|
|
|
|
padding: 5px 0;
|
|
|
|
|
|
|
|
|
|
& when (@config-colored-header = true) {
|
|
|
|
|
.Button--color(@control-color, @control-bg);
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
color: @link-color;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-07-17 13:17:49 +08:00
|
|
|
|
}
|
|
|
|
|
.Notification-icon {
|
|
|
|
|
float: left;
|
|
|
|
|
margin-left: -23px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
margin-top: 2px;
|
|
|
|
|
}
|
|
|
|
|
.Notification-content {
|
|
|
|
|
margin-right: 5px;
|
|
|
|
|
|
|
|
|
|
.username {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-08-21 08:24:41 +08:00
|
|
|
|
.Notification-excerpt {
|
|
|
|
|
color: @muted-more-color;
|
2015-08-21 08:30:09 +08:00
|
|
|
|
font-size: 11px;
|
|
|
|
|
margin-top: 3px;
|
2015-08-21 08:24:41 +08:00
|
|
|
|
white-space: nowrap;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|