aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2011-12-22 19:10:32 -0800
committerJacob Thornton <[email protected]>2011-12-22 19:10:32 -0800
commit87ac818253a26bcf09fa55f78ae3f55759c54e64 (patch)
treebdd625edcf424aa977fb7d03f4cfdfcc9ef723f3 /lib
parentefacac0d6c812abffa8a84a48fa760f5f56c92f0 (diff)
downloadbootstrap-87ac818253a26bcf09fa55f78ae3f55759c54e64.tar.xz
bootstrap-87ac818253a26bcf09fa55f78ae3f55759c54e64.zip
change above below to top bottom and add "inside" placement option
Diffstat (limited to 'lib')
-rw-r--r--lib/mixins.less4
-rw-r--r--lib/popovers.less16
-rw-r--r--lib/twipsy.less18
3 files changed, 19 insertions, 19 deletions
diff --git a/lib/mixins.less b/lib/mixins.less
index 0effdfa37..41cf8890d 100644
--- a/lib/mixins.less
+++ b/lib/mixins.less
@@ -283,7 +283,7 @@
// Popover arrows
// For tipsies and popovers
#popoverArrow {
- .above(@arrowWidth: 5px) {
+ .top(@arrowWidth: 5px) {
bottom: 0;
left: 50%;
margin-left: -@arrowWidth;
@@ -299,7 +299,7 @@
border-bottom: @arrowWidth solid transparent;
border-left: @arrowWidth solid @black;
}
- .below(@arrowWidth: 5px) {
+ .bottom(@arrowWidth: 5px) {
top: 0;
left: 50%;
margin-left: -@arrowWidth;
diff --git a/lib/popovers.less b/lib/popovers.less
index ff875eaff..5ecde0923 100644
--- a/lib/popovers.less
+++ b/lib/popovers.less
@@ -8,14 +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(); }
+ &.top { margin-top: -5px; }
+ &.right { margin-left: 5px; }
+ &.bottom { margin-top: 5px; }
+ &.left { margin-left: -5px; }
+ &.top .arrow { #popoverArrow > .top(); }
+ &.right .arrow { #popoverArrow > .right(); }
+ &.bottom .arrow { #popoverArrow > .bottom(); }
+ &.left .arrow { #popoverArrow > .left(); }
.arrow {
position: absolute;
width: 0;
diff --git a/lib/twipsy.less b/lib/twipsy.less
index 05f121a5d..abd0599f4 100644
--- a/lib/twipsy.less
+++ b/lib/twipsy.less
@@ -9,15 +9,15 @@
padding: 5px;
font-size: 11px;
.opacity(0);
- &.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(); }
- &.right .twipsy-arrow { #popoverArrow > .right(); }
+ &.in { .opacity(80); }
+ &.top { margin-top: -2px; }
+ &.right { margin-left: 2px; }
+ &.bottom { margin-top: 2px; }
+ &.left { margin-left: -2px; }
+ &.top .twipsy-arrow { #popoverArrow > .top(); }
+ &.left .twipsy-arrow { #popoverArrow > .left(); }
+ &.bottom .twipsy-arrow { #popoverArrow > .bottom(); }
+ &.right .twipsy-arrow { #popoverArrow > .right(); }
}
.twipsy-inner {
max-width: 200px;