]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix #9565 - prevent `<pre>` overflow 9566/head
authorNicolas Coden <nicolas@ncoden.fr>
Sat, 24 Dec 2016 11:49:18 +0000 (12:49 +0100)
committerNicolas Coden <nicolas@ncoden.fr>
Sat, 24 Dec 2016 11:49:18 +0000 (12:49 +0100)
Fix: https://github.com/zurb/foundation-sites/issues/9565

There is no case where we would expect the pre content to overflow.

scss/_global.scss

index 91c5986449b6721d6116e326e911651ec956c234..056e969873476e86c2398956e99c146e29dd44bc 100644 (file)
@@ -196,6 +196,11 @@ $alert-color: get-color(alert);
     line-height: 1;
   }
 
+  // Prevent text overflow on pre
+  pre {
+    overflow: auto;
+  }
+
   // Internal classes to show/hide elements in JavaScript
   .is-visible {
     display: block !important;