Sha256: 18c93a23b0722a6daff5ea32d96c2c0e0e21489d0168a1b12895e2926fb7b3ec

Contents?: true

Size: 1.92 KB

Versions: 22

Compression:

Stored size: 1.92 KB

Contents

@import "shared";

// Mixins to support specific CSS Text Level 3 elements
//
//
//
// Mixin for word-break properties
// http://www.w3.org/css3-text/#word-break
// * legal values for $type : normal, keep-all, break-all
//
// Example:
//    p.wordBreak {@include word-break(break-all);}
//
// Which generates:
//    p.wordBreak {
//      -ms-word-break: break-all;
//      word-break: break-all;
//      word-break: break-word;}
//
@mixin word-break($value: normal){
  @if $value == break-all {
    //Most browsers handle the break-all case the same...
    @include experimental(word-break, $value,
      not -moz, not -webkit, not -o, -ms, not -khtml, official
    );
    //Webkit handles break-all differently... as break-word
    @include experimental(word-break, break-word,
      not -moz, not -webkit, not -o, not -ms, not -khtml, official
    );
  }
  @else {
    @include experimental(word-break, $value,
      not -moz, not -webkit, not -o, -ms, not -khtml, official
    );
  }
}

// Mixin for the hyphens property
//
// W3C specification: http://www.w3.org/TR/css3-text/#hyphens
// * legal values for $type : auto, manual, none
//
// Example:
//  p {
//    @include hyphens(auto);}
// Which generates:
//  p {
//    -moz-hyphens: auto;
//    -webkit-hyphens: auto;
//    hyphens: auto;}
//
@mixin hyphens($value: auto){
  @include experimental(hyphens, $value,
    -moz, -webkit, not -o, not -ms, not -khtml, official
  );
}

// Mixin for x-browser hyphenation based on @auchenberg's post:
// Removes the need for the <wbr/> HTML tag
// http://blog.kenneth.io/blog/2012/03/04/word-wrapping-hypernation-using-css/
//
//  Example:
//  div {@include hyphenation;}
//
//  Which generates:
//    div {
//      -ms-word-break: break-all;
//      word-break: break-all;
//      word-break: break-word;
//      -moz-hyphens: auto;
//      -webkit-hyphens: auto;
//      hyphens: auto;}
//
@mixin hyphenation{
  @include word-break(break-all);
  @include hyphens;
}

Version data entries

22 entries across 21 versions & 5 rubygems

Version Path
egghead-styles-1.0.82 app/assets/stylesheets/plugins/compass/compass/css3/_hyphenation.scss
egghead-styles-1.0.81 app/assets/stylesheets/plugins/compass/compass/css3/_hyphenation.scss
egghead-styles-1.0.80 app/assets/stylesheets/plugins/compass/compass/css3/_hyphenation.scss
egghead-styles-1.0.79 app/assets/stylesheets/plugins/compass/compass/css3/_hyphenation.scss
egghead-styles-1.0.78 app/assets/stylesheets/plugins/compass/compass/css3/_hyphenation.scss
egghead-styles-1.0.77 app/assets/stylesheets/plugins/compass/compass/css3/_hyphenation.scss
egghead-styles-1.0.76 app/assets/stylesheets/plugins/compass/compass/css3/_hyphenation.scss
egghead-styles-1.0.75 app/assets/stylesheets/plugins/compass/compass/css3/_hyphenation.scss
egghead-styles-1.0.74 app/assets/stylesheets/plugins/compass/compass/css3/_hyphenation.scss
egghead-styles-1.0.73 app/assets/stylesheets/plugins/compass/compass/css3/_hyphenation.scss
compass-0.12.7 frameworks/compass/stylesheets/compass/css3/_hyphenation.scss
sadui-0.0.4 vendor/bundle/ruby/2.1.0/gems/compass-0.12.3/frameworks/compass/stylesheets/compass/css3/_hyphenation.scss
sadui-0.0.4 vendor/bundle/ruby/2.0.0/gems/compass-0.12.3/frameworks/compass/stylesheets/compass/css3/_hyphenation.scss
compass-0.12.6 frameworks/compass/stylesheets/compass/css3/_hyphenation.scss
compass-0.12.5 frameworks/compass/stylesheets/compass/css3/_hyphenation.scss
compass-0.12.4 frameworks/compass/stylesheets/compass/css3/_hyphenation.scss
compass-0.12.3 frameworks/compass/stylesheets/compass/css3/_hyphenation.scss
compass-sourcemaps-0.12.4.sourcemaps.a4836f1 frameworks/compass/stylesheets/compass/css3/_hyphenation.scss
simple-compass-0.0.1 sass/compass/css3/_hyphenation.scss
compass-0.13.alpha.2 frameworks/compass/stylesheets/compass/css3/_hyphenation.scss