Skip to content

Commit 182ba06

Browse files
fix long url hover effect
1 parent fc1b700 commit 182ba06

1 file changed

Lines changed: 8 additions & 15 deletions

File tree

src/styles/global.css

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -131,20 +131,13 @@ mark, strong {
131131
}
132132

133133
article a {
134-
position: relative;
135-
136-
&:hover:after {
137-
right: 0;
138-
}
139-
140-
&:after {
141-
border-radius: 1em;
142-
border-top: .1em solid var(--color-blog-link);
143-
content: "";
144-
position: absolute;
145-
right: 100%;
146-
bottom: .14em;
147-
left: 0;
148-
transition: right .4s cubic-bezier(0,.5,0,1);
134+
background-image: linear-gradient(var(--color-blog-link), var(--color-blog-link));
135+
background-size: 0% .1em;
136+
background-position: left bottom .14em;
137+
background-repeat: no-repeat;
138+
transition: background-size .4s cubic-bezier(0,.5,0,1);
139+
140+
&:hover {
141+
background-size: 100% .1em;
149142
}
150143
}

0 commit comments

Comments
 (0)