Last active
July 12, 2017 21:34
-
-
Save snowman-repos/3838120 to your computer and use it in GitHub Desktop.
SASS: Word Wrap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Word Wrapping | |
@mixin word-wrap() { | |
-ms-word-break: break-all; | |
word-break: break-all; | |
word-break: break-word; | |
-webkit-hyphens: auto; | |
-moz-hyphens: auto; | |
hyphens: auto; | |
} | |
.word-wrap { | |
@include mixin word-wrap; | |
} |
Why not use this? Seems like it does the job more correctly:
@mixin word-wrap($value) {
word-wrap: $value;
overflow-wrap: $value;
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks