add the translate mixin

This commit is contained in:
Dmitry Fadeyev 2011-09-16 06:14:14 +01:00
parent 6180134441
commit f0c1ef20e5
1 changed files with 10 additions and 2 deletions

View File

@ -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
-----------------------------------------------------*/
@ -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);
}