Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ForkAwesome/Fork-Awesome.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorJulien Deswaef <judeswae@thoughtworks.com>2018-02-04 23:21:27 +0300
committerGitHub <noreply@github.com>2018-02-04 23:21:27 +0300
commit860aecf5b89f9fa7f02a8ad624fbe22c844b7f0e (patch)
tree2e634cbe22117565b31c5712f95c7ee1fdb0dfed /less
parent2453b2726227273ef497f53e6654130a31de7456 (diff)
parentcac2895612ccb8adbf746534c2448e0592f77363 (diff)
Merge pull request #3 from james-johnston-thumbtack/font-face-naming
Allow custom naming of font family
Diffstat (limited to 'less')
-rw-r--r--less/core.less2
-rw-r--r--less/mixins.less2
-rw-r--r--less/path.less2
-rw-r--r--less/variables.less1
4 files changed, 4 insertions, 3 deletions
diff --git a/less/core.less b/less/core.less
index c577ac84a..462762260 100644
--- a/less/core.less
+++ b/less/core.less
@@ -3,7 +3,7 @@
.@{fa-css-prefix} {
display: inline-block;
- font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration
+ font: normal normal normal @fa-font-size-base/@fa-line-height-base @fa-font-family; // 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;
diff --git a/less/mixins.less b/less/mixins.less
index beef231d0..f0ebc0217 100644
--- a/less/mixins.less
+++ b/less/mixins.less
@@ -3,7 +3,7 @@
.fa-icon() {
display: inline-block;
- font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration
+ font: normal normal normal @fa-font-size-base/@fa-line-height-base @fa-font-family; // 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;
diff --git a/less/path.less b/less/path.less
index 835be41f8..2164ff303 100644
--- a/less/path.less
+++ b/less/path.less
@@ -2,7 +2,7 @@
* -------------------------- */
@font-face {
- font-family: 'FontAwesome';
+ font-family: '@{fa-font-family}';
src: url('@{fa-font-path}/fontawesome-webfont.eot?v=@{fa-version}');
src: url('@{fa-font-path}/fontawesome-webfont.eot?#iefix&v=@{fa-version}') format('embedded-opentype'),
url('@{fa-font-path}/fontawesome-webfont.woff2?v=@{fa-version}') format('woff2'),
diff --git a/less/variables.less b/less/variables.less
index 979131734..4ab4a20fc 100644
--- a/less/variables.less
+++ b/less/variables.less
@@ -6,6 +6,7 @@
@fa-line-height-base: 1;
//@fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/4.7.0/fonts"; // for referencing Bootstrap CDN font files directly
@fa-css-prefix: fa;
+@fa-font-family: FontAwesome;
@fa-version: "4.7.0";
@fa-border-color: #eee;
@fa-inverse: #fff;