74 lines
1.2 KiB
CSS
74 lines
1.2 KiB
CSS
.notif-avatar-container {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
.notif-badge {
|
|
position: absolute;
|
|
top: -6px;
|
|
right: -6px;
|
|
background: #e74c3c;
|
|
color: #fff;
|
|
border-radius: 50%;
|
|
min-width: 20px;
|
|
height: 20px;
|
|
padding: 0 6px;
|
|
font-size: 12px;
|
|
display: none;
|
|
line-height: 20px;
|
|
text-align: center;
|
|
box-sizing: border-box;
|
|
font-weight: 600;
|
|
}
|
|
.notif-panel {
|
|
position: absolute;
|
|
right: 10px;
|
|
top: 44px;
|
|
width: 320px;
|
|
background: #fff;
|
|
border: 1px solid #ddd;
|
|
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
|
|
z-index: 9999;
|
|
padding: 8px;
|
|
border-radius: 6px;
|
|
}
|
|
.notif-panel .notif-empty {
|
|
padding: 12px;
|
|
text-align: center;
|
|
color: #666;
|
|
}
|
|
.notif-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 8px;
|
|
border-bottom: 1px solid #f1f1f1;
|
|
}
|
|
.notif-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
.notif-item-avatar {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
margin-right: 8px;
|
|
}
|
|
.notif-item-body {
|
|
flex: 1;
|
|
}
|
|
.notif-item-title {
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
}
|
|
.notif-item-meta {
|
|
font-size: 11px;
|
|
color: #888;
|
|
}
|
|
.notif-close {
|
|
background: transparent;
|
|
border: 0;
|
|
color: #999;
|
|
font-weight: 700;
|
|
padding: 6px;
|
|
cursor: pointer;
|
|
}
|