Skip to content

Instantly share code, notes, and snippets.

@motrdevua
Last active February 12, 2021 19:29
Show Gist options
  • Save motrdevua/a5343672f98ee168e0de14d6c64b91cb to your computer and use it in GitHub Desktop.
Save motrdevua/a5343672f98ee168e0de14d6c64b91cb to your computer and use it in GitHub Desktop.
mixin_icon-halo
@mixin icon-halo($radius, $color) {
position: relative;
border-radius: $radius;
transition: all .2s ease-in-out;
&::before {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: $radius;
box-shadow: 0 0 1px 1px $color;
content: "";
opacity: 0;
transition: all .2s ease-in-out;
}
&:hover::before {
opacity: 1;
transition: all .2s ease-in-out;
-webkit-transform: scale(1.15);
transform: scale(1.15);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment