An easy mixin to create a triangle in CSS3 with LESS.
.triangle(@direction, @size, @color)
- @direction defines the direction:
up
,down
,left
orright
. - @size defines the size
- @color defines the color
.dropdown {
&:after {
.triangle(down, 5px, #fff);
}
}