Skip to content

Commit

Permalink
✨ 渐变效果支持
Browse files Browse the repository at this point in the history
  • Loading branch information
snowykami committed Oct 7, 2024
1 parent b560dcc commit 95ddc35
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .vitepress/sugarat/theme/src/components/BlogItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ const resultCover = computed(() => {
.description{
color: var(--vp-c-user-2);
}
.cover-img {
transform: scale(1.05);
}
}
}
Expand Down Expand Up @@ -231,10 +235,12 @@ const resultCover = computed(() => {
width: 120px;
height: 80px;
margin-left: 24px;
border-radius: 2px;
background-repeat: no-repeat;
background-size: contain;
background-position: center;
background-size: cover; // 添加此行
overflow: hidden;
border-radius: 0.5rem;
transition: var(--item-hover-transition);
}
.pc-visible {
Expand Down

0 comments on commit 95ddc35

Please sign in to comment.