Files
PocketSharp/PocketSharp.Website/Assets/Stylesheets/Mixins/_triangle.scss
T

34 lines
778 B
SCSS
Raw Normal View History

2013-07-09 21:25:10 +02:00
@mixin triangle($triangle-size, $triangle-color, $triangle-direction)
{
&:after
{
content: " ";
display: block;
width: 0;
height: 0;
border: inset $triangle-size;
@if ($triangle-direction == top)
{
border-color: $triangle-color transparent transparent transparent;
border-top-style: solid;
}
@if ($triangle-direction == bottom)
{
border-color: transparent transparent $triangle-color transparent;
border-bottom-style: solid;
}
@if ($triangle-direction == left)
{
border-color: transparent transparent transparent $triangle-color;
border-left-style: solid;
}
@if ($triangle-direction == right)
{
border-color: transparent $triangle-color transparent transparent;
border-right-style: solid;
}
@content;
}
}