mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2024-12-26 21:41:29 +08:00
refactoring base css fa declaration into an jekyll include to reduce code duplication
This commit is contained in:
parent
e22614dc84
commit
71d241adce
6
src/_includes/code/core.css
Normal file
6
src/_includes/code/core.css
Normal file
@ -0,0 +1,6 @@
|
||||
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;
|
7
src/assets/font-awesome/less/core.less
vendored
7
src/assets/font-awesome/less/core.less
vendored
@ -5,10 +5,5 @@
|
||||
// -------------------------
|
||||
|
||||
.@{fa-css-prefix} {
|
||||
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;
|
||||
{% include code/core.css %}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
---
|
||||
{% include code/license.txt %}
|
||||
{% include code/license.css %}
|
||||
|
||||
@import "variables.less";
|
||||
@import "mixins.less";
|
||||
|
7
src/assets/font-awesome/scss/_core.scss
vendored
7
src/assets/font-awesome/scss/_core.scss
vendored
@ -5,10 +5,5 @@
|
||||
// -------------------------
|
||||
|
||||
.#{$fa-css-prefix} {
|
||||
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;
|
||||
{% include code/core.css %}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
---
|
||||
{% include code/license.txt %}
|
||||
{% include code/license.css %}
|
||||
|
||||
@import "variables";
|
||||
@import "mixins";
|
||||
|
Loading…
Reference in New Issue
Block a user