From 5ffb6d670683a32ec2a31c8550ea2669bfac7559 Mon Sep 17 00:00:00 2001 From: Synchro Date: Tue, 1 May 2012 17:01:26 +0200 Subject: [PATCH 1/3] Add .hyphens mixin --- less/mixins.less | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/less/mixins.less b/less/mixins.less index b107955f57..5f3343e4ea 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -312,6 +312,15 @@ column-gap: @columnGap; } +// Optional hyphenation +.hyphens(@mode: auto) { + -webkit-hyphens: @mode; + -moz-hyphens: @mode; + -ms-hyphens: @mode; + hyphens: @mode; + word-wrap:break-word; +} + // Opacity .opacity(@opacity) { opacity: @opacity / 100; From dcc89e7400ae9e7575ea2671d27b514db9beaf3f Mon Sep 17 00:00:00 2001 From: Synchro Date: Tue, 1 May 2012 17:06:19 +0200 Subject: [PATCH 2/3] Coding style --- less/mixins.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/less/mixins.less b/less/mixins.less index 5f3343e4ea..bd909123ef 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -318,7 +318,7 @@ -moz-hyphens: @mode; -ms-hyphens: @mode; hyphens: @mode; - word-wrap:break-word; + word-wrap: break-word; } // Opacity From ca369c4b2af2a94acea00cd228d87a30fe5d2886 Mon Sep 17 00:00:00 2001 From: Synchro Date: Tue, 1 May 2012 17:54:53 +0200 Subject: [PATCH 3/3] Add Opera prefix --- less/mixins.less | 1 + 1 file changed, 1 insertion(+) diff --git a/less/mixins.less b/less/mixins.less index bd909123ef..44e5698eb0 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -317,6 +317,7 @@ -webkit-hyphens: @mode; -moz-hyphens: @mode; -ms-hyphens: @mode; + -o-hyphens: @mode; hyphens: @mode; word-wrap: break-word; }