summaryrefslogtreecommitdiffstats
path: root/css/bootstrap/tooltip.less
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2012-10-05 21:34:54 -0700
committerArun Persaud <arun@nubati.net>2012-10-05 21:38:18 -0700
commit494ee831e66d59afbf02d42ba59b7ba21f61c011 (patch)
tree6fd12684f7486c841ea0d246bafc6bdca6bc7afb /css/bootstrap/tooltip.less
parent197cea7c7d2c60f7ca0e8c40b4413ae331cd432c (diff)
downloade-DoKo-494ee831e66d59afbf02d42ba59b7ba21f61c011.tar.gz
e-DoKo-494ee831e66d59afbf02d42ba59b7ba21f61c011.tar.bz2
e-DoKo-494ee831e66d59afbf02d42ba59b7ba21f61c011.zip
added less, moved bootstrap to less components
Diffstat (limited to 'css/bootstrap/tooltip.less')
-rw-r--r--css/bootstrap/tooltip.less70
1 files changed, 70 insertions, 0 deletions
diff --git a/css/bootstrap/tooltip.less b/css/bootstrap/tooltip.less
new file mode 100644
index 0000000..fba1856
--- /dev/null
+++ b/css/bootstrap/tooltip.less
@@ -0,0 +1,70 @@
+//
+// Tooltips
+// --------------------------------------------------
+
+
+// Base class
+.tooltip {
+ position: absolute;
+ z-index: @zindexTooltip;
+ display: block;
+ visibility: visible;
+ padding: 5px;
+ font-size: 11px;
+ .opacity(0);
+ &.in { .opacity(80); }
+ &.top { margin-top: -3px; }
+ &.right { margin-left: 3px; }
+ &.bottom { margin-top: 3px; }
+ &.left { margin-left: -3px; }
+}
+
+// Wrapper for the tooltip content
+.tooltip-inner {
+ max-width: 200px;
+ padding: 3px 8px;
+ color: @tooltipColor;
+ text-align: center;
+ text-decoration: none;
+ background-color: @tooltipBackground;
+ .border-radius(4px);
+}
+
+// Arrows
+.tooltip-arrow {
+ position: absolute;
+ width: 0;
+ height: 0;
+ 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;
+ }
+}