Skip to content

Instantly share code, notes, and snippets.

@antsa
Created August 23, 2011 07:33
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save antsa/1164570 to your computer and use it in GitHub Desktop.
Save antsa/1164570 to your computer and use it in GitHub Desktop.
Hyphens @mixin for Compass
// Provides a mixin to define hyphenation
//
// Requires Compass
//
// (http://blog.fontdeck.com/post/9037028497/hyphens)
// (http://www.w3.org/TR/css3-text/#hyphenation)
//
// $value - The hyphenation property value. One of "none", "manual", "auto" or "all"
//
// Example .scss:
//
// @include hyphens("auto");
//
// Sets hyphenation to "auto"
@mixin hyphens($value: "manual") {
@each $prefix in -webkit-, -moz-, -o-, "" {
#{$prefix}hyphens: $value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment