Change hover animation of text links

This commit is contained in:
2023-04-22 17:47:20 +02:00
parent dd7a35e5e0
commit 83399330a9

View File

@@ -4,11 +4,27 @@
// $font-size-root: 20px; // $font-size-root: 20px;
p a { p a {
color: rgb(var(--v-theme-primary)) !important; color: rgb(var(--v-theme-primary));
text-decoration: none !important; text-decoration: none;
position: relative;
&:hover { &:before {
text-decoration: underline !important; content: '';
position: absolute;
width: 100%;
height: 2px;
border-radius: 2px;
background-color: rgb(var(--v-theme-primary));
bottom: 0;
left: 0;
transform-origin: right;
transform: scaleX(0);
transition: transform .3s ease-in-out;
}
&:hover::before {
transform-origin: left;
transform: scaleX(1);
} }
} }