1
0
Fork 0
mirror of https://github.com/uhIgnacio/igna.rocks.git synced 2024-08-15 02:23:12 +00:00
igna.rocks/assets/js/scss/effects/border-transitions/_outline-out.scss

30 lines
656 B
SCSS
Raw Normal View History

2021-08-31 15:30:22 +00:00
/* Outline Out */
@mixin outline-out {
$outerBorderWidth: 4px;
$innerBorderWidth: 4px;
@include hacks();
position: relative;
&:before {
content: '';
position: absolute;
border: $primaryColor solid $outerBorderWidth;
top: 0;
right: 0;
bottom: 0;
left: 0;
@include prefixed(transition-duration, .3s);
@include prefixed(transition-property, "top, right, bottom, left");
}
&:hover:before,
&:focus:before,
&:active:before {
top: -($outerBorderWidth + $innerBorderWidth);
right: -($outerBorderWidth + $innerBorderWidth);
bottom: -($outerBorderWidth + $innerBorderWidth);
left: -($outerBorderWidth + $innerBorderWidth);
}
}