Browse Source

Merge branch 'master' of https://github.com/ant-design/ant-design

pull/56/head
SimaQ 9 years ago
parent
commit
d202aebdea
  1. 2
      package.json
  2. 13
      style/mixins/compatibility.less

2
package.json

@ -42,7 +42,7 @@
"rc-input-number": "~2.0.1",
"rc-menu": "~3.4.2",
"rc-notification": "~1.0.1",
"rc-pagination": "~1.0.0",
"rc-pagination": "~1.1.0",
"rc-progress": "~1.0.0",
"rc-radio": "~2.0.0",
"rc-select": "~4.4.0",

13
style/mixins/compatibility.less

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

Loading…
Cancel
Save