scss Sass:Font Awesome:在mixin之后

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了scss Sass:Font Awesome:在mixin之后相关的知识,希望对你有一定的参考价值。

// Usage:
@include font-awesome-after($fa-var-angle-double-right);
@include font-awesome-after($fa-var-angle-double-right, 8px);
// Custom Font Awesome :after
@mixin font-awesome-after($fa-icon, $margin: 5px) {
  &:after {
    font-family: FontAwesome;
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    content: $fa-icon;
    text-decoration: inherit;
    position: relative;
    margin-left: $margin;
  }
}

以上是关于scss Sass:Font Awesome:在mixin之后的主要内容,如果未能解决你的问题,请参考以下文章