pages/portfolio : style pour les liens

This commit is contained in:
Ahurac 2024-05-23 11:39:20 +02:00
parent 7289773b0c
commit 502e5274a7

View file

@ -42,4 +42,34 @@ figcaption {
p {
line-height: 1.5;
}
a {
position: relative;
text-decoration: none;
color: #ff66ff;
padding: 2px;
transition: color 0.1s;
}
a::before {
content: '';
position: absolute;
width: 100%;
height: 100%;
bottom: 0;
left: 0;
background-color: #ff66ff;
transform: scaleY(0.1);
transition: transform 0.1s ease-out;
transform-origin: bottom;
z-index: -1;
}
a:hover::before {
transform: scaleY(1);
}
a:hover {
color: white;
}
</style>