nex_docus/frontend/src/components/MainLayout/AppHeader.css

154 lines
2.6 KiB
CSS
Raw Normal View History

2025-12-20 11:18:59 +00:00
.app-header {
2026-01-30 05:00:57 +00:00
background: var(--header-bg);
2025-12-20 11:18:59 +00:00
padding: 0 24px;
display: flex;
align-items: center;
justify-content: space-between;
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
height: 64px;
2026-01-30 05:00:57 +00:00
border-bottom: 1px solid var(--border-color);
color: var(--text-color);
2025-12-20 11:18:59 +00:00
}
/* 左侧区域 */
.header-left {
display: flex;
align-items: center;
gap: 16px;
}
/* Logo 区域 */
.header-logo {
display: flex;
align-items: center;
justify-content: center;
width: 168px;
transition: width 0.2s;
}
.trigger {
font-size: 18px;
cursor: pointer;
transition: color 0.3s;
padding: 8px;
border-radius: 4px;
2026-01-30 05:00:57 +00:00
color: var(--text-color-secondary);
2025-12-20 11:18:59 +00:00
display: flex;
align-items: center;
}
.trigger:hover {
2026-01-01 14:41:10 +00:00
color: #1677ff;
background: rgba(22, 119, 255, 0.08);
2025-12-20 11:18:59 +00:00
}
/* 右侧区域 */
.header-right {
display: flex;
align-items: center;
gap: 16px;
}
.header-actions {
display: flex;
align-items: center;
2026-01-30 05:00:57 +00:00
gap: 16px;
2025-12-20 11:18:59 +00:00
}
2026-01-30 05:00:57 +00:00
/* Icon Buttons */
.header-icon-btn {
2025-12-20 11:18:59 +00:00
display: flex;
align-items: center;
justify-content: center;
2026-01-30 05:00:57 +00:00
width: 40px;
height: 40px;
border-radius: 8px;
2025-12-20 11:18:59 +00:00
cursor: pointer;
2026-01-30 05:00:57 +00:00
color: var(--text-color-secondary);
transition: all 0.2s;
background: transparent;
2025-12-20 11:18:59 +00:00
}
2026-01-30 05:00:57 +00:00
.header-icon-btn:hover {
background-color: var(--item-hover-bg);
color: var(--text-color);
2025-12-20 11:18:59 +00:00
}
2026-01-06 10:04:06 +00:00
/* 通知面板样式 */
.header-notification-popover .ant-popover-inner-content {
padding: 0;
}
.notification-popover {
width: 320px;
}
.popover-header {
padding: 12px 16px;
2026-01-30 05:00:57 +00:00
border-bottom: 1px solid var(--border-color);
2026-01-06 10:04:06 +00:00
display: flex;
justify-content: space-between;
align-items: center;
}
.popover-header .title {
font-weight: 600;
font-size: 16px;
2026-01-30 05:00:57 +00:00
color: var(--text-color);
2026-01-06 10:04:06 +00:00
}
.notification-list {
max-height: 400px;
overflow-y: auto;
}
.notification-item {
padding: 12px 16px !important;
cursor: pointer;
transition: background 0.3s;
2026-01-30 05:00:57 +00:00
background: var(--bg-color);
2026-01-06 10:04:06 +00:00
}
.notification-item:hover {
2026-01-30 05:00:57 +00:00
background: var(--item-hover-bg);
2026-01-06 10:04:06 +00:00
}
.notification-item.unread {
background: #e6f7ff;
}
2026-01-30 05:00:57 +00:00
/* Dark mode adjustment for unread */
body.dark .notification-item.unread {
background: #111d2c;
}
2026-01-06 10:04:06 +00:00
.notification-item.unread:hover {
background: #bae7ff;
}
2026-01-30 05:00:57 +00:00
body.dark .notification-item.unread:hover {
background: #112a45;
}
2026-01-06 10:04:06 +00:00
.content-text {
font-size: 13px;
2026-01-30 05:00:57 +00:00
color: var(--text-color-secondary);
2026-01-06 10:04:06 +00:00
margin-top: 4px;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.time {
font-size: 12px;
2026-01-30 05:00:57 +00:00
color: var(--text-color-secondary);
opacity: 0.8;
2026-01-06 10:04:06 +00:00
margin-top: 4px;
}
.popover-footer {
padding: 8px;
2026-01-30 05:00:57 +00:00
border-top: 1px solid var(--border-color);
2026-01-06 10:04:06 +00:00
text-align: center;
2026-01-01 14:41:10 +00:00
}