Minor fix to loops in Less.

This commit is contained in:
Macdonald, Zak 2015-06-28 21:44:33 -07:00
parent c194cfe357
commit 6a81b209ca
4 changed files with 5 additions and 49 deletions

44
css/font-awesome.css vendored
View File

@ -122,50 +122,6 @@
transform: rotate(359deg);
}
}
.fa-rotate-315 {
-webkit-transform: rotate(315deg);
-ms-transform: rotate(315deg);
transform: rotate(315deg);
}
.fa-rotate-270 {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
-webkit-transform: rotate(270deg);
-ms-transform: rotate(270deg);
transform: rotate(270deg);
}
.fa-rotate-225 {
-webkit-transform: rotate(225deg);
-ms-transform: rotate(225deg);
transform: rotate(225deg);
}
.fa-rotate-180 {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
-webkit-transform: rotate(180deg);
-ms-transform: rotate(180deg);
transform: rotate(180deg);
}
.fa-rotate-135 {
-webkit-transform: rotate(135deg);
-ms-transform: rotate(135deg);
transform: rotate(135deg);
}
.fa-rotate-90 {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
-webkit-transform: rotate(90deg);
-ms-transform: rotate(90deg);
transform: rotate(90deg);
}
.fa-rotate-45 {
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}
.fa-rotate-0 {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=0);
-webkit-transform: rotate(0deg);
-ms-transform: rotate(0deg);
transform: rotate(0deg);
}
.fa-flip-horizontal {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);
-webkit-transform: scale(-1, 1);

File diff suppressed because one or more lines are too long

View File

@ -7,13 +7,13 @@
@rotation-selector: '';
// calculate classes and values for rotation
.calculateRotations(@i) when (@i >= 0) {
.calculateRotations(@i) when (@i <= 0) {
@rotation-selector: ~"@{fa-css-prefix}-rotate-@{i}";
.@{rotation-selector} when (mod(@i, @fa-rotation-increment) = 0) {
.fa-icon-rotate(@i);
}
.calculateRotations((@i - 1));
.calculateRotations((@i + 1));
}
.calculateRotations(359);

View File

@ -10,13 +10,13 @@
@rotation-selector: '';
// calculate classes and values for rotation
.calculateRotations(@i) when (@i >= 0) {
.calculateRotations(@i) when (@i <= 0) {
@rotation-selector: ~"@{fa-css-prefix}-rotate-@{i}";
.@{rotation-selector} when (mod(@i, @fa-rotation-increment) = 0) {
.fa-icon-rotate(@i);
}
.calculateRotations((@i - 1));
.calculateRotations((@i + 1));
}
.calculateRotations(359);