| 1 |
/*! |
| 2 |
* Font Awesome Free 7.3.0 by @fontawesome - https://fontawesome.com |
| 3 |
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) |
| 4 |
* Copyright 2026 Fonticons, Inc. |
| 5 |
*/ |
| 6 |
@use "sass:string"; |
| 7 |
@use 'variables' as v; |
| 8 |
@use 'mixins' as m; |
| 9 |
|
| 10 |
:root, :host { |
| 11 |
--#{v.$css-prefix}-family-classic: '#{ v.$family }'; |
| 12 |
--#{v.$css-prefix}-font-regular: normal 400 1em/1 var(--#{v.$css-prefix}-family-classic); |
| 13 |
|
| 14 |
/* deprecated: this older custom property will be removed next major release */ |
| 15 |
--#{v.$css-prefix}-style-family-classic: var(--#{v.$css-prefix}-family-classic); |
| 16 |
} |
| 17 |
|
| 18 |
|
| 19 |
@font-face { |
| 20 |
font-family: 'Font Awesome 7 Free'; |
| 21 |
font-style: normal; |
| 22 |
font-weight: 400; |
| 23 |
font-display: v.$font-display; |
| 24 |
src: url('#{v.$font-path}/fa-regular-400.woff2'); |
| 25 |
} |
| 26 |
|
| 27 |
|
| 28 |
.far { |
| 29 |
--#{v.$css-prefix}-family: var(--#{v.$css-prefix}-family-classic); |
| 30 |
--#{v.$css-prefix}-style: 400; |
| 31 |
} |
| 32 |
|
| 33 |
.#{v.$css-prefix}-classic { |
| 34 |
--#{v.$css-prefix}-family: var(--#{v.$css-prefix}-family-classic); |
| 35 |
} |
| 36 |
|
| 37 |
.#{v.$css-prefix}-regular { |
| 38 |
--#{v.$css-prefix}-style: 400; |
| 39 |
} |
| 40 |
|
| 41 |
// convenience mixin for declaring pseudo-elements by CSS variable, |
| 42 |
// including all style-specific font properties and ::before elements. |
| 43 |
@mixin icon($var) { |
| 44 |
@include m.fa-icon(Font Awesome 7 Free); |
| 45 |
@extend .#{v.$css-prefix}-regular; |
| 46 |
@extend .#{v.$css-prefix}-classic; |
| 47 |
|
| 48 |
&::before { |
| 49 |
content: string.unquote("\"#{ $var }\""); |
| 50 |
} |
| 51 |
} |