Skip to content

Instantly share code, notes, and snippets.

@joelremix
Created November 5, 2014 01:55
Show Gist options
  • Save joelremix/33d599ff96672f416fff to your computer and use it in GitHub Desktop.
Save joelremix/33d599ff96672f416fff to your computer and use it in GitHub Desktop.
Sass: text-overflow.scss
//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