1
0
mirror of https://github.com/flarum/core.git synced 2025-08-29 11:00:12 +02:00

chore: avoid using .fa() mixins and @fa-var vars (#3912)

This commit is contained in:
Sami Mazouz
2023-10-29 14:45:50 +01:00
committed by GitHub
parent 015529ff1e
commit 87a83d33b3
10 changed files with 38 additions and 29 deletions

View File

@@ -30,10 +30,7 @@
margin-left: 0;
}
// @TODO: 2.0 use an icon in the XSLT template.
&:before {
.fas();
content: @fa-var-reply;
.icon {
margin-right: 5px;
}
}

View File

@@ -122,10 +122,10 @@ class ConfigureMentions
$tag->template = '
<xsl:choose>
<xsl:when test="@deleted != 1">
<a href="{$DISCUSSION_URL}{@discussionid}/{@number}" class="PostMention" data-id="{@id}"><xsl:value-of select="@displayname"/></a>
<a href="{$DISCUSSION_URL}{@discussionid}/{@number}" class="PostMention" data-id="{@id}"><i class="icon fas fa-reply"></i><xsl:value-of select="@displayname"/></a>
</xsl:when>
<xsl:otherwise>
<span class="PostMention PostMention--deleted" data-id="{@id}"><xsl:value-of select="@displayname"/></span>
<span class="PostMention PostMention--deleted" data-id="{@id}"><i class="icon fas fa-reply"></i><xsl:value-of select="@displayname"/></span>
</xsl:otherwise>
</xsl:choose>';