]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fixes #7961 a bit: adds css for extra tooltip placement options. /cc @fat you just...
authorMark Otto <otto@github.com>
Fri, 28 Jun 2013 03:50:00 +0000 (20:50 -0700)
committerMark Otto <otto@github.com>
Fri, 28 Jun 2013 03:50:21 +0000 (20:50 -0700)
docs/assets/css/bootstrap.css
less/tooltip.less

index ec8af9204cd4714bf5870cb1d60fe87de32680e4..bffe638eea7920fce449fe47430223747ca99039 100644 (file)
@@ -3668,6 +3668,20 @@ button.close {
   border-width: 5px 5px 0;
 }
 
+.tooltip.top-left .tooltip-arrow {
+  bottom: 0;
+  left: 5px;
+  border-top-color: rgba(0, 0, 0, 0.9);
+  border-width: 5px 5px 0;
+}
+
+.tooltip.top-right .tooltip-arrow {
+  right: 5px;
+  bottom: 0;
+  border-top-color: rgba(0, 0, 0, 0.9);
+  border-width: 5px 5px 0;
+}
+
 .tooltip.right .tooltip-arrow {
   top: 50%;
   left: 0;
@@ -3692,6 +3706,20 @@ button.close {
   border-width: 0 5px 5px;
 }
 
+.tooltip.bottom-left .tooltip-arrow {
+  top: 0;
+  left: 5px;
+  border-bottom-color: rgba(0, 0, 0, 0.9);
+  border-width: 0 5px 5px;
+}
+
+.tooltip.bottom-right .tooltip-arrow {
+  top: 0;
+  right: 5px;
+  border-bottom-color: rgba(0, 0, 0, 0.9);
+  border-width: 0 5px 5px;
+}
+
 .popover {
   position: absolute;
   top: 0;
index 9dba6f04f21f484414d1f16871e8b13e9d16edda..790eb1cd3e0b5a7d8c9569b308b540c7033e52e5 100644 (file)
     border-width: @tooltip-arrow-width @tooltip-arrow-width 0;
     border-top-color: @tooltip-arrow-color;
   }
+  &.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;
+  }
   &.right .tooltip-arrow {
     top: 50%;
     left: 0;
     border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;
     border-bottom-color: @tooltip-arrow-color;
   }
+  &.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;
+  }
 }