You can set the size, color, position and alignment of caret and border color and border size.
Legal Values:
position -> 'top', 'rigth', 'bottom' and 'left'
align -> 'start', 'middle' and 'end' (also suppor unit measures)
- If the position have vertical disposition also you can use 'top', 'center' and 'bottom'.
- And if the position have horizontal disposition also you can use 'left', 'center' and 'right'.
- Also you can define a distance in the unit measure of you prefer.
- If you need the caret start from bottom position or right position, you have define a negative value.
@author Cristian Ferrari <cristianferrarig@gmail.com> || @energettico
element {
@include caret(
$size: 10px,
$color: #FFF,
$position: left,
$align: center,
$border-size: false,
$border-color: false
);
}
element {
@include caret($size: 10px, $color: #FFF, $position: left, $align: center, $border-size: 1px, $border-color: #DDD);
}
element {
@include caret(10px, #FFF, left, center, 1px, #DDD);
}
element
@include caret($size: 10px, $color: #FFF, $position: left, $align: center, $border-size: 1px, $border-color: #DDD)
element
@include caret(10px, #FFF, left, center, 1px, #DDD)
- 2013/FEB/20
- Fix: Problem with caret position.
- New: function for border color assignment.
- New: mixin for support hover coloring.
- 2013/ENE/31
- Improve: separate readme file.
- New: support SASS syntax.
- 2012/NOV/22:
- Improve: new descriptions.
- New: change log. :-)
- Fixed: change name from carret to caret. :-)
- 2012/NOV/20:
- New: support for align in any unit measure.
- First release.