mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2025-01-16 02:00:28 +08:00
Minor fix to loops in Less.
This commit is contained in:
parent
c194cfe357
commit
6a81b209ca
44
css/font-awesome.css
vendored
44
css/font-awesome.css
vendored
@ -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);
|
||||
|
2
css/font-awesome.min.css
vendored
2
css/font-awesome.min.css
vendored
File diff suppressed because one or more lines are too long
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user