_core.less 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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}-sharp-solid,
  14. .@{fa-css-prefix}-classic,
  15. .@{fa-css-prefix} {
  16. -moz-osx-font-smoothing: grayscale;
  17. -webkit-font-smoothing: antialiased;
  18. display: ~'var(--@{fa-css-prefix}-display, @{fa-display})';
  19. font-style: normal;
  20. font-variant: normal;
  21. line-height: 1;
  22. text-rendering: auto;
  23. }
  24. .fas::before,
  25. .far::before,
  26. .fab::before,
  27. .@{fa-css-prefix}-solid::before,
  28. .@{fa-css-prefix}-regular::before,
  29. .@{fa-css-prefix}-brands::before,
  30. .fa::before {
  31. content: ~'var(@{fa-icon-property})';
  32. }
  33. .@{fa-css-prefix}-classic,
  34. .fas,
  35. .@{fa-css-prefix}-solid,
  36. .far,
  37. .@{fa-css-prefix}-regular {
  38. font-family: 'Font Awesome 6 Free';
  39. }
  40. .@{fa-css-prefix}-brands,
  41. .fab {
  42. font-family: 'Font Awesome 6 Brands';
  43. }