-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_transformations.less
45 lines (40 loc) · 1.28 KB
/
_transformations.less
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
* less css: TRANSFORMATIONS
*
* @section lesscss-mixins
* @subsection transformations
* @author Jasper Moelker <[email protected]>
*/
.rotate(@angle){
-webkit-transform: rotate(@angle deg); /* Saf3.1+, Chrome */
-moz-transform: rotate(@angle deg); /* FF3.5+ */
-ms-transform: rotate(@angle deg); /* IE9 */
-o-transform: rotate(@angle deg); /* Opera 10.5 */
transform: rotate(@angle deg);
}
/*
BEWARE
uses ie filters
don't use if you can avoid.
*/
.rotateFilter(@angle){
-webkit-transform: rotate(@angle deg); /* Saf3.1+, Chrome */
-moz-transform: rotate(@angle deg); /* FF3.5+ */
-ms-transform: rotate(@angle deg); /* IE9 */
-o-transform: rotate(@angle deg); /* Opera 10.5 */
transform: rotate(@angle deg);
/* IE6–IE9 */
/* filter: ~'"progid:DXImageTransform.Microsoft.Matrix(
M11=0.9914448613738104, M12=-0.13052619222005157,M21=0.13052619222005157, M22=0.9914448613738104, sizingMethod="auto expand")"';
zoom: 1;*/
}
.skewX(@angle)
{
-webkit-transform: skewX(@angle deg);
-moz-transform: skewX(@angle deg);
}
.skewY(@angle)
{
-webkit-transform: skewY(@angle deg);
-moz-transform: skewY(@angle deg);
}