A tooltip library implemented in Sass maintained and developed by Eli Gladman. This project was originally created by Đặng Văn Thanh.
bower install tipsy.sass
SCSS
@import "tipsy";
SASS
@import "tipsy"
- Tooltip & Arrow Position
$gravity: nw | n | ne | e | se | s | sw | w
nw
= northwestn
= northne
= northeastse
= southeasts
= southsw
= southwestw
= west
- Tooltip Text Color
$color: HEX | RGB | RGBA | HSL
- Tooltip Background Color
$background: HEX | RGB | RGBA | HSL
- Tooltip Arrow Size
$border-size: px | em | rem
or any unit of length
- Tooltip Border Radius
$border-radius: px | em | rem
or any unit of length
- Tooltip Shadow
$box-shadow: 0px,0px,0px rgba(0,0,0,0.2)
same syntax as the box-shadow css property
<span data-tipsy="sample text that will be displayed in tooltip">foo bar</span>
example one
span {
@include tipsy();
}
example two
span {
@include tipsy(s, #FFF, #000, 5px, 3px);
}
example three
span {
@include tipsy(s, #FFF, #000, 5px, 3px, 2px 2px 5px rgba(0, 0, 0, .50));
}
example one
span
@include tipsy()
example two
span
@include tipsy(s, #FFF, #000, 5px, 3px)
example three
span
@include tipsy(s, #FFF, #000, 5px, 3px, 2px 2px 5px rgba(0, 0, 0, .50))
Feel free to create issues, request features, or submit pull requests.