2022-10-08 12:19:19 +08:00

85 lines
1.7 KiB
SCSS

// base icon class definition
// -------------------------
@import 'variables';
.#{$fa-css-prefix} {
font-family: var(--#{$fa-css-prefix}-style-family, '#{$fa-style-family}');
font-weight: var(--#{$fa-css-prefix}-style, #{$fa-style});
}
.#{$fa-css-prefix},
.#{$fa-css-prefix}-classic,
.#{$fa-css-prefix}-sharp,
.fas,
.#{$fa-css-prefix}-solid,
.far,
.#{$fa-css-prefix}-regular,
.fab,
.#{$fa-css-prefix}-brands,
.fal,
.#{$fa-css-prefix}-light,
.fat,
.#{$fa-css-prefix}-thin,
.fad,
.#{$fa-css-prefix}-duotone,
.fass,
.#{$fa-css-prefix}-sharp,
.#{$fa-css-prefix}-sharp-solid
{
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
display: var(--#{$fa-css-prefix}-display, #{$fa-display});
font-style: normal;
font-variant: normal;
line-height: 1;
text-rendering: auto;
}
//.fa, .fa-brands, .fa-classic, .fa-duotone, .fa-light, .fa-regular, .fa-sharp, .fa-sharp-solid, .fa-solid, .fa-thin, .fab, .fad, .fal, .far, .fas, .fass, .fat
.fas,
.#{$fa-css-prefix}-classic,
.#{$fa-css-prefix}-solid {
font-family: $fa-style-family-solid;
}
.far,
.#{$fa-css-prefix}-classic,
.#{$fa-css-prefix}-regular{
font-family: $fa-style-family-regular;
}
.fal,
.#{$fa-css-prefix}-classic,
.#{$fa-css-prefix}-light{
font-family: $fa-style-family-light;
}
.fad,
.#{$fa-css-prefix}-classic,
.#{$fa-css-prefix}-duotone {
font-family: $fa-style-family-duotone;
}
.fat,
.#{$fa-css-prefix}-classic,
.#{$fa-css-prefix}-thin
{
font-family: $fa-style-family-thin;
}
.fab,
.#{$fa-css-prefix}-brands {
font-family: $fa-style-family-brands;
}
.fass,
.#{$fa-css-prefix}-harp-solid.#{$fa-css-prefix}-solid {
font-family: $fa-style-family-sharp-solid;
}
%fa-icon {
@include fa-icon;
}