2012-06-29 00:46:45 -04:00
|
|
|
//
|
|
|
|
// Tooltips
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2011-11-17 02:58:36 -05:00
|
|
|
|
2012-07-10 01:14:30 -04:00
|
|
|
// Base class
|
2012-01-12 00:42:55 -05:00
|
|
|
.tooltip {
|
2011-11-17 02:58:36 -05:00
|
|
|
position: absolute;
|
2012-01-12 00:42:55 -05:00
|
|
|
z-index: @zindexTooltip;
|
2011-11-17 04:28:42 -05:00
|
|
|
display: block;
|
2011-11-17 02:58:36 -05:00
|
|
|
visibility: visible;
|
|
|
|
padding: 5px;
|
|
|
|
font-size: 11px;
|
2011-11-20 23:58:04 -05:00
|
|
|
.opacity(0);
|
2011-12-22 22:10:32 -05:00
|
|
|
&.in { .opacity(80); }
|
2012-07-10 01:14:30 -04:00
|
|
|
&.top { margin-top: -3px; }
|
|
|
|
&.right { margin-left: 3px; }
|
|
|
|
&.bottom { margin-top: 3px; }
|
|
|
|
&.left { margin-left: -3px; }
|
2011-11-17 02:58:36 -05:00
|
|
|
}
|
2012-07-10 01:14:30 -04:00
|
|
|
|
|
|
|
// Wrapper for the tooltip content
|
2012-01-12 00:42:55 -05:00
|
|
|
.tooltip-inner {
|
2011-11-17 04:28:42 -05:00
|
|
|
max-width: 200px;
|
2011-11-17 02:58:36 -05:00
|
|
|
padding: 3px 8px;
|
2012-07-10 03:36:21 -04:00
|
|
|
color: @tooltipColor;
|
2011-11-17 02:58:36 -05:00
|
|
|
text-align: center;
|
|
|
|
text-decoration: none;
|
2012-07-10 03:36:21 -04:00
|
|
|
background-color: @tooltipBackground;
|
2011-11-17 02:58:36 -05:00
|
|
|
.border-radius(4px);
|
|
|
|
}
|
2012-07-10 01:14:30 -04:00
|
|
|
|
|
|
|
// Arrows
|
2012-01-12 00:42:55 -05:00
|
|
|
.tooltip-arrow {
|
2011-11-17 02:58:36 -05:00
|
|
|
position: absolute;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
2012-07-10 01:14:30 -04:00
|
|
|
border-color: transparent;
|
|
|
|
border-style: solid;
|
|
|
|
}
|
|
|
|
.tooltip {
|
|
|
|
&.top .tooltip-arrow {
|
|
|
|
bottom: 0;
|
|
|
|
left: 50%;
|
|
|
|
margin-left: -@tooltipArrowWidth;
|
|
|
|
border-width: @tooltipArrowWidth @tooltipArrowWidth 0;
|
|
|
|
border-top-color: @tooltipArrowColor;
|
|
|
|
}
|
|
|
|
&.right .tooltip-arrow {
|
|
|
|
top: 50%;
|
|
|
|
left: 0;
|
|
|
|
margin-top: -@tooltipArrowWidth;
|
|
|
|
border-width: @tooltipArrowWidth @tooltipArrowWidth @tooltipArrowWidth 0;
|
|
|
|
border-right-color: @tooltipArrowColor;
|
|
|
|
}
|
|
|
|
&.left .tooltip-arrow {
|
|
|
|
top: 50%;
|
|
|
|
right: 0;
|
|
|
|
margin-top: -@tooltipArrowWidth;
|
|
|
|
border-width: @tooltipArrowWidth 0 @tooltipArrowWidth @tooltipArrowWidth;
|
|
|
|
border-left-color: @tooltipArrowColor;
|
|
|
|
}
|
|
|
|
&.bottom .tooltip-arrow {
|
|
|
|
top: 0;
|
|
|
|
left: 50%;
|
|
|
|
margin-left: -@tooltipArrowWidth;
|
|
|
|
border-width: 0 @tooltipArrowWidth @tooltipArrowWidth;
|
|
|
|
border-bottom-color: @tooltipArrowColor;
|
|
|
|
}
|
2011-11-17 02:58:36 -05:00
|
|
|
}
|