]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
use @popover-arrow-width for offset the popover to account for the popover arrow 12673/head
authorTobias Lindig <tl@cm4all.com>
Mon, 10 Feb 2014 09:57:11 +0000 (10:57 +0100)
committerTobias Lindig <tl@cm4all.com>
Mon, 10 Feb 2014 09:57:11 +0000 (10:57 +0100)
less/popovers.less

index 2a3f37b73100d5dfffb52f40545f37b54994f220..696d74c7d59ded00c5d70b85fa0f46648b61246a 100644 (file)
   white-space: normal;
 
   // Offset the popover to account for the popover arrow
-  &.top     { margin-top: -10px; }
-  &.right   { margin-left: 10px; }
-  &.bottom  { margin-top: 10px; }
-  &.left    { margin-left: -10px; }
+  &.top     { margin-top: -@popover-arrow-width; }
+  &.right   { margin-left: @popover-arrow-width; }
+  &.bottom  { margin-top: @popover-arrow-width; }
+  &.left    { margin-left: -@popover-arrow-width; }
 }
 
 .popover-title {