Skip to content

Instantly share code, notes, and snippets.

@vitalyrotari
Forked from antsa/hyphens.scss
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vitalyrotari/6845373f25864c9685a3 to your computer and use it in GitHub Desktop.
Save vitalyrotari/6845373f25864c9685a3 to your computer and use it in GitHub Desktop.
// 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