Add hover link to contact element

This commit is contained in:
Andras Schmelczer 2022-09-26 10:48:56 +02:00
parent c9f14cd078
commit 73003b5b17
No known key found for this signature in database
GPG key ID: 0EA1BC97D0AB076E
5 changed files with 33 additions and 22 deletions

View file

@ -36,6 +36,25 @@ $breakpoint-width: 925px !default;
}
}
@mixin title-fragment-link() {
text-decoration: none;
position: relative;
&:before {
content: '#';
position: absolute;
left: -0.5ch;
top: 0;
opacity: 0;
transform: translateX(-100%);
transition: opacity var(--transition-time);
}
&:hover:before {
opacity: 0.5;
}
}
@mixin center-children() {
display: flex;
align-items: center;