refactor(icons): upgrade font-awesome syntax to version 6

This commit is contained in:
Cotes Chung
2022-12-08 06:08:26 +08:00
parent 7fb0ee0bed
commit 5561cd86b5
3 changed files with 9 additions and 12 deletions

View File

@@ -141,14 +141,14 @@
transform: translateX(-50%);
}
@mixin prompt($type, $fw-icon, $icon-weight: 900) {
@mixin prompt($type, $fa-content, $fa-style: "solid") {
&.prompt-#{$type} {
background-color: var(--prompt-#{$type}-bg);
&::before {
content: $fw-icon;
content: $fa-content;
color: var(--prompt-#{$type}-icon-color);
font-weight: $icon-weight;
font: var(--fa-font-#{$fa-style});
}
}
}