diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 201d1f8426..0538e4b01a 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -5109,7 +5109,7 @@ input[type="submit"].btn.btn-mini { } .popover.top { - margin-bottom: 10px; + margin-top: -10px; } .popover.right { @@ -5121,7 +5121,7 @@ input[type="submit"].btn.btn-mini { } .popover.left { - margin-right: 10px; + margin-left: -10px; } .popover-title { diff --git a/docs/javascript.html b/docs/javascript.html index a0c707b8d3..6c028e01e5 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -925,6 +925,16 @@ $('a[data-toggle="tab"]').on('shown', function (e) { Click to toggle popover +

Four directions

+
+ +
+
diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index 2cdb172db5..b707ebe20e 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -855,6 +855,16 @@ $('a[data-toggle="tab"]').on('shown', function (e) { {{_i}}Click to toggle popover{{/i}} +

{{_i}}Four directions{{/i}}

+
+ +
{{! /example }} +
diff --git a/less/popovers.less b/less/popovers.less index 2b3f1b0599..a4c4bb0e07 100644 --- a/less/popovers.less +++ b/less/popovers.less @@ -21,10 +21,10 @@ .box-shadow(0 5px 10px rgba(0,0,0,.2)); // Offset the popover to account for the popover arrow - &.top { margin-bottom: 10px; } + &.top { margin-top: -10px; } &.right { margin-left: 10px; } &.bottom { margin-top: 10px; } - &.left { margin-right: 10px; } + &.left { margin-left: -10px; } }