style: 更新卡片封面样式并移除圆角设计
生产环境部署 - BlogFlare 至 Cloudflare Pages / 构建与自动化上线 (push) Successful in 2m5s

This commit is contained in:
seahi committed 2026-08-06 08:57:02 +08:00
1 parent 1667c5ef9e
commit 7a3a44b01e
1 file changed
+18 -7
+18 -7
View File
@@ -323,6 +323,15 @@ body.single-col .post-list {
border-bottom: 2px solid var(--text-color); border-bottom: 2px solid var(--text-color);
transition: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) border-color; transition: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) border-color;
} }
.card.has-cover {
padding-top: 0;
padding-left: 0;
padding-right: 0;
}
.card.has-cover .content-wrap {
padding-left: 20px;
padding-right: 20px;
}
.card-link:hover .card { .card-link:hover .card {
border-color: var(--accent-color); border-color: var(--accent-color);
} }
@@ -1212,16 +1221,18 @@ footer section p:first-child {
border-bottom: 1px dashed var(--line-color, rgba(0,0,0,0.1)); border-bottom: 1px dashed var(--line-color, rgba(0,0,0,0.1));
} }
@media screen and (min-width: 767px) {
.card .post-cover {
border-bottom: 2px solid var(--text-color);
}
}
.post-cover img { .post-cover img {
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: cover; object-fit: cover;
display: block; display: block;
transition: transform 0.5s ease; border-radius: 0;
}
.card-link:hover .post-cover img {
transform: scale(1.03);
} }
.article-content.has-cover .content-wrap { .article-content.has-cover .content-wrap {
@@ -1231,10 +1242,10 @@ footer section p:first-child {
.detail-cover { .detail-cover {
height: 400px; height: 400px;
border-bottom: none; border-bottom: none;
border-radius: 8px; border-radius: 0;
margin-bottom: 30px; margin-bottom: 30px;
} }
.detail-cover img { .detail-cover img {
border-radius: 8px; border-radius: 0;
} }