|
|
@ -5,9 +5,9 @@ |
|
|
|
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation); |
|
|
|
} |
|
|
|
|
|
|
|
// support rotate for all browsers |
|
|
|
.cross-rotate(@degrees) { |
|
|
|
.rotate(@degrees); |
|
|
|
// rotate for ie8 and blow |
|
|
|
// degrees unit |
|
|
|
.ie-rotate-via-degrees(@degrees) { |
|
|
|
/* IE6-IE8 */ |
|
|
|
@radians: ~`parseInt("@{degrees}") * Math.PI * 2 / 360`; |
|
|
|
@costheta: ~`Math.cos("@{radians}")`; |
|
|
@ -17,14 +17,21 @@ |
|
|
|
zoom: 1; |
|
|
|
} |
|
|
|
|
|
|
|
// support rotate for all browsers |
|
|
|
.cross-rotate(@degrees) { |
|
|
|
.rotate(@degrees); |
|
|
|
.ie-rotate-via-degrees(@degrees); |
|
|
|
} |
|
|
|
|
|
|
|
// for iconfont font size |
|
|
|
// fix chrome 12px bug, support ie |
|
|
|
.iconfont-size-under-12px(@iconfontSize) { |
|
|
|
.iconfont-size-under-12px(@size, @rotate: 0deg) { |
|
|
|
display: inline-block; |
|
|
|
@font-scale: unit(@iconfontSize/@font-size-base); |
|
|
|
@font-scale: unit(@size/@font-size-base); |
|
|
|
font-size: @font-scale; |
|
|
|
font-size: ~"@{iconfontSize} \9"; // ie8-9 |
|
|
|
.scale(@font-scale); |
|
|
|
font-size: ~"@{size} \9"; // ie8-9 |
|
|
|
transform: scale(@font-scale) rotate(@rotate); |
|
|
|
.ie-rotate-via-degrees(@rotate); |
|
|
|
:root & { |
|
|
|
font-size: @font-size-base; // reset ie9 and above |
|
|
|
} |
|
|
|