| 1 |
// Font Awesome 5 icons https://fontawesome.com |
| 2 |
@use '../sass-utilities' as *; |
| 3 |
@use '../assets/fontawesome/variables' as *; |
| 4 |
@use '../assets/fontawesome/icons' as icons; |
| 5 |
@use '../assets/fontawesome' as *; |
| 6 |
|
| 7 |
@if not($pf-v6-global--disable-fontawesome) { |
| 8 |
@if $pf-v6-global--enable-fontawesome-cdn { |
| 9 |
// stylelint-disable no-invalid-position-at-import-rule |
| 10 |
@import "https://use.fontawesome.com/releases/v5.7.2/css/solid.css"; |
| 11 |
@import "https://use.fontawesome.com/releases/v5.7.2/css/fontawesome.css"; |
| 12 |
// stylelint-enable no-invalid-position-at-import-rule |
| 13 |
} @else { |
| 14 |
@font-face { |
| 15 |
font-family: "Font Awesome 5 Free"; |
| 16 |
font-style: normal; |
| 17 |
font-weight: 900; |
| 18 |
src: |
| 19 |
url("#{$fa-font-path}/fa-solid-900.woff2") format("woff2"); |
| 20 |
} |
| 21 |
|
| 22 |
// stylelint-disable |
| 23 |
.fa, |
| 24 |
.fas { |
| 25 |
font-family: "Font Awesome 5 Free"; |
| 26 |
font-weight: 900; |
| 27 |
} |
| 28 |
// stylelint-enable |
| 29 |
|
| 30 |
@include icons.pf-fa-icon-vars; |
| 31 |
} |
| 32 |
} |
| 33 |
|
| 34 |
@mixin pf-fa-icon-base { |
| 35 |
display: inline-block; |
| 36 |
font-style: normal; |
| 37 |
font-variant: normal; |
| 38 |
line-height: 1; |
| 39 |
text-rendering: auto; |
| 40 |
-moz-osx-font-smoothing: grayscale; |
| 41 |
-webkit-font-smoothing: antialiased; |
| 42 |
} |
| 43 |
|
| 44 |
@if not($pf-v6-global--disable-fontawesome) { |
| 45 |
.#{$fa-css-prefix}, |
| 46 |
.fa, |
| 47 |
.fas, |
| 48 |
.far, |
| 49 |
.fal, |
| 50 |
.fab { |
| 51 |
@include pf-fa-icon-base; |
| 52 |
} |
| 53 |
} |