This repository has been archived on 2026-06-21. You can view files and clone it, but cannot push or open issues or pull requests.
Files
MetaLab/templates/MetaLab-2026/static/css/follow.css
Victor_Jay 680df7371a feat: 实现关注系统 + 通知侧边栏分类 TAB + 点赞聚合通知
- 新增关注系统:UserFollow 模型、FollowService(toggle/status/列表隐私控制)
- User 新增 FollowersCount/FollowingCount/FollowListPublic/NotifyPrefs 字段
- Space 页面增加四态关注按钮(关注/已关注/回关/已互粉)+ 粉丝/关注数链接
- 新增 /space/:uid/followers 和 /space/:uid/following 列表页
- 新增 NotifyFollow/NotifyLikeAggregated 通知类型
- ReactionService 点赞时写入 daily_like_summary,访问时生成聚合通知
- FollowService 关注时触发 NotifyFollow 通知
- 消息中心侧边栏升级为分类 TAB(全部/系统通知/@艾特/点赞/关注)
- NotificationService 新增 ListByCategory 按分类分页查询
2026-06-01 16:30:46 +08:00

143 lines
2.5 KiB
CSS

/* 关注按钮 */
.follow-btn-wrapper {
display: flex;
align-items: center;
gap: 0.5rem;
margin-top: 0.5rem;
}
.follow-btn {
display: inline-flex;
align-items: center;
gap: .35rem;
padding: .4rem 1rem;
border: 1.5px solid var(--color-accent);
border-radius: 6px;
font-size: .85rem;
font-weight: 600;
cursor: pointer;
transition: all .15s ease;
background: transparent;
color: var(--color-accent);
}
.follow-btn:hover {
background: var(--color-accent);
color: #fff;
}
.follow-btn.following {
background: var(--color-accent);
color: #fff;
}
.follow-btn.following:hover {
background: var(--color-danger, #e74c3c);
border-color: var(--color-danger, #e74c3c);
}
.follow-btn.mutual {
background: var(--color-accent);
color: #fff;
}
.follow-btn.mutual:hover {
background: var(--color-danger, #e74c3c);
border-color: var(--color-danger, #e74c3c);
}
.follow-btn.waiting {
opacity: .6;
pointer-events: none;
}
/* 关注/粉丝链接 */
.follow-links {
display: flex;
gap: 1rem;
margin-top: .35rem;
}
.follow-links a {
color: var(--color-secondary);
font-size: .85rem;
text-decoration: none;
transition: color .15s;
}
.follow-links a:hover {
color: var(--color-accent);
}
.follow-links strong {
color: var(--color-text);
font-weight: 600;
}
/* 用户列表(粉丝/关注页) */
.follow-list-page {
max-width: 700px;
margin: 2rem auto;
padding: 0 1rem;
}
.follow-list-page h1 {
font-size: 1.4rem;
margin-bottom: 1.5rem;
}
.follow-list-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: .8rem 0;
border-bottom: 1px solid var(--color-border, #e5e7eb);
}
.follow-list-item:last-child {
border-bottom: none;
}
.follow-list-user {
display: flex;
align-items: center;
gap: .75rem;
text-decoration: none;
color: var(--color-text);
}
.follow-list-user:hover {
color: var(--color-accent);
}
.follow-list-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
background: var(--color-accent);
color: #fff;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 1rem;
flex-shrink: 0;
}
.follow-list-name {
font-weight: 500;
}
.follow-list-empty {
text-align: center;
color: var(--color-secondary);
padding: 3rem 0;
}
/* 隐私提示 */
.follow-list-private {
text-align: center;
color: var(--color-secondary);
padding: 3rem 0;
}