lib/compass/typography/text/_force-wrap.scss
raw| 1 | // Prevent long urls and text from breaking layouts |
| 2 | // [originally from perishablepress.com](http://perishablepress.com/press/2010/06/01/wrapping-content/) |
| 3 | @mixin force-wrap { |
| 4 | white-space: pre; // CSS 2.0 |
| 5 | white-space: pre-wrap; // CSS 2.1 |
| 6 | white-space: pre-line; // CSS 3.0 |
| 7 | white-space: -pre-wrap; // Opera 4-6 |
| 8 | white-space: -o-pre-wrap; // Opera 7 |
| 9 | white-space: -moz-pre-wrap; // Mozilla |
| 10 | white-space: -hp-pre-wrap; // HP Printers |
| 11 | word-wrap: break-word; // IE 5+ |
| 12 | } |