aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2011-12-20 22:12:23 -0800
committerJacob Thornton <[email protected]>2011-12-20 22:12:23 -0800
commitc4364285e456013c4b66308fea86e0f1fb852817 (patch)
tree9a700649a1cd6071646617c38e1f721bb16c37ee /lib
parent0980a33b4703677e1aaf3cd949c0437512fa6f33 (diff)
downloadbootstrap-c4364285e456013c4b66308fea86e0f1fb852817.tar.xz
bootstrap-c4364285e456013c4b66308fea86e0f1fb852817.zip
add default margin for popover and twipsy
Diffstat (limited to 'lib')
-rw-r--r--lib/popovers.less6
-rw-r--r--lib/twipsy.less8
2 files changed, 10 insertions, 4 deletions
diff --git a/lib/popovers.less b/lib/popovers.less
index 570bc906c..ff875eaff 100644
--- a/lib/popovers.less
+++ b/lib/popovers.less
@@ -8,10 +8,14 @@
z-index: 1000;
display: none;
padding: 5px;
+ &.above { margin-top: -5px; }
+ &.right { margin-left: 5px; }
+ &.below { margin-top: 5px; }
+ &.left { margin-left: -5px; }
&.above .arrow { #popoverArrow > .above(); }
&.right .arrow { #popoverArrow > .right(); }
&.below .arrow { #popoverArrow > .below(); }
- &.left .arrow { #popoverArrow > .left(); }
+ &.left .arrow { #popoverArrow > .left(); }
.arrow {
position: absolute;
width: 0;
diff --git a/lib/twipsy.less b/lib/twipsy.less
index 3fa21fa01..05f121a5d 100644
--- a/lib/twipsy.less
+++ b/lib/twipsy.less
@@ -9,9 +9,11 @@
padding: 5px;
font-size: 11px;
.opacity(0);
- &.in {
- .opacity(80);
- }
+ &.in { .opacity(80); }
+ &.above { margin-top: -2px; }
+ &.right { margin-left: 2px; }
+ &.below { margin-top: 2px; }
+ &.left { margin-left: -2px; }
&.above .twipsy-arrow { #popoverArrow > .above(); }
&.left .twipsy-arrow { #popoverArrow > .left(); }
&.below .twipsy-arrow { #popoverArrow > .below(); }