浏览代码

Don't show double icons for fa-icon elements

JC Brand 5 年之前
父节点
当前提交
a497e8df3a
共有 1 个文件被更改,包括 10 次插入5 次删除
  1. 10 5
      sass/font-awesome.scss

+ 10 - 5
sass/font-awesome.scss

@@ -66,21 +66,26 @@
 
 #conversejs, .converse-website {
   /* Apparent font-awesome bug? The circle has some kind of bottom margin */
-  .far {
+
+  fa-icon:before {
+    content: none !important;
+  }
+
+  .far:not(fa-icon) {
     font-family: 'ConverseFontAwesomeRegular' !important;
     font-weight: 400;
   }
-  .fa,
-  .fas {
+  .fa:not(fa-icon),
+  .fas:not(fa-icon) {
     font-family: 'ConverseFontAwesomeSolid' !important;
     font-weight: 900;
   }
 
-  .fab {
+  .fab:not(fa-icon) {
     font-family: 'ConverseFontAwesomeBrands';
   }
 
-  .fa, .far, .fas, .fab {
+  .fa:not(fa-icon), .far:not(fa-icon), .fas:not(fa-icon), .fab:not(fa-icon) {
       display: inline-block;
       font-size: inherit;
       text-rendering: auto;