Created
November 5, 2014 01:55
-
-
Save joelremix/33d599ff96672f416fff to your computer and use it in GitHub Desktop.
Sass: text-overflow.scss
This file contains 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
//Mixin | |
text-overflow() { | |
overflow: hidden; | |
text-overflow: ellipsis; | |
white-space: nowrap; | |
} | |
//Usage | |
branch-name { | |
display: inline-block; | |
max-width: 200px; | |
.text-overflow(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment