noti
This commit is contained in:
@@ -225,6 +225,8 @@ button:disabled {
|
||||
height: 56px;
|
||||
justify-content: space-between;
|
||||
padding: 0 24px;
|
||||
position: relative;
|
||||
z-index: 60;
|
||||
}
|
||||
|
||||
.topbar-left,
|
||||
@@ -240,6 +242,256 @@ button:disabled {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.notification-center {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.notification-button {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.notification-badge {
|
||||
align-items: center;
|
||||
background: #d92d20;
|
||||
border: 2px solid #f8fafc;
|
||||
border-radius: 999px;
|
||||
color: #ffffff;
|
||||
display: inline-flex;
|
||||
font-size: 9px;
|
||||
font-weight: 800;
|
||||
height: 18px;
|
||||
justify-content: center;
|
||||
line-height: 1;
|
||||
min-width: 18px;
|
||||
padding: 0 4px;
|
||||
position: absolute;
|
||||
right: -7px;
|
||||
top: -7px;
|
||||
}
|
||||
|
||||
.notification-panel {
|
||||
background: #ffffff;
|
||||
border: 1px solid #dbe3ea;
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow-lg);
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: calc(100% + 10px);
|
||||
width: min(400px, calc(100vw - 28px));
|
||||
z-index: 120;
|
||||
}
|
||||
|
||||
.notification-panel[hidden],
|
||||
.notification-badge[hidden],
|
||||
.notification-empty[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.notification-panel-header {
|
||||
align-items: center;
|
||||
border-bottom: 1px solid #eef2f7;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 14px 16px 10px;
|
||||
}
|
||||
|
||||
.notification-panel-header > div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.notification-panel-header strong {
|
||||
color: #111827;
|
||||
font-family: "Manrope", Arial, sans-serif;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.notification-panel-header span {
|
||||
color: #64748b;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.text-button {
|
||||
background: transparent;
|
||||
border: 0;
|
||||
color: var(--primary);
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.text-button:hover,
|
||||
.text-button:focus-visible {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.notification-tabs {
|
||||
border-bottom: 1px solid #eef2f7;
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
padding: 0 16px;
|
||||
}
|
||||
|
||||
.notification-tabs button {
|
||||
background: transparent;
|
||||
border: 0;
|
||||
border-bottom: 2px solid transparent;
|
||||
color: #64748b;
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
padding: 9px 0 7px;
|
||||
}
|
||||
|
||||
.notification-tabs button.active {
|
||||
border-bottom-color: var(--primary);
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
.notification-list {
|
||||
max-height: min(440px, calc(100vh - 190px));
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.notification-item {
|
||||
align-items: flex-start;
|
||||
background: #ffffff;
|
||||
border: 0;
|
||||
border-bottom: 1px solid #f0f3f7;
|
||||
color: inherit;
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
grid-template-columns: 34px minmax(0, 1fr) 7px;
|
||||
padding: 12px 14px;
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.notification-item:hover,
|
||||
.notification-item:focus-visible {
|
||||
background: #f8fafc;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.notification-item.unread {
|
||||
background: #f7f8ff;
|
||||
}
|
||||
|
||||
.notification-item.unread:hover,
|
||||
.notification-item.unread:focus-visible {
|
||||
background: #eef1ff;
|
||||
}
|
||||
|
||||
.notification-item-icon {
|
||||
align-items: center;
|
||||
background: var(--info-bg);
|
||||
border-radius: 50%;
|
||||
color: var(--info);
|
||||
display: inline-flex;
|
||||
height: 34px;
|
||||
justify-content: center;
|
||||
width: 34px;
|
||||
}
|
||||
|
||||
.notification-item-icon .material-symbols-outlined {
|
||||
font-size: 19px;
|
||||
}
|
||||
|
||||
.notification-item.tone-success .notification-item-icon {
|
||||
background: var(--success-bg);
|
||||
color: var(--success);
|
||||
}
|
||||
|
||||
.notification-item.tone-warning .notification-item-icon {
|
||||
background: var(--warning-bg);
|
||||
color: var(--warning);
|
||||
}
|
||||
|
||||
.notification-item.tone-error .notification-item-icon {
|
||||
background: var(--danger-bg);
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.notification-item-copy {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.notification-item-copy strong,
|
||||
.notification-item-copy span,
|
||||
.notification-item-copy time {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.notification-item-copy strong {
|
||||
color: #172033;
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.notification-item-copy span {
|
||||
color: #52606d;
|
||||
font-size: 11px;
|
||||
line-height: 1.45;
|
||||
margin-top: 3px;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.notification-item-copy time {
|
||||
color: #84909a;
|
||||
font-size: 10px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.notification-unread-dot {
|
||||
align-self: center;
|
||||
background: var(--primary);
|
||||
border-radius: 50%;
|
||||
height: 7px;
|
||||
opacity: 0;
|
||||
width: 7px;
|
||||
}
|
||||
|
||||
.notification-item.unread .notification-unread-dot {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.notification-empty {
|
||||
align-items: center;
|
||||
color: #64748b;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
min-height: 180px;
|
||||
justify-content: center;
|
||||
padding: 24px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.notification-empty .material-symbols-outlined {
|
||||
color: #94a3b8;
|
||||
font-size: 32px;
|
||||
}
|
||||
|
||||
.notification-empty strong {
|
||||
color: #334155;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.notification-empty span:last-child {
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.notification-panel-footer {
|
||||
background: #f8fafc;
|
||||
border-top: 1px solid #eef2f7;
|
||||
padding: 10px 14px;
|
||||
}
|
||||
|
||||
.notification-panel-footer .btn {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.profile-chip {
|
||||
align-items: center;
|
||||
background: transparent;
|
||||
@@ -419,6 +671,7 @@ button:disabled {
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
|
||||
.dashboard-stats {
|
||||
display: grid;
|
||||
flex-shrink: 0;
|
||||
@@ -1060,6 +1313,13 @@ tbody tr:hover td.action-col {
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.modal-header p {
|
||||
color: #64748b;
|
||||
font-size: 11px;
|
||||
line-height: 1.45;
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
.modal-form {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
@@ -1464,6 +1724,15 @@ tbody tr:hover td.action-col {
|
||||
padding: 0 14px;
|
||||
}
|
||||
|
||||
.notification-panel {
|
||||
left: 8px;
|
||||
max-height: calc(100dvh - 72px);
|
||||
position: fixed;
|
||||
right: 8px;
|
||||
top: 64px;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.profile-meta {
|
||||
display: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user