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/less/effects/speech-bubbles/_bubble-float-left.less
2021-08-31 11:30:22 -04:00

30 lines
673 B
Text

/* Bubble Float Left */
.bubble-float-left() {
.hacks();
position: relative;
.prefixed(transition-duration, @mediumDuration);
.prefixed(transition-property, transform);
&:before {
position: absolute;
z-index: -1;
content: '';
top: calc(~"50%" - @tipHeight);
left: 0;
border-style: solid;
border-width: @tipHeight @tipWidth @tipHeight 0;
border-color: transparent @tipColor transparent transparent;
.prefixed(transition-duration, @mediumDuration);
.prefixed(transition-property, transform);
}
&:hover,
&:focus,
&:active {
.prefixed(transform, translateX(@tipWidth));
&:before {
.prefixed(transform, translateX(-(@tipWidth)));
}
}
}