1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

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><code>@columnCount, @columnGap: @gridGutterWidth</code></td>
<td>Make the content of any element use CSS3 columns</td> <td>Make the content of any element use CSS3 columns</td>
</tr> </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> </tbody>
</table> </table>
<h3>Backgrounds and gradients</h3> <h3>Backgrounds and gradients</h3>

View file

@ -830,6 +830,11 @@
<td><code>@columnCount, @columnGap: @gridGutterWidth</code></td> <td><code>@columnCount, @columnGap: @gridGutterWidth</code></td>
<td>{{_i}}Make the content of any element use CSS3 columns{{/i}}</td> <td>{{_i}}Make the content of any element use CSS3 columns{{/i}}</td>
</tr> </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> </tbody>
</table> </table>
<h3>{{_i}}Backgrounds and gradients{{/i}}</h3> <h3>{{_i}}Backgrounds and gradients{{/i}}</h3>

View file

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