mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-20 17:54:23 +01:00
Apply word-wrap:break-word to Tooltips and Popovers
Fixes #16871 for v4
This commit is contained in:
parent
27596f48f4
commit
032adf1324
@ -10,6 +10,8 @@
|
|||||||
// So reset our font and text properties to avoid inheriting weird values.
|
// So reset our font and text properties to avoid inheriting weird values.
|
||||||
@include reset-text();
|
@include reset-text();
|
||||||
font-size: $font-size-sm;
|
font-size: $font-size-sm;
|
||||||
|
// Allow breaking very long words so they don't overflow the popover's bounds
|
||||||
|
word-wrap: break-word;
|
||||||
background-color: $popover-bg;
|
background-color: $popover-bg;
|
||||||
background-clip: padding-box;
|
background-clip: padding-box;
|
||||||
border: $popover-border-width solid $popover-border-color;
|
border: $popover-border-width solid $popover-border-color;
|
||||||
|
@ -7,6 +7,8 @@
|
|||||||
// So reset our font and text properties to avoid inheriting weird values.
|
// So reset our font and text properties to avoid inheriting weird values.
|
||||||
@include reset-text();
|
@include reset-text();
|
||||||
font-size: $font-size-sm;
|
font-size: $font-size-sm;
|
||||||
|
// Allow breaking very long words so they don't overflow the tooltip's bounds
|
||||||
|
word-wrap: break-word;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
|
||||||
&.in { opacity: $tooltip-opacity; }
|
&.in { opacity: $tooltip-opacity; }
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
@mixin reset-text {
|
@mixin reset-text {
|
||||||
font-family: $font-family-base;
|
font-family: $font-family-base;
|
||||||
// We deliberately do NOT reset font-size.
|
// We deliberately do NOT reset font-size or word-wrap.
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
letter-spacing: normal;
|
letter-spacing: normal;
|
||||||
@ -14,5 +14,4 @@
|
|||||||
white-space: normal;
|
white-space: normal;
|
||||||
word-break: normal;
|
word-break: normal;
|
||||||
word-spacing: normal;
|
word-spacing: normal;
|
||||||
word-wrap: normal;
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user