diff options
| author | Jacob Thornton <[email protected]> | 2012-01-11 21:42:55 -0800 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2012-01-11 21:42:55 -0800 |
| commit | 6f2f947a4309a8fdeb7067612447c0f1a15dcfd9 (patch) | |
| tree | d634c55bd53f807a4c6d5265462bcf1b03cbfe24 /lib/tooltip.less | |
| parent | 51e4e77034e14074cb442138e84b98efd288ccfd (diff) | |
| download | bootstrap-6f2f947a4309a8fdeb7067612447c0f1a15dcfd9.tar.xz bootstrap-6f2f947a4309a8fdeb7067612447c0f1a15dcfd9.zip | |
add build tool for js + rename twipsy to tooltip + lots of little doc cleanup
Diffstat (limited to 'lib/tooltip.less')
| -rw-r--r-- | lib/tooltip.less | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/tooltip.less b/lib/tooltip.less new file mode 100644 index 000000000..b21c6bb7a --- /dev/null +++ b/lib/tooltip.less @@ -0,0 +1,35 @@ +// TOOLTIP +// ------= + +.tooltip { + position: absolute; + z-index: @zindexTooltip; + display: block; + visibility: visible; + padding: 5px; + font-size: 11px; + .opacity(0); + &.in { .opacity(80); } + &.top { margin-top: -2px; } + &.right { margin-left: 2px; } + &.bottom { margin-top: 2px; } + &.left { margin-left: -2px; } + &.top .tooltip-arrow { #popoverArrow > .top(); } + &.left .tooltip-arrow { #popoverArrow > .left(); } + &.bottom .tooltip-arrow { #popoverArrow > .bottom(); } + &.right .tooltip-arrow { #popoverArrow > .right(); } +} +.tooltip-inner { + max-width: 200px; + padding: 3px 8px; + color: white; + text-align: center; + text-decoration: none; + background-color: @black; + .border-radius(4px); +} +.tooltip-arrow { + position: absolute; + width: 0; + height: 0; +} |
