mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2024-12-27 14:01:30 +08:00
Fix “Unexpected CSS token” warning on Safari
Caused by `filter: progid:DXImageTransform.Microsoft.BasicImage` css property. Since we are addressing IE >= 8 and valid HTML5 templates, we can use `-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage”` to get the same result Fix #5043
This commit is contained in:
parent
e023bc93ba
commit
82f951b944
10
css/font-awesome.css
vendored
10
css/font-awesome.css
vendored
@ -118,31 +118,31 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.fa-rotate-90 {
|
.fa-rotate-90 {
|
||||||
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
|
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";
|
||||||
-webkit-transform: rotate(90deg);
|
-webkit-transform: rotate(90deg);
|
||||||
-ms-transform: rotate(90deg);
|
-ms-transform: rotate(90deg);
|
||||||
transform: rotate(90deg);
|
transform: rotate(90deg);
|
||||||
}
|
}
|
||||||
.fa-rotate-180 {
|
.fa-rotate-180 {
|
||||||
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
|
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";
|
||||||
-webkit-transform: rotate(180deg);
|
-webkit-transform: rotate(180deg);
|
||||||
-ms-transform: rotate(180deg);
|
-ms-transform: rotate(180deg);
|
||||||
transform: rotate(180deg);
|
transform: rotate(180deg);
|
||||||
}
|
}
|
||||||
.fa-rotate-270 {
|
.fa-rotate-270 {
|
||||||
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
|
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";
|
||||||
-webkit-transform: rotate(270deg);
|
-webkit-transform: rotate(270deg);
|
||||||
-ms-transform: rotate(270deg);
|
-ms-transform: rotate(270deg);
|
||||||
transform: rotate(270deg);
|
transform: rotate(270deg);
|
||||||
}
|
}
|
||||||
.fa-flip-horizontal {
|
.fa-flip-horizontal {
|
||||||
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);
|
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";
|
||||||
-webkit-transform: scale(-1, 1);
|
-webkit-transform: scale(-1, 1);
|
||||||
-ms-transform: scale(-1, 1);
|
-ms-transform: scale(-1, 1);
|
||||||
transform: scale(-1, 1);
|
transform: scale(-1, 1);
|
||||||
}
|
}
|
||||||
.fa-flip-vertical {
|
.fa-flip-vertical {
|
||||||
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);
|
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";
|
||||||
-webkit-transform: scale(1, -1);
|
-webkit-transform: scale(1, -1);
|
||||||
-ms-transform: scale(1, -1);
|
-ms-transform: scale(1, -1);
|
||||||
transform: scale(1, -1);
|
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
@ -12,14 +12,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.fa-icon-rotate(@degrees, @rotation) {
|
.fa-icon-rotate(@degrees, @rotation) {
|
||||||
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation);
|
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=@{rotation})";
|
||||||
-webkit-transform: rotate(@degrees);
|
-webkit-transform: rotate(@degrees);
|
||||||
-ms-transform: rotate(@degrees);
|
-ms-transform: rotate(@degrees);
|
||||||
transform: rotate(@degrees);
|
transform: rotate(@degrees);
|
||||||
}
|
}
|
||||||
|
|
||||||
.fa-icon-flip(@horiz, @vert, @rotation) {
|
.fa-icon-flip(@horiz, @vert, @rotation) {
|
||||||
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation, mirror=1);
|
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=@{rotation}, mirror=1)";
|
||||||
-webkit-transform: scale(@horiz, @vert);
|
-webkit-transform: scale(@horiz, @vert);
|
||||||
-ms-transform: scale(@horiz, @vert);
|
-ms-transform: scale(@horiz, @vert);
|
||||||
transform: scale(@horiz, @vert);
|
transform: scale(@horiz, @vert);
|
||||||
|
@ -12,14 +12,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@mixin fa-icon-rotate($degrees, $rotation) {
|
@mixin fa-icon-rotate($degrees, $rotation) {
|
||||||
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation});
|
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation})";
|
||||||
-webkit-transform: rotate($degrees);
|
-webkit-transform: rotate($degrees);
|
||||||
-ms-transform: rotate($degrees);
|
-ms-transform: rotate($degrees);
|
||||||
transform: rotate($degrees);
|
transform: rotate($degrees);
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin fa-icon-flip($horiz, $vert, $rotation) {
|
@mixin fa-icon-flip($horiz, $vert, $rotation) {
|
||||||
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation}, mirror=1);
|
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation}, mirror=1)";
|
||||||
-webkit-transform: scale($horiz, $vert);
|
-webkit-transform: scale($horiz, $vert);
|
||||||
-ms-transform: scale($horiz, $vert);
|
-ms-transform: scale($horiz, $vert);
|
||||||
transform: scale($horiz, $vert);
|
transform: scale($horiz, $vert);
|
||||||
|
4
src/assets/font-awesome/less/mixins.less
vendored
4
src/assets/font-awesome/less/mixins.less
vendored
@ -8,14 +8,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.fa-icon-rotate(@degrees, @rotation) {
|
.fa-icon-rotate(@degrees, @rotation) {
|
||||||
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation);
|
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=@{rotation})";
|
||||||
-webkit-transform: rotate(@degrees);
|
-webkit-transform: rotate(@degrees);
|
||||||
-ms-transform: rotate(@degrees);
|
-ms-transform: rotate(@degrees);
|
||||||
transform: rotate(@degrees);
|
transform: rotate(@degrees);
|
||||||
}
|
}
|
||||||
|
|
||||||
.fa-icon-flip(@horiz, @vert, @rotation) {
|
.fa-icon-flip(@horiz, @vert, @rotation) {
|
||||||
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation, mirror=1);
|
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=@{rotation}, mirror=1)";
|
||||||
-webkit-transform: scale(@horiz, @vert);
|
-webkit-transform: scale(@horiz, @vert);
|
||||||
-ms-transform: scale(@horiz, @vert);
|
-ms-transform: scale(@horiz, @vert);
|
||||||
transform: scale(@horiz, @vert);
|
transform: scale(@horiz, @vert);
|
||||||
|
4
src/assets/font-awesome/scss/_mixins.scss
vendored
4
src/assets/font-awesome/scss/_mixins.scss
vendored
@ -8,14 +8,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@mixin fa-icon-rotate($degrees, $rotation) {
|
@mixin fa-icon-rotate($degrees, $rotation) {
|
||||||
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation});
|
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation})";
|
||||||
-webkit-transform: rotate($degrees);
|
-webkit-transform: rotate($degrees);
|
||||||
-ms-transform: rotate($degrees);
|
-ms-transform: rotate($degrees);
|
||||||
transform: rotate($degrees);
|
transform: rotate($degrees);
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin fa-icon-flip($horiz, $vert, $rotation) {
|
@mixin fa-icon-flip($horiz, $vert, $rotation) {
|
||||||
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation}, mirror=1);
|
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation}, mirror=1)";
|
||||||
-webkit-transform: scale($horiz, $vert);
|
-webkit-transform: scale($horiz, $vert);
|
||||||
-ms-transform: scale($horiz, $vert);
|
-ms-transform: scale($horiz, $vert);
|
||||||
transform: scale($horiz, $vert);
|
transform: scale($horiz, $vert);
|
||||||
|
Loading…
Reference in New Issue
Block a user