mirror of
https://github.com/uhIgnacio/igna.rocks.git
synced 2024-08-15 02:23:12 +00:00
36 lines
721 B
SCSS
36 lines
721 B
SCSS
|
/* Radial In */
|
||
|
@mixin radial-in {
|
||
|
@include hacks();
|
||
|
position: relative;
|
||
|
overflow: hidden;
|
||
|
background: $activeColor;
|
||
|
@include prefixed(transition-property, color);
|
||
|
@include prefixed(transition-duration, $mediumDuration);
|
||
|
|
||
|
&:before {
|
||
|
content: "";
|
||
|
position: absolute;
|
||
|
z-index: -1;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
right: 0;
|
||
|
bottom: 0;
|
||
|
background: $primaryColor;
|
||
|
border-radius: 100%;
|
||
|
@include prefixed(transform, scale(2));
|
||
|
@include prefixed(transition-property, transform);
|
||
|
@include prefixed(transition-duration, $mediumDuration);
|
||
|
@include prefixed(transition-timing-function, ease-out);
|
||
|
}
|
||
|
|
||
|
&:hover,
|
||
|
&:focus,
|
||
|
&:active {
|
||
|
color: white;
|
||
|
|
||
|
&:before {
|
||
|
@include prefixed(transform, scale(0));
|
||
|
}
|
||
|
}
|
||
|
}
|