Skip to content

Commit

Permalink
Use SCSS variable for FA font name (#1176)
Browse files Browse the repository at this point in the history
  • Loading branch information
samiahmedsiddiqui committed Aug 16, 2022
1 parent d26d885 commit 6df4c07
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions assets/scss/_nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion assets/scss/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions assets/scss/_taxonomy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -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;
}
Expand Down
1 change: 1 addition & 0 deletions assets/scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit 6df4c07

Please sign in to comment.