aboutsummaryrefslogtreecommitdiff
path: root/less/tooltip.less
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2015-03-16 14:48:49 -0700
committerChris Rebert <[email protected]>2015-04-08 00:52:10 -0700
commit5359cb805439a6e3179fdd46d2fb009babd0f01b (patch)
treed3c5a6da3835c218449639b883b5108d4c56b0eb /less/tooltip.less
parent1bc9fb626c7f1829c3e86969a206091d93addca7 (diff)
downloadbootstrap-5359cb805439a6e3179fdd46d2fb009babd0f01b.tar.xz
bootstrap-5359cb805439a6e3179fdd46d2fb009babd0f01b.zip
Reset text/font properties more thoroughly for tooltips+popovers; fixes #15925
[skip sauce]
Diffstat (limited to 'less/tooltip.less')
-rw-r--r--less/tooltip.less9
1 files changed, 4 insertions, 5 deletions
diff --git a/less/tooltip.less b/less/tooltip.less
index 90207b54a..b48d63e07 100644
--- a/less/tooltip.less
+++ b/less/tooltip.less
@@ -8,12 +8,11 @@
position: absolute;
z-index: @zindex-tooltip;
display: block;
- // Reset font and text properties given new insertion method
- font-family: @font-family-base;
+ // Our parent element can be arbitrary since tooltips 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-small;
- font-weight: normal;
- line-height: @line-height-base;
- text-decoration: none;
+
.opacity(0);
&.in { .opacity(@tooltip-opacity); }