// Triangle

/**
 * 实心箭头
 * @param  {[type]} @direction: down          方向
 * @param  {[type]} @size:      10px          大小
 * @param  {[type]} @color:     #000          颜色
 * @example .triangle(down, 10px, #0091f4)
 */
.triangle(@direction: down, @size: 10px, @color: #000){
  display: inline-block;
  width: 0;
  height: 0;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}
.triangle(@direction: down, @size: 10px, @color: #000) when (@direction = down){
  border-color: @color transparent transparent transparent;
  border-style: solid dashed dashed dashed;
  border-width: @size @size 0 @size;
}
.triangle(@direction: down, @size: 10px, @color: #000) when(@direction = left){
  border-color: transparent @color transparent transparent;
  border-style: dashed solid dashed dashed;
  border-width: @size @size @size 0;
}
.triangle(@direction: down, @size: 10px, @color: #000) when(@direction = up){
  border-color: transparent transparent @color transparent;
  border-style: dashed dashed solid dashed;
  border-width: 0 @size @size @size;
}
.triangle(@direction: down, @size: 10px, @color: #000) when(@direction = right){
  border-color: transparent transparent transparent @color;
  border-style: dashed dashed dashed solid;
  border-width: @size 0 @size @size;
}
