pages/portfolio : style pour les liens
This commit is contained in:
parent
7289773b0c
commit
502e5274a7
1 changed files with 30 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue