Skip to content

Commit efd11c6

Browse files
committed
优化标题hover显示
1 parent d30203a commit efd11c6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/views/components/article-card/ArticleCard.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,6 @@
9494
.title {
9595
font-size: 1.5rem;
9696
margin-bottom: 0.5rem;
97-
transition: all 250ms;
98-
&:hover {
99-
transform: scale(1.1);
100-
}
10197
.external-link {
10298
font-size: 0.8em;
10399
}
@@ -155,7 +151,11 @@
155151
156152
.title {
157153
a {
158-
border-bottom-width: 2px;
154+
border-bottom: .1rem solid rgba(0, 0, 0, 0);
155+
transition: all 200ms;
156+
&:hover {
157+
border-bottom-color: @primary-color;
158+
}
159159
}
160160
}
161161

0 commit comments

Comments
 (0)