aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-05-13 14:31:31 -0700
committerMark Otto <[email protected]>2012-05-13 14:31:31 -0700
commit8f4424585094354589fbab80d5b0e6b1bb6d87cf (patch)
tree079447fdb7b49ef3ac1d39c56f9f0d2ef1647da4
parent23401e811f28f1ef351274661bf1f1bc8a8bc8af (diff)
downloadbootstrap-8f4424585094354589fbab80d5b0e6b1bb6d87cf.tar.xz
bootstrap-8f4424585094354589fbab80d5b0e6b1bb6d87cf.zip
document .hyphens() mixin
-rw-r--r--docs/less.html5
-rw-r--r--docs/templates/pages/less.mustache5
-rw-r--r--less/mixins.less2
3 files changed, 11 insertions, 1 deletions
diff --git a/docs/less.html b/docs/less.html
index 476f5ac98..aff16044f 100644
--- a/docs/less.html
+++ b/docs/less.html
@@ -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>
diff --git a/docs/templates/pages/less.mustache b/docs/templates/pages/less.mustache
index bb7148453..a83a28ced 100644
--- a/docs/templates/pages/less.mustache
+++ b/docs/templates/pages/less.mustache
@@ -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>
diff --git a/less/mixins.less b/less/mixins.less
index b5c5352cf..8efe12b38 100644
--- a/less/mixins.less
+++ b/less/mixins.less
@@ -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