Created
September 12, 2014 18:36
-
-
Save uhtred/890c188fb2776ec2d4ae to your computer and use it in GitHub Desktop.
Truncate Mixin
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
%truncate { | |
white-space: nowrap; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
} | |
@mixin truncate( $width: 100px ) { | |
@extend %truncate; | |
width: $width; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment