3
// Mixins to support specific CSS Text Level 3 elements
7
// Mixin for word-break properties
8
// http://www.w3.org/css3-text/#word-break
9
// * legal values for $type : normal, keep-all, break-all
12
// p.wordBreak {@include word-break(break-all);}
16
// -ms-word-break: break-all;
17
// word-break: break-all;
18
// word-break: break-word;}
20
@mixin word-break($value: normal){
21
@if $value == break-all {
22
//Most browsers handle the break-all case the same...
23
@include experimental(word-break, $value,
24
not -moz, not -webkit, not -o, -ms, not -khtml, official
26
//Webkit handles break-all differently... as break-word
27
@include experimental(word-break, break-word,
28
not -moz, not -webkit, not -o, not -ms, not -khtml, official
32
@include experimental(word-break, $value,
33
not -moz, not -webkit, not -o, -ms, not -khtml, official
38
// Mixin for the hyphens property
40
// W3C specification: http://www.w3.org/TR/css3-text/#hyphens
41
// * legal values for $type : auto, manual, none
45
// @include hyphens(auto);}
48
// -moz-hyphens: auto;
49
// -webkit-hyphens: auto;
52
@mixin hyphens($value: auto){
53
@include experimental(hyphens, $value,
54
-moz, -webkit, not -o, not -ms, not -khtml, official
58
// Mixin for x-browser hyphenation based on @auchenberg's post:
59
// Removes the need for the <wbr/> HTML tag
60
// http://blog.kenneth.io/blog/2012/03/04/word-wrapping-hypernation-using-css/
63
// div {@include hyphenation;}
67
// -ms-word-break: break-all;
68
// word-break: break-all;
69
// word-break: break-word;
70
// -moz-hyphens: auto;
71
// -webkit-hyphens: auto;
75
@include word-break(break-all);