use hover underline style instead of transform for home page links

This commit is contained in:
Reorx 2022-04-21 14:46:25 +08:00
parent 33c1ba12e2
commit a10cac8183
2 changed files with 10 additions and 5 deletions

View File

@ -39,14 +39,17 @@
padding: var(--gap);
background: var(--entry);
border-radius: var(--radius);
transition: transform 0.1s;
border: 1px solid var(--border);
}
.post-entry:active {
transform: scale(0.97);
.post-entry:hover .entry-header h2 {
color: var(--link-hover-color);
box-shadow: var(--link-hover-underline-shadow);
}
/* .post-entry:active {
transform: scale(0.97);
} */
.tag-entry .entry-cover {
display: none;
}
@ -54,6 +57,8 @@
.entry-header h2 {
font-size: 24px;
line-height: 1.3;
transition: all 0.3s ease;
display: inline-block;
}
.entry-content {

View File

@ -19,7 +19,7 @@
--link-color: var(--primary);
--link-hover-color: #573eaa;
--link-underline-shadow: 0 1px 0 var(--link-color);
--link-hover-underline-color: #573eaa;
--link-hover-underline-color: #6549c0;
--link-hover-underline-shadow: 0 2px 0 var(--link-hover-underline-color);
}