mirror of
https://github.com/uhIgnacio/igna.rocks.git
synced 2024-08-15 02:23:12 +00:00
36 lines
588 B
Text
36 lines
588 B
Text
/* Ripple In */
|
|
.keyframes(~"@{nameSpace}-ripple-in", {
|
|
100% {
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
opacity: 1;
|
|
}
|
|
});
|
|
|
|
.ripple-in() {
|
|
@outerBorderWidth: 4px;
|
|
@innerBorderWidth: 4px;
|
|
|
|
.hacks();
|
|
position: relative;
|
|
|
|
&:before {
|
|
content: '';
|
|
position: absolute;
|
|
border: @primaryColor solid @outerBorderWidth;
|
|
top: -(6px + 6px);
|
|
right: -(6px + 6px);
|
|
bottom: -(6px + 6px);
|
|
left: -(6px + 6px);
|
|
opacity: 0;
|
|
.prefixed(animation-duration, 1s);
|
|
}
|
|
|
|
&:hover:before,
|
|
&:focus:before,
|
|
&:active:before {
|
|
.prefixed(animation-name, ~"@{nameSpace}-ripple-in");
|
|
}
|
|
}
|