fix(user-center): match reference hover/focus interaction on sidebar statistics
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
cfe806728d
commit
5d83a81b31
1 file changed
+10
-3
@@ -391,7 +391,8 @@ body.aksrt-user-center .uc-content,
|
|||||||
|
|
||||||
/* 文章 / 评论 / 收藏 / 粉丝:1:1 参考主题 zib_user_center_page_sidebar_statistics()。
|
/* 文章 / 评论 / 收藏 / 粉丝:1:1 参考主题 zib_user_center_page_sidebar_statistics()。
|
||||||
参考主题没有给 .user-statistics-item 写专门样式,外观全部来自 zib-widget padding-10
|
参考主题没有给 .user-statistics-item 写专门样式,外观全部来自 zib-widget padding-10
|
||||||
与 em14 / em09 opacity5 mt6;链接只继承正文色,无 hover 变色。 */
|
与 em14 / em09 opacity5 mt6;链接交互来自全局 a / a:hover 与 a[href] 过渡:
|
||||||
|
常态正文色,悬停/聚焦切到 --focus-color,color 0.2s 过渡,无下划线、无 outline。 */
|
||||||
.uc-sidebar-statistics.zib-widget {
|
.uc-sidebar-statistics.zib-widget {
|
||||||
clear: both;
|
clear: both;
|
||||||
line-height: 1.42857143;
|
line-height: 1.42857143;
|
||||||
@@ -406,10 +407,16 @@ body.aksrt-user-center .uc-content,
|
|||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.uc-sidebar-statistics > .user-statistics-item,
|
.uc-sidebar-statistics > .user-statistics-item {
|
||||||
|
color: var(--main-color);
|
||||||
|
text-decoration: none;
|
||||||
|
transition: color 0.2s, background 0.3s, opacity 0.3s, box-shadow 0.3s, transform 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
.uc-sidebar-statistics > .user-statistics-item:hover,
|
.uc-sidebar-statistics > .user-statistics-item:hover,
|
||||||
.uc-sidebar-statistics > .user-statistics-item:focus {
|
.uc-sidebar-statistics > .user-statistics-item:focus {
|
||||||
color: inherit;
|
color: var(--focus-color, #f04494);
|
||||||
|
outline: 0;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user