1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-24 10:37:20 +00:00
TiddlyWiki5/cssbuild/twitter-bootstrap/less/tooltip.less

71 lines
1.6 KiB
Plaintext
Raw Normal View History

2012-10-11 14:58:05 +00:00
//
// Tooltips
// --------------------------------------------------
2012-10-11 14:58:05 +00:00
// Base class
.tooltip {
position: absolute;
z-index: @zindexTooltip;
display: block;
visibility: visible;
padding: 5px;
font-size: 11px;
.opacity(0);
&.in { .opacity(80); }
2012-10-11 14:58:05 +00:00
&.top { margin-top: -3px; }
&.right { margin-left: 3px; }
&.bottom { margin-top: 3px; }
&.left { margin-left: -3px; }
}
2012-10-11 14:58:05 +00:00
// Wrapper for the tooltip content
.tooltip-inner {
max-width: 200px;
padding: 3px 8px;
2012-10-11 14:58:05 +00:00
color: @tooltipColor;
text-align: center;
text-decoration: none;
2012-10-11 14:58:05 +00:00
background-color: @tooltipBackground;
.border-radius(4px);
}
2012-10-11 14:58:05 +00:00
// Arrows
.tooltip-arrow {
position: absolute;
width: 0;
height: 0;
2012-10-11 14:58:05 +00: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;
}
}