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

github.com/google/docsy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSami Ahmed Siddiqui <sami.siddiqui@yasglobal.com>2022-08-16 16:05:42 +0300
committerGitHub <noreply@github.com>2022-08-16 16:05:42 +0300
commit6df4c0721d95b3f72dfe4457c36950ce5dfaa60d (patch)
treed08eb5fd7ccd3433f00e835fa5551fcb51f59e68
parentd26d8856674fca15ee01cbccefd617ea2ee664c0 (diff)
Use SCSS variable for FA font name (#1176)
-rw-r--r--assets/scss/_nav.scss4
-rw-r--r--assets/scss/_search.scss2
-rw-r--r--assets/scss/_taxonomy.scss8
-rw-r--r--assets/scss/_variables.scss1
4 files changed, 8 insertions, 7 deletions
diff --git a/assets/scss/_nav.scss b/assets/scss/_nav.scss
index b603c8f..650e4ca 100644
--- a/assets/scss/_nav.scss
+++ b/assets/scss/_nav.scss
@@ -121,7 +121,7 @@
font-variant: normal;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
- font-family: "Font Awesome 6 Free";
+ font-family: $font-awesome-font-name;
font-weight: 900;
content: "\f0d9";
padding-left: 0.5em;
@@ -173,7 +173,7 @@ nav.foldable-nav {
font-variant: normal;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
- font-family: "Font Awesome 6 Free"; font-weight: 900; content: "\f0da";
+ font-family: $font-awesome-font-name; font-weight: 900; content: "\f0da";
position: absolute;
left: 0.1em;
padding-left: 0.4em;
diff --git a/assets/scss/_search.scss b/assets/scss/_search.scss
index 49de03d..c5768bb 100644
--- a/assets/scss/_search.scss
+++ b/assets/scss/_search.scss
@@ -14,7 +14,7 @@
border-radius: 1rem;
}
- font-family: "Font Awesome 6 Free", $font-family-base;
+ font-family: $font-awesome-font-name, $font-family-base;
}
.popover.offline-search-result {
diff --git a/assets/scss/_taxonomy.scss b/assets/scss/_taxonomy.scss
index 32ce511..ca6a360 100644
--- a/assets/scss/_taxonomy.scss
+++ b/assets/scss/_taxonomy.scss
@@ -207,7 +207,7 @@
font-variant: normal;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
- font-family: "Font Awesome 6 Free";
+ font-family: $font-awesome-font-name;
// font-weight: 900;
padding-right: 0.5em;
font-size: 2em;
@@ -298,7 +298,7 @@
font-variant: normal;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
- font-family: "Font Awesome 6 Free";
+ font-family: $font-awesome-font-name;
content: "\f02d";
padding-right: 0.5em;
}
@@ -309,7 +309,7 @@
font-variant: normal;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
- font-family: "Font Awesome 6 Free";
+ font-family: $font-awesome-font-name;
content: "\f781";
padding-right: 0.5em;
}
@@ -325,7 +325,7 @@
font-variant: normal;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
- font-family: "Font Awesome 6 Free";
+ font-family: $font-awesome-font-name;
content: "\f122";
padding-right: 0.5em;
}
diff --git a/assets/scss/_variables.scss b/assets/scss/_variables.scss
index ff47a3a..f9e6a30 100644
--- a/assets/scss/_variables.scss
+++ b/assets/scss/_variables.scss
@@ -63,6 +63,7 @@ $link-hover-decoration: none !default;
$google_font_name: "Open Sans" !default;
$google_font_family: "Open+Sans:300,300i,400,400i,700,700i" !default;
$web-font-path: "https://fonts.googleapis.com/css?family=#{$google_font_family}&display=swap";
+$font-awesome-font-name: "Font Awesome 6 Free" !default;
$td-fonts-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";