|
|
@ -8,12 +8,13 @@
|
|
|
|
// support rotate for all browsers
|
|
|
|
// support rotate for all browsers
|
|
|
|
.cross-rotate(@degrees) {
|
|
|
|
.cross-rotate(@degrees) {
|
|
|
|
.rotate(@degrees);
|
|
|
|
.rotate(@degrees);
|
|
|
|
@cos: cos(@degrees);
|
|
|
|
/* IE6-IE8 */
|
|
|
|
@sin: sin(@degrees);
|
|
|
|
@radians: ~`parseInt("@{degrees}") * Math.PI * 2 / 360`;
|
|
|
|
@nl: `"\n"`; // Newline
|
|
|
|
@costheta: ~`Math.cos("@{radians}")`;
|
|
|
|
/* IE8- */
|
|
|
|
@sintheta: ~`Math.sin("@{radians}")`;
|
|
|
|
filter: ~"progid:DXImageTransform.Microsoft.Matrix(@{nl} M11=@{cos},@{nl} M12=-@{sin},@{nl} M21=@{sin},@{nl} M22=@{cos},@{nl} sizingMethod='auto expand'@{nl} )";
|
|
|
|
@negsintheta: ~`"@{sintheta}" * -1`;
|
|
|
|
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(@{nl} M11=@{cos},@{nl} M12=-@{sin},@{nl} M21=@{sin},@{nl} M22=@{cos},@{nl} sizingMethod='auto expand'@{nl} )";
|
|
|
|
filter: ~"progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=@{costheta}, M12=@{negsintheta}, M21=@{sintheta}, M22=@{costheta})";
|
|
|
|
|
|
|
|
zoom: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// for iconfont font size
|
|
|
|
// for iconfont font size
|
|
|
|