mirror of
https://github.com/Oreolek/elements.git
synced 2024-05-13 22:38:14 +03:00
add the translate mixin
This commit is contained in:
parent
6180134441
commit
f0c1ef20e5
|
@ -1,11 +1,12 @@
|
||||||
/*---------------------------------------------------
|
/*---------------------------------------------------
|
||||||
LESS Elements 0.5
|
LESS Elements 0.6
|
||||||
---------------------------------------------------
|
---------------------------------------------------
|
||||||
A set of useful LESS mixins by Dmitry Fadeyev
|
A set of useful LESS mixins by Dmitry Fadeyev
|
||||||
Special thanks for mixin suggestions to:
|
Special thanks for mixin suggestions to:
|
||||||
Kris Van Herzeele,
|
Kris Van Herzeele,
|
||||||
Benoit Adam,
|
Benoit Adam,
|
||||||
Portenart Emile-Victor
|
Portenart Emile-Victor,
|
||||||
|
Ryan Faerman
|
||||||
|
|
||||||
More info at: http://lesselements.com
|
More info at: http://lesselements.com
|
||||||
-----------------------------------------------------*/
|
-----------------------------------------------------*/
|
||||||
|
@ -118,3 +119,10 @@
|
||||||
column-rule-style: @columnRuleStyle;
|
column-rule-style: @columnRuleStyle;
|
||||||
column-rule-width: @columnRuleWidth;
|
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);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue