framework/less/forum/notifications.less

148 lines
2.6 KiB
Plaintext
Raw Normal View History

2015-03-24 15:07:38 +10:30
.notifications {
& .dropdown-menu {
padding: 0;
overflow: hidden;
& .notifications-content {
max-height: 600px;
overflow: auto;
padding-bottom: 10px;
}
2015-03-24 15:07:38 +10:30
}
& .dropdown-toggle .label {
margin-left: 5px;
}
}
.notification-list {
& .loading-indicator {
height: 100px;
}
}
2015-03-24 15:07:38 +10:30
@media @tablet, @desktop, @desktop-hd {
.notifications {
& .dropdown-menu {
width: 400px;
}
& .dropdown-toggle .label {
display: none;
}
}
}
.notifications-icon {
display: inline-block;
border-radius: 12px;
height: 24px;
width: 24px;
text-align: center;
padding: 2px 0;
font-weight: bold;
margin: -2px -3px;
}
&.unread .notifications-icon {
2015-05-27 16:22:02 +09:30
background: @fl-body-primary-color;
2015-03-24 15:07:38 +10:30
color: #fff;
}
.notifications-header {
@media @tablet, @desktop, @desktop-hd {
padding: 12px 15px;
border-bottom: 1px solid @fl-body-secondary-color;
2015-03-24 15:07:38 +10:30
& h4 {
font-size: 12px;
text-transform: uppercase;
font-weight: bold;
margin: 0;
color: @fl-body-muted-color;
}
& .btn {
float: right;
margin-top: -5px;
margin-right: -5px;
}
2015-03-24 15:07:38 +10:30
}
}
.no-notifications {
color: @fl-body-muted-color;
text-align: center;
padding: 50px 0;
font-size: 16px;
}
2015-05-14 22:40:32 +09:30
.notification-group {
border-top: 1px solid @fl-body-secondary-color;
margin-top: -1px;
&:not(:last-child) {
margin-bottom: 20px;
}
}
.notification-group-header {
font-weight: bold;
color: @fl-body-heading-color !important;
2015-05-18 18:56:11 +09:30
padding: 6px 15px;
2015-05-14 22:40:32 +09:30
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.notification-group-list {
2015-05-14 22:40:32 +09:30
list-style: none;
margin: 0;
padding: 0;
}
2015-03-24 15:07:38 +10:30
.notification {
& > a {
display: block;
2015-05-18 18:56:11 +09:30
padding: 8px 15px 8px 70px;
2015-03-24 15:07:38 +10:30
color: @fl-body-muted-color;
overflow: hidden;
.unread& {
background: @fl-body-secondary-color;
}
&:hover {
text-decoration: none;
background: @fl-body-secondary-color;
}
}
& .avatar {
2015-05-14 22:40:32 +09:30
.avatar-size(24px);
2015-03-24 15:07:38 +10:30
float: left;
2015-05-18 18:56:11 +09:30
margin: -2px 0 -2px -55px;
2015-03-24 15:07:38 +10:30
}
2015-05-14 22:40:32 +09:30
& .icon {
float: left;
margin-left: -23px;
2015-03-24 15:07:38 +10:30
font-size: 14px;
2015-05-14 22:40:32 +09:30
margin-top: 2px;
2015-03-24 15:07:38 +10:30
}
& .username {
font-weight: bold;
}
2015-05-14 22:40:32 +09:30
& .content {
margin-right: 5px;
}
& time {
font-size: 11px;
font-weight: bold;
text-transform: uppercase;
}
2015-03-24 15:07:38 +10:30
}
.drawer-toggle.unread-notifications {
position: relative;
&:after {
content: ' ';
display: block;
position: absolute;
background: @fl-body-primary-color;
top: 4px;
right: 2px;
width: 14px;
height: 14px;
border-radius: 7px;
border: 2px solid @fl-body-bg;
2015-03-24 15:07:38 +10:30
}
}