@mixin triangle-up($_width, $_height, $_background-color: transparent) {
    $left-right: $_width*0.5;
    $bottom: $_height;
    border-left: $left-right solid transparent;
    border-right: $left-right solid transparent;
    border-bottom: $bottom solid $_background-color;
}

@mixin triangle-down($_width, $_height, $_background-color: transparent) {
    $left-right: $_width*0.5;
    $top: $_height;
    border-left: $left-right solid transparent;
    border-right: $left-right solid transparent;
    border-top: $top solid $_background-color;
}

@mixin triangle-left($_width, $_height, $_background-color: transparent) {
    $top-bottom: $_width*0.5;
    $right: $_height;
    border-top: $top-bottom solid transparent;
    border-bottom: $top-bottom solid transparent;
    border-right: $right solid $_background-color;
}

@mixin triangle-right($_width, $_height, $_background-color: transparent) {
    $top-bottom: $_height*0.5;
    $left: $_width;
    border-top: $top-bottom solid transparent;
    border-bottom: $top-bottom solid transparent;
    border-left: $left solid $_background-color;
}
