Skip to content

Instantly share code, notes, and snippets.

@seven-phases-max
Last active April 24, 2018 04:08
Show Gist options
  • Save seven-phases-max/d2713c9a34d1c91077a47eb9635cd1d6 to your computer and use it in GitHub Desktop.
Save seven-phases-max/d2713c9a34d1c91077a47eb9635cd1d6 to your computer and use it in GitHub Desktop.
@han_cart_icon: fa-shopping-cart;
@han_fa_version: v5;
.change_basket_icon() when (@han_cart_icon = fa-shopping-cart) {
i.ty-icon-moon-commerce,
.ty-icon-basket {
& when (@han_fa_version = v4) {
font-family: FontAwesome;
}
& when (@han_fa_version = v5) {
font-family: "Font Awesome\ 5 Free";
}
&:before {
content: "\f07a";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment