@use '@styles/variables.scss' as *; .notice-overlay { position: fixed; inset: 0; z-index: 2000; } .notice { position: absolute; top: 60px; right: 18px; width: 390px; max-width: calc(100vw - 24px); background: var(--art-main-bg-color); border: 1px solid var(--art-border-color); border-radius: calc(var(--custom-radius) / 2 + 6px); box-shadow: 0 8px 26px -4px hsl(0deg 0% 8% / 15%); } .header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--art-border-color); .text { font-size: 16px; font-weight: 600; } .read-all { padding: 4px 8px; color: var(--el-color-primary); cursor: pointer; background: transparent; border: 0; } } .bar { display: flex; padding: 0 12px; overflow-x: auto; border-bottom: 1px solid var(--art-border-color); button { flex: 0 0 auto; padding: 13px 8px 11px; margin-right: 12px; color: var(--art-gray-700); cursor: pointer; background: transparent; border: 0; border-bottom: 2px solid transparent; &.active { color: var(--el-color-primary); border-bottom-color: var(--el-color-primary); } } } .content { .scroll { height: 390px; overflow-y: auto; } .pagination { display: flex; justify-content: center; padding: 12px 8px; overflow-x: auto; border-top: 1px solid var(--art-border-color); :deep(.el-pagination) { justify-content: center; } } .notification-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 14px 16px; text-align: left; cursor: pointer; background: transparent; border: 0; &:hover { background: var(--el-fill-color-light); } &.unread { background: color-mix(in srgb, var(--el-color-primary) 5%, transparent); } .icon { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--el-color-info); background: var(--el-color-info-light-9); border-radius: 8px; &.severity-warning { color: var(--el-color-warning); background: var(--el-color-warning-light-9); } &.severity-error { color: var(--el-color-danger); background: var(--el-color-danger-light-9); } &.severity-critical { color: var(--el-color-danger); background: var(--el-color-danger-light-9); } } .text { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; strong, small, time { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } strong { color: var(--el-text-color-primary); } small, time { color: var(--el-text-color-secondary); } } .unread-dot { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 5px; background: var(--el-color-danger); border-radius: 50%; } } .empty-tips { padding: 70px 20px; color: var(--el-text-color-secondary); text-align: center; i { font-size: 42px; } } } @media only screen and (max-width: $device-phone) { .notice { top: 62px; right: 12px; left: 12px; width: auto; } }