document .hyphens() mixin

This commit is contained in:
Mark Otto 2012-05-13 14:31:31 -07:00
parent 23401e811f
commit 8f44245850
3 changed files with 11 additions and 1 deletions

View File

@ -907,6 +907,11 @@
<td><code>@columnCount, @columnGap: @gridGutterWidth</code></td>
<td>Make the content of any element use CSS3 columns</td>
</tr>
<tr>
<td><code>.hyphens()</code></td>
<td><code>@mode: auto</code></td>
<td>CSS3 hyphenation when you want it (includes <code>word-wrap: break-word</code>)</td>
</tr>
</tbody>
</table>
<h3>Backgrounds and gradients</h3>

View File

@ -830,6 +830,11 @@
<td><code>@columnCount, @columnGap: @gridGutterWidth</code></td>
<td>{{_i}}Make the content of any element use CSS3 columns{{/i}}</td>
</tr>
<tr>
<td><code>.hyphens()</code></td>
<td><code>@mode: auto</code></td>
<td>{{_i}}CSS3 hyphenation when you want it (includes <code>word-wrap: break-word</code>){{/i}}</td>
</tr>
</tbody>
</table>
<h3>{{_i}}Backgrounds and gradients{{/i}}</h3>

View File

@ -314,12 +314,12 @@
// Optional hyphenation
.hyphens(@mode: auto) {
word-wrap: break-word;
-webkit-hyphens: @mode;
-moz-hyphens: @mode;
-ms-hyphens: @mode;
-o-hyphens: @mode;
hyphens: @mode;
word-wrap: break-word;
}
// Opacity