Animate hover on shareon icons
This commit is contained in:
parent
a0a3631ac0
commit
18ac4f9fbb
3 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,11 @@
|
||||||
.shareon-container {
|
.shareon-container {
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
|
|
||||||
|
.shareon {
|
||||||
|
& > a,
|
||||||
|
& > button {
|
||||||
|
transition-property: opacity;
|
||||||
|
transition-duration: $link-hover-duration;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
$dark-mode-background: $dark;
|
$dark-mode-background: $dark;
|
||||||
$dark-mode-text: $grey-lighter;
|
$dark-mode-text: $grey-lighter;
|
||||||
|
$link-hover-duration: 0.25s;
|
||||||
|
|
|
@ -40,7 +40,7 @@ main {
|
||||||
|
|
||||||
a {
|
a {
|
||||||
transition-property: color, background-color;
|
transition-property: color, background-color;
|
||||||
transition-duration: 0.25s !important;
|
transition-duration: $link-hover-duration !important;
|
||||||
|
|
||||||
@include dark-mode {
|
@include dark-mode {
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|
Loading…
Reference in a new issue