Hover/scss/effects/_bubble-right.scss

27 lines
550 B
SCSS

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