Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
@function prepend-slash($value) {
@return unquote('"\\#{$value}"');
}
// calling `prepend-slash` is only necessary when using a variable
$var-valid0: "f000";
$var-valid1: \f000;
$var-invalid: "\f000";
.valid0:before {
content: prepend-slash($var-valid0);
}
.valid1:before {
content: $var-valid1;
}
.invalid:before {
content: $var-invalid;
}
.no-var:before {
content: "\f000";
}
@charset "UTF-8";
.valid0:before {
content: "\f000";
}
.valid1:before {
content: \f000;
}
.invalid:before {
content: "";
}
.no-var:before {
content: "\f000";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.