admin管理员组

文章数量:1122846

I'm stuck writing a SCSS mixin like so:

@mixin icon($unicode) {
    content: $unicode;
}

I'm trying to get the content to feature a backslash in front of it so I can use the mixin like so: @include mixins.icon(f123) and it return content: "\f123".

How can I use template literals in SCSS? VS Code's formatter keeps removing backslashes.

本文标签: How do use template literals in SASSSCSSStack Overflow