sass Scss useful mixins Tooltip pointer example


Example

$color-purple-bg: #AF6EC4;
$color-purple-border: #5D0C66;

    
$color-yellow-bg: #E8CB48;
$color-yellow-border: #757526;

.tooltip {
    position: relative;
    
    &--arrow-down {
        @include pointer('bottom', 30px, ($color-purple-border, $color-purple-bg), 15px);
    }
    
    &--arrow-right {
        @include pointer('right', 60px, ($color-yellow-border, $color-yellow-bg), 15px);
    }
}