_core.scss 1018 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // base icon class definition
  2. // -------------------------
  3. .#{$fa-css-prefix} {
  4. font-family: var(--#{$fa-css-prefix}-style-family, '#{$fa-style-family}');
  5. font-weight: var(--#{$fa-css-prefix}-style, #{$fa-style});
  6. }
  7. .fas,
  8. .far,
  9. .fab,
  10. .#{$fa-css-prefix}-solid,
  11. .#{$fa-css-prefix}-regular,
  12. .#{$fa-css-prefix}-brands,
  13. .#{$fa-css-prefix} {
  14. -moz-osx-font-smoothing: grayscale;
  15. -webkit-font-smoothing: antialiased;
  16. display: var(--#{$fa-css-prefix}-display, #{$fa-display});
  17. font-style: normal;
  18. font-variant: normal;
  19. line-height: 1;
  20. text-rendering: auto;
  21. }
  22. .fas::before,
  23. .far::before,
  24. .fab::before,
  25. .#{$fa-css-prefix}-solid::before,
  26. .#{$fa-css-prefix}-regular::before,
  27. .#{$fa-css-prefix}-brands::before,
  28. .fa::before {
  29. content: var(#{$fa-icon-property});
  30. }
  31. .#{$fa-css-prefix}-classic,
  32. .fas,
  33. .#{$fa-css-prefix}-solid,
  34. .far,
  35. .#{$fa-css-prefix}-regular {
  36. font-family: 'Font Awesome 6 Free';
  37. }
  38. .#{$fa-css-prefix}-brands,
  39. .fab {
  40. font-family: 'Font Awesome 6 Brands';
  41. }
  42. %fa-icon {
  43. @include fa-icon;
  44. }