mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2025-01-15 09:40:27 +08:00
add(core) font name variable
~ move font name into variable to allow of using customized FontAwesome with different font name
This commit is contained in:
parent
8e037207b4
commit
8f9d24d37d
@ -3,7 +3,7 @@
|
||||
|
||||
.@{fa-css-prefix} {
|
||||
display: inline-block;
|
||||
font: normal normal normal @fa-font-size-base/1 FontAwesome; // shortening font declaration
|
||||
font: normal normal normal @fa-font-size-base/1 @fa-font-name; // 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;
|
||||
|
@ -2,7 +2,8 @@
|
||||
// --------------------------
|
||||
|
||||
@fa-font-path: "../fonts";
|
||||
@fa-font-size-base: 14px;
|
||||
@fa-font-size-base: 14px
|
||||
@fa-font-name: 'FontAwesome';
|
||||
//@fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/4.3.0/fonts"; // for referencing Bootstrap CDN font files directly
|
||||
@fa-css-prefix: fa;
|
||||
@fa-version: "4.3.0";
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
.#{$fa-css-prefix} {
|
||||
display: inline-block;
|
||||
font: normal normal normal #{$fa-font-size-base}/1 FontAwesome; // shortening font declaration
|
||||
font: normal normal normal #{$fa-font-size-base}/1 #{$fa-font-name}; // 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;
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
$fa-font-path: "../fonts" !default;
|
||||
$fa-font-size-base: 14px !default;
|
||||
$fa-font-name: 'FontAwesome' !default;
|
||||
//$fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/4.3.0/fonts" !default; // for referencing Bootstrap CDN font files directly
|
||||
$fa-css-prefix: fa !default;
|
||||
$fa-version: "4.3.0" !default;
|
||||
|
Loading…
Reference in New Issue
Block a user