feat: duotone图标样式配置

This commit is contained in:
h_mo 2022-09-28 20:53:06 +08:00
parent b60f7fa728
commit 998c87fa76
2 changed files with 9 additions and 4 deletions

View File

@ -48,6 +48,11 @@ $fa-stack-z-index : auto !default;
$fa-font-display : block !default;
$fa-font-path : "./webfonts" !default;
$fa-primary-color : inherit !default;
$fa-primary-opacity : 1 !default;
$fa-secondary-opacity : 4 !default;
$fa-secondary-color : inherit !default;
$fa-var-0: \30;
$fa-var-1: \31;
$fa-var-2: \32;

View File

@ -28,8 +28,8 @@
.fad:before,
.#{$fa-css-prefix}-duotone:before{
position: absolute;
color: var(--fa-primary-color,inherit);
opacity: var(--fa-primary-opacity,1);
color: $fa-primary-color;
opacity: $fa-primary-opacity;
}
.#{$fa-css-prefix}-duotone.#{$fa-css-prefix}-swap-opacity:before,
@ -38,9 +38,9 @@
.fad:before,
.fad.#{$fa-css-prefix}-swap-opacity:before,
.fad:after {
opacity: var(--fa-secondary-opacity,.4);
opacity: $fa-secondary-opacity;
}
.#{$fa-css-prefix}-duotone:after, .fad:after {
color: var(--fa-secondary-color,inherit);
color: $fa-secondary-color;
}