Hover/scss/effects/_bubble-left.scss

27 lines
544 B
SCSS

/* Bubble Left */
@mixin bubble-left {
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, left);
top: calc(50% - #{$tipHeight});
left: 0;
border-width: $tipHeight $tipWidth $tipHeight 0;
border-color: transparent $tipColour transparent transparent;
}
&:hover:before,
&:focus:before,
&:active:before {
left: -($tipWidth);
}
}