Skip to content

Commit

Permalink
add the translate mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Fadeyev committed Sep 16, 2011
1 parent 6180134 commit f0c1ef2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions elements.less
@@ -1,11 +1,12 @@
/*---------------------------------------------------
LESS Elements 0.5
LESS Elements 0.6
---------------------------------------------------
A set of useful LESS mixins by Dmitry Fadeyev
Special thanks for mixin suggestions to:
Kris Van Herzeele,
Benoit Adam,
Portenart Emile-Victor
Portenart Emile-Victor,
Ryan Faerman
More info at: http://lesselements.com
-----------------------------------------------------*/
Expand Down Expand Up @@ -118,3 +119,10 @@
column-rule-style: @columnRuleStyle;
column-rule-width: @columnRuleWidth;
}
.translate(@x:0, @y:0) {
-moz-transform: translate(@x, @y);
-webkit-transform: translate(@x, @y);
-o-transform: translate(@x, @y);
-ms-transform: translate(@x, @y);
transform: translate(@x, @y);
}

0 comments on commit f0c1ef2

Please sign in to comment.