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/speech-bubbles/_bubble-right.scss
2021-08-31 11:30:22 -04:00

25 lines
582 B
SCSS

/* Bubble Right */
@mixin bubble-right {
@include hacks();
position: relative;
&:before {
pointer-events: none;
position: absolute;
z-index: -1;
content: '';
border-style: solid;
@include prefixed(transition-duration, $mediumDuration);
@include prefixed(transition-property, transform);
top: calc(50% - #{$tipHeight});
right: 0;
border-width: $tipHeight 0 $tipHeight $tipWidth;
border-color: transparent transparent transparent $tipColor;
}
&:hover:before,
&:focus:before,
&:active:before {
@include prefixed(transform, translateX($tipWidth));
}
}