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