feat(frontend): restore the posts count badge and drop dead vipbg-v1 rules
统计行补回「文章」徽章。上一轮按「项目不做帖子」的要求把它删掉了,现在这个判断反过来了,于是恢复:位置回到参考主题的顺序(文章在最前),计数仍走 count_user_posts,图标改用全局 FA5+ 的 fa-file-alt,与其余徽章(评论 / 点赞 / 人气)保持一致。 删掉 main.css 里 .vipbg-v1 与 .vipbg-v1:before 两条死规则。全站没有任何地方使用这个类,而且 :before 里的 f006 是 FA4 码位,在 FA5 中映射不到任何字形,留着只会让人以为水印能出来。 两个契约测试里原本断言统计行不输出文章徽章,改回断言输出,并补上 fa-file-alt 的校验。 重建 main.min.css;public bundle 本次未变,因为它打包的 header-userbox.css 没有改动。573 项契约测试全部通过。
This commit is contained in:
@@ -5944,16 +5944,6 @@ body:has(.modal.in) .float-btn,
|
||||
opacity: 0.06;
|
||||
}
|
||||
|
||||
.vipbg-v1 {
|
||||
background: linear-gradient(60deg, #f0bf81 0, #fdefd6 30%, #f2deb9 40%, #fdc277 80%, #f9e1b7 100%);
|
||||
color: #8c5728;
|
||||
--this-color: #8c5728;
|
||||
}
|
||||
|
||||
.vipbg-v1:before {
|
||||
content: '\f006';
|
||||
}
|
||||
|
||||
.vip-texticon {
|
||||
font-size: 0.85em;
|
||||
background: transparent;
|
||||
|
||||
Reference in New Issue
Block a user