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-12-01 00:23:13 +01:00
|
|
|
z-index: @zindex-tooltip;
|
2011-11-17 10:28:42 +01:00
|
|
|
display: block;
|
2015-03-16 22:48:49 +01:00
|
|
|
// Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
|
|
|
|
// So reset our font and text properties to avoid inheriting weird values.
|
|
|
|
.reset-text();
|
2013-07-18 08:55:58 +02:00
|
|
|
font-size: @font-size-small;
|
2015-03-16 22:48:49 +01:00
|
|
|
|
2011-11-21 05:58:04 +01:00
|
|
|
.opacity(0);
|
2013-02-06 07:42:54 +01:00
|
|
|
|
2013-12-15 06:43:08 +01:00
|
|
|
&.in { .opacity(@tooltip-opacity); }
|
2013-09-11 15:47:13 +02:00
|
|
|
&.top { margin-top: -3px; padding: @tooltip-arrow-width 0; }
|
|
|
|
&.right { margin-left: 3px; padding: 0 @tooltip-arrow-width; }
|
|
|
|
&.bottom { margin-top: 3px; padding: @tooltip-arrow-width 0; }
|
|
|
|
&.left { margin-left: -3px; padding: 0 @tooltip-arrow-width; }
|
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 {
|
2013-07-26 14:04:15 +02:00
|
|
|
max-width: @tooltip-max-width;
|
2011-11-17 08:58:36 +01:00
|
|
|
padding: 3px 8px;
|
2012-12-01 00:40:44 +01:00
|
|
|
color: @tooltip-color;
|
2011-11-17 08:58:36 +01:00
|
|
|
text-align: center;
|
2013-04-01 02:19:12 +02:00
|
|
|
background-color: @tooltip-bg;
|
2012-11-30 23:45:25 +01:00
|
|
|
border-radius: @border-radius-base;
|
2011-11-17 08:58:36 +01:00
|
|
|
}
|
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;
|
|
|
|
}
|
2014-11-05 00:09:56 +01:00
|
|
|
// Note: Deprecated .top-left, .top-right, .bottom-left, and .bottom-right as of v3.3.1
|
2012-07-10 07:14:30 +02:00
|
|
|
.tooltip {
|
|
|
|
&.top .tooltip-arrow {
|
|
|
|
bottom: 0;
|
|
|
|
left: 50%;
|
2012-12-01 00:40:44 +01:00
|
|
|
margin-left: -@tooltip-arrow-width;
|
|
|
|
border-width: @tooltip-arrow-width @tooltip-arrow-width 0;
|
|
|
|
border-top-color: @tooltip-arrow-color;
|
2012-07-10 07:14:30 +02:00
|
|
|
}
|
2013-06-28 05:50:00 +02:00
|
|
|
&.top-left .tooltip-arrow {
|
|
|
|
bottom: 0;
|
2014-10-30 16:33:14 +01:00
|
|
|
right: @tooltip-arrow-width;
|
|
|
|
margin-bottom: -@tooltip-arrow-width;
|
2013-06-28 05:50:00 +02:00
|
|
|
border-width: @tooltip-arrow-width @tooltip-arrow-width 0;
|
|
|
|
border-top-color: @tooltip-arrow-color;
|
|
|
|
}
|
|
|
|
&.top-right .tooltip-arrow {
|
|
|
|
bottom: 0;
|
2014-10-30 16:33:14 +01:00
|
|
|
left: @tooltip-arrow-width;
|
|
|
|
margin-bottom: -@tooltip-arrow-width;
|
2013-06-28 05:50:00 +02:00
|
|
|
border-width: @tooltip-arrow-width @tooltip-arrow-width 0;
|
|
|
|
border-top-color: @tooltip-arrow-color;
|
|
|
|
}
|
2012-07-10 07:14:30 +02:00
|
|
|
&.right .tooltip-arrow {
|
|
|
|
top: 50%;
|
|
|
|
left: 0;
|
2012-12-01 00:40:44 +01: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 07:14:30 +02:00
|
|
|
}
|
|
|
|
&.left .tooltip-arrow {
|
|
|
|
top: 50%;
|
|
|
|
right: 0;
|
2012-12-01 00:40:44 +01: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 07:14:30 +02:00
|
|
|
}
|
|
|
|
&.bottom .tooltip-arrow {
|
|
|
|
top: 0;
|
|
|
|
left: 50%;
|
2012-12-01 00:40:44 +01:00
|
|
|
margin-left: -@tooltip-arrow-width;
|
|
|
|
border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;
|
|
|
|
border-bottom-color: @tooltip-arrow-color;
|
2012-07-10 07:14:30 +02:00
|
|
|
}
|
2013-06-28 05:50:00 +02:00
|
|
|
&.bottom-left .tooltip-arrow {
|
|
|
|
top: 0;
|
2014-10-30 16:33:14 +01:00
|
|
|
right: @tooltip-arrow-width;
|
|
|
|
margin-top: -@tooltip-arrow-width;
|
2013-06-28 05:50:00 +02:00
|
|
|
border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;
|
|
|
|
border-bottom-color: @tooltip-arrow-color;
|
|
|
|
}
|
|
|
|
&.bottom-right .tooltip-arrow {
|
|
|
|
top: 0;
|
2014-10-30 16:33:14 +01:00
|
|
|
left: @tooltip-arrow-width;
|
|
|
|
margin-top: -@tooltip-arrow-width;
|
2013-06-28 05:50:00 +02:00
|
|
|
border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;
|
|
|
|
border-bottom-color: @tooltip-arrow-color;
|
|
|
|
}
|
2011-11-17 08:58:36 +01:00
|
|
|
}
|