app/frameworks/twitter/bootstrap/popovers.less in bootstrap_farsi-3.2.0.1 vs app/frameworks/twitter/bootstrap/popovers.less in bootstrap_farsi-3.3.6

- old
+ new

@@ -9,21 +9,22 @@ left: 0; z-index: @zindex-popover; display: none; max-width: @popover-max-width; padding: 1px; - .text-align(left); // Reset given new insertion method + // Our parent element can be arbitrary since popovers are by default inserted as a sibling of their target element. + // So reset our font and text properties to avoid inheriting weird values. + .reset-text(); + font-size: @font-size-base; + background-color: @popover-bg; background-clip: padding-box; border: 1px solid @popover-fallback-border-color; border: 1px solid @popover-border-color; border-radius: @border-radius-large; .box-shadow(0 5px 10px rgba(0,0,0,.2)); - // Overrides for proper insertion - white-space: normal; - // Offset the popover to account for the popover arrow &.top { margin-top: -@popover-arrow-width; } &.right { margin-left: @popover-arrow-width; } &.bottom { margin-top: @popover-arrow-width; } &.left { margin-left: -@popover-arrow-width; } @@ -31,12 +32,10 @@ .popover-title { margin: 0; // reset heading margin padding: 8px 14px; font-size: @font-size-base; - font-weight: normal; - line-height: 18px; background-color: @popover-title-bg; border-bottom: 1px solid darken(@popover-title-bg, 5%); border-radius: (@border-radius-large - 1) (@border-radius-large - 1) 0 0; } @@ -66,11 +65,11 @@ border-width: @popover-arrow-width; content: ""; } .popover { - &.top .arrow { + &.top > .arrow { .left(50%); .margin-left(-@popover-arrow-outer-width); border-bottom-width: 0; border-top-color: @popover-arrow-outer-fallback-color; // IE8 fallback border-top-color: @popover-arrow-outer-color; @@ -96,11 +95,11 @@ bottom: -@popover-arrow-width; border-left-width: 0; border-right-color: @popover-arrow-color; } } - &.bottom .arrow { + &.bottom > .arrow { .left(50%); .margin-left(-@popover-arrow-outer-width); border-top-width: 0; border-bottom-color: @popover-arrow-outer-fallback-color; // IE8 fallback border-bottom-color: @popover-arrow-outer-color; @@ -127,7 +126,6 @@ border-right-width: 0; border-left-color: @popover-arrow-color; bottom: -@popover-arrow-width; } } - }