diff options
| author | Chris Rebert <[email protected]> | 2015-04-12 17:08:03 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2015-04-12 17:08:03 -0700 |
| commit | 150d454848fecc635e272a1f9c869ed5568fa90e (patch) | |
| tree | 525483d94b31d93d4c408c24e45961f08cbdac7a /less/tooltip.less | |
| parent | feeff91be145a9fa2611fd1de815828efe20b69e (diff) | |
| parent | 5359cb805439a6e3179fdd46d2fb009babd0f01b (diff) | |
| download | bootstrap-150d454848fecc635e272a1f9c869ed5568fa90e.tar.xz bootstrap-150d454848fecc635e272a1f9c869ed5568fa90e.zip | |
Merge pull request #16086 from twbs/fix-15925
Reset text/font properties more thoroughly for tooltips+popovers
Diffstat (limited to 'less/tooltip.less')
| -rw-r--r-- | less/tooltip.less | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/less/tooltip.less b/less/tooltip.less index 9d5684743..b48d63e07 100644 --- a/less/tooltip.less +++ b/less/tooltip.less @@ -8,11 +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: 1.4; + .opacity(0); &.in { .opacity(@tooltip-opacity); } @@ -28,7 +28,6 @@ padding: 3px 8px; color: @tooltip-color; text-align: center; - text-decoration: none; background-color: @tooltip-bg; border-radius: @border-radius-base; } |
