feat(article-link): replace background div with img tag

This commit is contained in:
ZhenShuo Leo
2025-09-06 15:42:14 +08:00
parent 340364f31a
commit 01b998e070
6 changed files with 104 additions and 116 deletions
+21 -38
View File
@@ -163,34 +163,6 @@ pre {
text-align: left;
}
.thumbnail,
.thumbnail_card,
.thumbnail_card_related,
.thumbnail_card_term,
.single_hero_basic,
.single_hero_background {
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}
.thumbnail {
min-width: 300px;
height: 180px;
}
.thumbnail_card {
height: 200px;
}
.thumbnail_card_related {
height: 150px;
}
.thumbnail_card_term {
height: 150px;
}
.single_hero_round {
max-height: 50vh;
object-fit: cover;
@@ -205,7 +177,27 @@ pre {
height: 100%;
}
.thumbnailshadow {
.thumbnail--card {
min-width: 300px;
height: 200px;
}
.thumbnail--related {
height: 150px;
}
.thumbnail--simple {
width: 300px;
min-height: 180px;
}
@variant max-md {
.thumbnail--simple {
width: 100%;
}
}
.thumbnail-shadow {
box-shadow: 5px 5px 20px 1px rgba(0, 0, 0, 0.3);
}
@@ -224,21 +216,12 @@ pre {
}
@variant sm {
.thumbnail {
min-width: 100%;
height: 180px;
}
.article {
flex-wrap: wrap;
}
}
@variant md {
.thumbnail {
min-width: 300px;
min-height: 180px;
height: auto;
}
.article {
flex-wrap: nowrap;
}