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;
|
2011-11-17 08:58:36 +01:00
|
|
|
visibility: visible;
|
2013-07-18 08:55:58 +02:00
|
|
|
font-size: @font-size-small;
|
2012-12-26 16:36:07 +01:00
|
|
|
line-height: 1.4;
|
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;
|
|
|
|
text-decoration: none;
|
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;
|
|
|
|
}
|
|
|
|
.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;
|
2013-09-11 15:47:13 +02:00
|
|
|
left: @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;
|
2013-09-11 15:47:13 +02:00
|
|
|
right: @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;
|
2013-09-11 15:47:13 +02:00
|
|
|
left: @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;
|
2013-09-11 15:47:13 +02:00
|
|
|
right: @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
|
|
|
}
|