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-11-30 18:23:13 -05:00
|
|
|
z-index: @zindex-tooltip;
|
2011-11-17 04:28:42 -05:00
|
|
|
display: block;
|
2011-11-17 02:58:36 -05:00
|
|
|
visibility: visible;
|
2013-07-18 02:55:58 -04:00
|
|
|
font-size: @font-size-small;
|
2012-12-26 10:36:07 -05:00
|
|
|
line-height: 1.4;
|
2011-11-20 23:58:04 -05:00
|
|
|
.opacity(0);
|
2013-02-06 01:42:54 -05:00
|
|
|
|
2013-08-06 14:18:53 -04:00
|
|
|
&.in { .opacity(.9); }
|
2013-02-06 01:29:59 -05:00
|
|
|
&.top { margin-top: -3px; padding: 5px 0; }
|
|
|
|
&.right { margin-left: 3px; padding: 0 5px; }
|
|
|
|
&.bottom { margin-top: 3px; padding: 5px 0; }
|
|
|
|
&.left { margin-left: -3px; padding: 0 5px; }
|
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 {
|
2013-07-26 08:04:15 -04:00
|
|
|
max-width: @tooltip-max-width;
|
2011-11-17 02:58:36 -05:00
|
|
|
padding: 3px 8px;
|
2012-11-30 18:40:44 -05:00
|
|
|
color: @tooltip-color;
|
2011-11-17 02:58:36 -05:00
|
|
|
text-align: center;
|
|
|
|
text-decoration: none;
|
2013-03-31 20:19:12 -04:00
|
|
|
background-color: @tooltip-bg;
|
2012-11-30 17:45:25 -05:00
|
|
|
border-radius: @border-radius-base;
|
2011-11-17 02:58:36 -05:00
|
|
|
}
|
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%;
|
2012-11-30 18:40:44 -05:00
|
|
|
margin-left: -@tooltip-arrow-width;
|
|
|
|
border-width: @tooltip-arrow-width @tooltip-arrow-width 0;
|
|
|
|
border-top-color: @tooltip-arrow-color;
|
2012-07-10 01:14:30 -04:00
|
|
|
}
|
2013-06-27 23:50:00 -04:00
|
|
|
&.top-left .tooltip-arrow {
|
|
|
|
bottom: 0;
|
|
|
|
left: 5px;
|
|
|
|
border-width: @tooltip-arrow-width @tooltip-arrow-width 0;
|
|
|
|
border-top-color: @tooltip-arrow-color;
|
|
|
|
}
|
|
|
|
&.top-right .tooltip-arrow {
|
|
|
|
bottom: 0;
|
|
|
|
right: 5px;
|
|
|
|
border-width: @tooltip-arrow-width @tooltip-arrow-width 0;
|
|
|
|
border-top-color: @tooltip-arrow-color;
|
|
|
|
}
|
2012-07-10 01:14:30 -04:00
|
|
|
&.right .tooltip-arrow {
|
|
|
|
top: 50%;
|
|
|
|
left: 0;
|
2012-11-30 18:40:44 -05:00
|
|
|
margin-top: -@tooltip-arrow-width;
|
|
|
|
border-width: @tooltip-arrow-width @tooltip-arrow-width @tooltip-arrow-width 0;
|
|
|
|
border-right-color: @tooltip-arrow-color;
|
2012-07-10 01:14:30 -04:00
|
|
|
}
|
|
|
|
&.left .tooltip-arrow {
|
|
|
|
top: 50%;
|
|
|
|
right: 0;
|
2012-11-30 18:40:44 -05:00
|
|
|
margin-top: -@tooltip-arrow-width;
|
|
|
|
border-width: @tooltip-arrow-width 0 @tooltip-arrow-width @tooltip-arrow-width;
|
|
|
|
border-left-color: @tooltip-arrow-color;
|
2012-07-10 01:14:30 -04:00
|
|
|
}
|
|
|
|
&.bottom .tooltip-arrow {
|
|
|
|
top: 0;
|
|
|
|
left: 50%;
|
2012-11-30 18:40:44 -05:00
|
|
|
margin-left: -@tooltip-arrow-width;
|
|
|
|
border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;
|
|
|
|
border-bottom-color: @tooltip-arrow-color;
|
2012-07-10 01:14:30 -04:00
|
|
|
}
|
2013-06-27 23:50:00 -04:00
|
|
|
&.bottom-left .tooltip-arrow {
|
|
|
|
top: 0;
|
|
|
|
left: 5px;
|
|
|
|
border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;
|
|
|
|
border-bottom-color: @tooltip-arrow-color;
|
|
|
|
}
|
|
|
|
&.bottom-right .tooltip-arrow {
|
|
|
|
top: 0;
|
|
|
|
right: 5px;
|
|
|
|
border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;
|
|
|
|
border-bottom-color: @tooltip-arrow-color;
|
|
|
|
}
|
2011-11-17 02:58:36 -05:00
|
|
|
}
|