用户主页再减层:抽出 page context helper 并清理失效 profile CSS

page-user-home 收成薄壳,tab/统计/分页上下文迁入 aksrt_get_user_home_page_context;同步删除 profile-public-contacts 等失效样式,并让 .user-center 宽度规则落到现用 aksrt-profile 壳层。
This commit is contained in:
kate522 committed 2026-07-10 22:01:09 +08:00
1 parent 9f08c9337a
commit 05ee28ed5b
8 files changed
+183 -193

No files matched your search

-22
View File
@@ -246,21 +246,6 @@
padding-top: 68px;
}
/* 公开主页联系方式(沿用旧选择器) */
.profile-public-contacts {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 10px;
}
.profile-public-contacts .social-icon-link {
color: var(--color-ink);
background: var(--color-line);
}
.profile-public-contacts .social-icon-link:hover {
color: var(--color-ink);
background: var(--color-ink-4);
}
/* 公开主页响应式 */
@media (max-width: 767px) {
@@ -292,9 +277,6 @@
margin-top: 4px;
}
.profile-public-contacts {
justify-content: center;
}
}
@media (max-width: 480px) {
@@ -317,10 +299,6 @@
}
}
/* ==================== 页面标题 ==================== */
.profile-page-title {
margin-bottom: 20px;
}
/* ==================== Dashboard Tabs 计数徽章 ==================== */
.dashboard-tabs__count {
+2 -1
View File
@@ -15,7 +15,8 @@
margin: 0 auto;
}
.user-center {
.user-center,
.aksrt-profile.content-shell {
width: 100%;
padding: 0 0 40px;
}
+2 -1
View File
@@ -195,7 +195,8 @@
}
@media (max-width: 480px) {
.user-center {
.user-center,
.aksrt-profile.content-shell {
padding: 0 12px 32px;
}
-22
View File
@@ -387,28 +387,6 @@
gap: 18px;
}
/* 联系方式增强 */
.aksrt-user-home .profile-public-contacts .social-icon-link {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 6px 12px;
border-radius: 100px;
font-size: 13px;
font-weight: 500;
color: var(--color-ink-2);
background: var(--surface-2);
border: 1px solid var(--color-line-soft, rgba(0,0,0,0.06));
text-decoration: none;
transition: all 0.2s ease;
}
.aksrt-user-home .profile-public-contacts .social-icon-link:hover {
color: var(--color-primary);
background: var(--color-primary-soft);
border-color: var(--color-primary);
transform: translateY(-1px);
}
.aksrt-user-home .aksrt-user-home__layout {
align-items: start;