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:
@@ -472,15 +472,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,
|
||||
@@ -724,41 +718,6 @@
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
/* 热门文章 widget */
|
||||
.widget-hot-posts .hot-post-item {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
padding: 8px 0;
|
||||
border-bottom: 1px solid var(--color-line-soft, rgba(0, 0, 0, 0.03));
|
||||
}
|
||||
|
||||
.widget-hot-posts .hot-post-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.widget-hot-posts .hot-post-item__thumb {
|
||||
width: 60px;
|
||||
height: 45px;
|
||||
border-radius: 4px;
|
||||
object-fit: cover;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.widget-hot-posts .hot-post-item__title {
|
||||
font-size: 13px;
|
||||
color: var(--color-ink, #333);
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.widget-hot-posts .hot-post-item__meta {
|
||||
font-size: 11px;
|
||||
color: var(--color-ink-4, #999);
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
/* 侧边栏响应式 — width/float 由 layout.css 的 --sidebar-width + site-layout-* 拥有。
|
||||
* 禁止在这里硬编码 280px(会与 content-layout gutter 失配导致叠层/空隙)。 */
|
||||
@media (max-width: 991px) {
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -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,
|
||||
|
||||
@@ -94,41 +94,6 @@
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
/* 热门文章 widget */
|
||||
.widget-hot-posts .hot-post-item {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
padding: 8px 0;
|
||||
border-bottom: 1px solid var(--color-line-soft, rgba(0, 0, 0, 0.03));
|
||||
}
|
||||
|
||||
.widget-hot-posts .hot-post-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.widget-hot-posts .hot-post-item__thumb {
|
||||
width: 60px;
|
||||
height: 45px;
|
||||
border-radius: 4px;
|
||||
object-fit: cover;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.widget-hot-posts .hot-post-item__title {
|
||||
font-size: 13px;
|
||||
color: var(--color-ink, #333);
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.widget-hot-posts .hot-post-item__meta {
|
||||
font-size: 11px;
|
||||
color: var(--color-ink-4, #999);
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
/* 侧边栏响应式 — width/float 由 layout.css 的 --sidebar-width + site-layout-* 拥有。
|
||||
* 禁止在这里硬编码 280px(会与 content-layout gutter 失配导致叠层/空隙)。 */
|
||||
@media (max-width: 991px) {
|
||||
|
||||
Reference in New Issue
Block a user