Skip to content

Commit

Permalink
Update extra.css
Browse files Browse the repository at this point in the history
  • Loading branch information
Wcowin committed Oct 7, 2023
1 parent b5c4623 commit 9cb23a7
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,7 @@
color: #518FC1; /* 修改字体颜色 */
}

a {
position: relative;
text-decoration: none;
}

a:hover {
color: #000;
}

a::before {
content: "";
position: absolute;
display: inline-block; /* 使伪元素与链接文本一样宽 */
width: 100%;
height: 2px;
bottom: 0;
left: 0;
background-color: #666363;
transform: scaleX(0);
transform-origin: bottom right; /* 指定变换原点为右下角 */
transition: transform 0.3s ease;
}

a:hover::before {
transform: scaleX(1);
transform-origin: bottom left; /* 变换原点为左下角,实现从左到右显示动画 */
}




Expand Down

0 comments on commit 9cb23a7

Please sign in to comment.