feat: 帖子收藏与用户关注
- 新增收藏功能:favorite 服务与 handler、FavoriteButton 组件 - 新增关注功能:follow 服务与 handler、FollowButton 组件 - 用户主页适配关注/粉丝与收藏展示 - flash 消息工具、广告与侧边栏组件微调
This commit is contained in:
@@ -364,7 +364,7 @@ html[data-lv-fx="off"] .lv-text {
|
||||
line-height: 1.4;
|
||||
letter-spacing: 0.01em;
|
||||
pointer-events: none;
|
||||
white-space: normal;
|
||||
white-space: pre-line;
|
||||
overflow-wrap: anywhere;
|
||||
color: var(--accent);
|
||||
background: color-mix(in srgb, var(--accent) 10%, var(--panel));
|
||||
@@ -7252,6 +7252,27 @@ a.j13-mention-token:hover {
|
||||
transform: none;
|
||||
}
|
||||
|
||||
/* 自助推广:购买广告位胶囊按钮 */
|
||||
.j13-ad-buy-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 2px 11px;
|
||||
border-radius: 999px;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
line-height: 1.5;
|
||||
white-space: nowrap;
|
||||
color: var(--accent);
|
||||
background: color-mix(in srgb, var(--accent-soft) 70%, var(--panel));
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
|
||||
transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
|
||||
}
|
||||
.j13-ad-buy-btn:hover {
|
||||
background: var(--accent);
|
||||
color: var(--accent-on);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
/* 自助推广侧栏占位:空槽可点去购买 */
|
||||
.j13-ad-slot {
|
||||
display: flex;
|
||||
@@ -9112,6 +9133,16 @@ html.j13-reduce-chrome .j13-att-card.is-fresh {
|
||||
}
|
||||
.j13-fade-up { animation: j13-fade-up 0.2s ease-out both; }
|
||||
|
||||
/* 深链/目录跳转落点高亮:先铺主题色浅底再渐隐(lib/flash.ts 挂载,超时自动摘除) */
|
||||
@keyframes j13-flash-fade {
|
||||
from { background-color: var(--accent-soft); }
|
||||
to { background-color: transparent; }
|
||||
}
|
||||
.j13-flash-target {
|
||||
animation: j13-flash-fade 1.8s ease-out both;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
/* 跳到主内容 */
|
||||
.skip-link {
|
||||
position: fixed;
|
||||
|
||||
Reference in New Issue
Block a user