mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2024-12-27 14:01:30 +08:00
parent
71d241adce
commit
03f71ba901
@ -1,6 +1,15 @@
|
|||||||
// Mixins
|
// Mixins
|
||||||
// --------------------------
|
// --------------------------
|
||||||
|
|
||||||
|
.fa-icon() {
|
||||||
|
display: inline-block;
|
||||||
|
font: normal normal normal 14px/1 FontAwesome; // shortening font declaration
|
||||||
|
font-size: inherit; // can't have font-size inherit on line above, so need to override
|
||||||
|
text-rendering: auto; // optimizelegibility throws things off #1094
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
}
|
||||||
|
|
||||||
.fa-icon-rotate(@degrees, @rotation) {
|
.fa-icon-rotate(@degrees, @rotation) {
|
||||||
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation);
|
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation);
|
||||||
-webkit-transform: rotate(@degrees);
|
-webkit-transform: rotate(@degrees);
|
||||||
|
@ -1,6 +1,15 @@
|
|||||||
// Mixins
|
// Mixins
|
||||||
// --------------------------
|
// --------------------------
|
||||||
|
|
||||||
|
@mixin fa-icon() {
|
||||||
|
display: inline-block;
|
||||||
|
font: normal normal normal 14px/1 FontAwesome; // shortening font declaration
|
||||||
|
font-size: inherit; // can't have font-size inherit on line above, so need to override
|
||||||
|
text-rendering: auto; // optimizelegibility throws things off #1094
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
}
|
||||||
|
|
||||||
@mixin fa-icon-rotate($degrees, $rotation) {
|
@mixin fa-icon-rotate($degrees, $rotation) {
|
||||||
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation});
|
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation});
|
||||||
-webkit-transform: rotate($degrees);
|
-webkit-transform: rotate($degrees);
|
||||||
|
4
src/assets/font-awesome/less/mixins.less
vendored
4
src/assets/font-awesome/less/mixins.less
vendored
@ -3,6 +3,10 @@
|
|||||||
// Mixins
|
// Mixins
|
||||||
// --------------------------
|
// --------------------------
|
||||||
|
|
||||||
|
.fa-icon() {
|
||||||
|
{% include code/core.css %}
|
||||||
|
}
|
||||||
|
|
||||||
.fa-icon-rotate(@degrees, @rotation) {
|
.fa-icon-rotate(@degrees, @rotation) {
|
||||||
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation);
|
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation);
|
||||||
-webkit-transform: rotate(@degrees);
|
-webkit-transform: rotate(@degrees);
|
||||||
|
4
src/assets/font-awesome/scss/_mixins.scss
vendored
4
src/assets/font-awesome/scss/_mixins.scss
vendored
@ -3,6 +3,10 @@
|
|||||||
// Mixins
|
// Mixins
|
||||||
// --------------------------
|
// --------------------------
|
||||||
|
|
||||||
|
@mixin fa-icon() {
|
||||||
|
{% include code/core.css %}
|
||||||
|
}
|
||||||
|
|
||||||
@mixin fa-icon-rotate($degrees, $rotation) {
|
@mixin fa-icon-rotate($degrees, $rotation) {
|
||||||
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation});
|
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation});
|
||||||
-webkit-transform: rotate($degrees);
|
-webkit-transform: rotate($degrees);
|
||||||
|
Loading…
Reference in New Issue
Block a user