mirror of
https://github.com/uhIgnacio/igna.rocks.git
synced 2024-08-15 02:23:12 +00:00
34 lines
605 B
SCSS
34 lines
605 B
SCSS
/* Reveal */
|
|
@mixin reveal {
|
|
$duration: #{$fastDuration};
|
|
|
|
@include hacks();
|
|
position: relative;
|
|
overflow: hidden;
|
|
|
|
&:before {
|
|
content: "";
|
|
position: absolute;
|
|
z-index: -1;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
border-color: #{$activeColor};
|
|
border-style: solid;
|
|
border-width: 0;
|
|
@include prefixed(transition-property, border-width);
|
|
@include prefixed(transition-duration, #{$duration});
|
|
@include prefixed(transition-timing-function, ease-out);
|
|
}
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
|
|
&:before {
|
|
@include prefixed(transform, translateY(0));
|
|
border-width: 4px;
|
|
}
|
|
}
|
|
}
|