]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Apply word-wrap:break-word to Tooltips and Popovers 18927/head
authorChris Rebert <code@chrisrebert.com>
Mon, 18 Jan 2016 06:23:29 +0000 (22:23 -0800)
committerChris Rebert <code@chrisrebert.com>
Mon, 18 Jan 2016 06:23:29 +0000 (22:23 -0800)
Fixes #16871 for v4

scss/_popover.scss
scss/_tooltip.scss
scss/mixins/_reset-text.scss

index 303850cc0ccda67b40576386c74dfe9bb647a57a..9ea8c1475841482e4dfd69e708a59963d1ef72f5 100644 (file)
@@ -10,6 +10,8 @@
   // So reset our font and text properties to avoid inheriting weird values.
   @include reset-text();
   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-clip: padding-box;
   border: $popover-border-width solid $popover-border-color;
index a17aefc0ae5c75b1390fcb2ac45dcffbfdb41792..e8151af07db98e0994bad19a2906e0a9ee415849 100644 (file)
@@ -7,6 +7,8 @@
   // So reset our font and text properties to avoid inheriting weird values.
   @include reset-text();
   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;
 
   &.in { opacity: $tooltip-opacity; }
index 014dff566567a080a7e98c24d3a098ee651528f0..e1d1725fad0ad0d12aa14211395da164238119d1 100644 (file)
@@ -1,6 +1,6 @@
 @mixin reset-text {
   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-weight: normal;
   letter-spacing: normal;
@@ -14,5 +14,4 @@
   white-space: normal;
   word-break: normal;
   word-spacing: normal;
-  word-wrap: normal;
 }