fix(widgets): restore hot-posts rank badge position per reference

Remove unscoped .img-badge top/left overrides from post-card.css and its
build aggregates that hijacked the reference-parity rules in main.css
(top:.6em / .hot-posts left:-15px). Also drop dead .widget-hot-posts
legacy blocks with no remaining markup references.
This commit is contained in:
kate522 committed 2026-09-19 13:31:36 +08:00
1 parent ae626ba1c8
commit dc6bf34262
4 files changed
+7 -89

No files matched your search

+3 -9
View File
@@ -471,15 +471,9 @@
width: calc(33.333% - 11px) !important;
}
.img-badge {
position: absolute;
top: 8px;
z-index: 2;
}
.img-badge.left {
left: 8px;
}
/* img-badge 定位由 main.css 的参考主题规则拥有(.img-badge top:.6em /
* .img-badge.left left:0 / .hot-posts .img-badge left:-15px)。
* 此前这里存在 top:8px/left:8px 的全局覆盖,导致热榜 TOP 徽章与参考主题错位。 */
@media (min-width: 992px) {
.fluid-widget-wrap .posts-item.card,