| 1 |
// base icon class definition |
| 2 |
// ------------------------- |
| 3 |
@use 'variables' as v; |
| 4 |
@use 'mixins' as m; |
| 5 |
|
| 6 |
.#{v.$css-prefix}-solid, |
| 7 |
.#{v.$css-prefix}-regular, |
| 8 |
.#{v.$css-prefix}-brands, |
| 9 |
.#{v.$css-prefix}-classic, |
| 10 |
.fas, |
| 11 |
.far, |
| 12 |
.fab, |
| 13 |
.#{v.$css-prefix} { |
| 14 |
@include m.fa-icon(); |
| 15 |
} |
| 16 |
|
| 17 |
:is( |
| 18 |
.fas, |
| 19 |
.far, |
| 20 |
.fab, |
| 21 |
.#{v.$css-prefix}-solid, |
| 22 |
.#{v.$css-prefix}-regular, |
| 23 |
.#{v.$css-prefix}-brands, |
| 24 |
.#{v.$css-prefix}-classic, |
| 25 |
.fa |
| 26 |
)::before { |
| 27 |
content: var(#{v.$icon-property})/""; |
| 28 |
} |
| 29 |
|
| 30 |
@supports not (content: ''/'') { |
| 31 |
:is( |
| 32 |
.fas, |
| 33 |
.far, |
| 34 |
.fab, |
| 35 |
.#{v.$css-prefix}-solid, |
| 36 |
.#{v.$css-prefix}-regular, |
| 37 |
.#{v.$css-prefix}-brands, |
| 38 |
.#{v.$css-prefix}-classic, |
| 39 |
.fa |
| 40 |
)::before { |
| 41 |
content: var(#{v.$icon-property}); |
| 42 |
} |
| 43 |
} |