mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2024-12-28 06:21:30 +08:00
Add feature to customize line-height-base
This commit is contained in:
parent
dcbac6038d
commit
c39a063a09
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
.@{fa-css-prefix} {
|
.@{fa-css-prefix} {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font: normal normal normal @fa-font-size-base/1 FontAwesome; // shortening font declaration
|
font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration
|
||||||
font-size: inherit; // can't have font-size inherit on line above, so need to override
|
font-size: inherit; // can't have font-size inherit on line above, so need to override
|
||||||
text-rendering: auto; // optimizelegibility throws things off #1094
|
text-rendering: auto; // optimizelegibility throws things off #1094
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
.fa-icon() {
|
.fa-icon() {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font: normal normal normal @fa-font-size-base/1 FontAwesome; // shortening font declaration
|
font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration
|
||||||
font-size: inherit; // can't have font-size inherit on line above, so need to override
|
font-size: inherit; // can't have font-size inherit on line above, so need to override
|
||||||
text-rendering: auto; // optimizelegibility throws things off #1094
|
text-rendering: auto; // optimizelegibility throws things off #1094
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
@fa-font-path: "../fonts";
|
@fa-font-path: "../fonts";
|
||||||
@fa-font-size-base: 14px;
|
@fa-font-size-base: 14px;
|
||||||
|
@fa-line-height-base: 1;
|
||||||
//@fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/4.3.1/fonts"; // for referencing Bootstrap CDN font files directly
|
//@fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/4.3.1/fonts"; // for referencing Bootstrap CDN font files directly
|
||||||
@fa-css-prefix: fa;
|
@fa-css-prefix: fa;
|
||||||
@fa-version: "4.3.1";
|
@fa-version: "4.3.1";
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
.#{$fa-css-prefix} {
|
.#{$fa-css-prefix} {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font: normal normal normal #{$fa-font-size-base}/1 FontAwesome; // shortening font declaration
|
font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} FontAwesome; // shortening font declaration
|
||||||
font-size: inherit; // can't have font-size inherit on line above, so need to override
|
font-size: inherit; // can't have font-size inherit on line above, so need to override
|
||||||
text-rendering: auto; // optimizelegibility throws things off #1094
|
text-rendering: auto; // optimizelegibility throws things off #1094
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
@mixin fa-icon() {
|
@mixin fa-icon() {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font: normal normal normal #{$fa-font-size-base}/1 FontAwesome; // shortening font declaration
|
font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} FontAwesome; // shortening font declaration
|
||||||
font-size: inherit; // can't have font-size inherit on line above, so need to override
|
font-size: inherit; // can't have font-size inherit on line above, so need to override
|
||||||
text-rendering: auto; // optimizelegibility throws things off #1094
|
text-rendering: auto; // optimizelegibility throws things off #1094
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
$fa-font-path: "../fonts" !default;
|
$fa-font-path: "../fonts" !default;
|
||||||
$fa-font-size-base: 14px !default;
|
$fa-font-size-base: 14px !default;
|
||||||
|
$fa-line-height-base: 1 !default;
|
||||||
//$fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/4.3.1/fonts" !default; // for referencing Bootstrap CDN font files directly
|
//$fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/4.3.1/fonts" !default; // for referencing Bootstrap CDN font files directly
|
||||||
$fa-css-prefix: fa !default;
|
$fa-css-prefix: fa !default;
|
||||||
$fa-version: "4.3.1" !default;
|
$fa-version: "4.3.1" !default;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
font: normal normal normal @fa-font-size-base/1 FontAwesome; // shortening font declaration
|
font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration
|
||||||
font-size: inherit; // can't have font-size inherit on line above, so need to override
|
font-size: inherit; // can't have font-size inherit on line above, so need to override
|
||||||
text-rendering: auto; // optimizelegibility throws things off #1094
|
text-rendering: auto; // optimizelegibility throws things off #1094
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
font: normal normal normal #{$fa-font-size-base}/1 FontAwesome; // shortening font declaration
|
font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} FontAwesome; // shortening font declaration
|
||||||
font-size: inherit; // can't have font-size inherit on line above, so need to override
|
font-size: inherit; // can't have font-size inherit on line above, so need to override
|
||||||
text-rendering: auto; // optimizelegibility throws things off #1094
|
text-rendering: auto; // optimizelegibility throws things off #1094
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
|
1
src/assets/font-awesome/less/variables.less
vendored
1
src/assets/font-awesome/less/variables.less
vendored
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
@fa-font-path: "../fonts";
|
@fa-font-path: "../fonts";
|
||||||
@fa-font-size-base: 14px;
|
@fa-font-size-base: 14px;
|
||||||
|
@fa-line-height-base: 1;
|
||||||
//@fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/{{site.fontawesome.version}}/fonts"; // for referencing Bootstrap CDN font files directly
|
//@fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/{{site.fontawesome.version}}/fonts"; // for referencing Bootstrap CDN font files directly
|
||||||
@fa-css-prefix: {{ site.fontawesome.css_prefix }};
|
@fa-css-prefix: {{ site.fontawesome.css_prefix }};
|
||||||
@fa-version: "{{ site.fontawesome.version }}";
|
@fa-version: "{{ site.fontawesome.version }}";
|
||||||
|
1
src/assets/font-awesome/scss/_variables.scss
vendored
1
src/assets/font-awesome/scss/_variables.scss
vendored
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
$fa-font-path: "../fonts" !default;
|
$fa-font-path: "../fonts" !default;
|
||||||
$fa-font-size-base: 14px !default;
|
$fa-font-size-base: 14px !default;
|
||||||
|
$fa-line-height-base: 1 !default;
|
||||||
//$fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/{{site.fontawesome.version}}/fonts" !default; // for referencing Bootstrap CDN font files directly
|
//$fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/{{site.fontawesome.version}}/fonts" !default; // for referencing Bootstrap CDN font files directly
|
||||||
$fa-css-prefix: {{ site.fontawesome.css_prefix }} !default;
|
$fa-css-prefix: {{ site.fontawesome.css_prefix }} !default;
|
||||||
$fa-version: "{{ site.fontawesome.version }}" !default;
|
$fa-version: "{{ site.fontawesome.version }}" !default;
|
||||||
|
Loading…
Reference in New Issue
Block a user