Skip to content

Instantly share code, notes, and snippets.

@mturjak
Created February 8, 2014 10:31
Show Gist options
  • Select an option

  • Save mturjak/8881632 to your computer and use it in GitHub Desktop.

Select an option

Save mturjak/8881632 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<span class="foo"></span>
// ----
// Sass (v3.3.0.rc.3)
// Compass (v1.0.0.alpha.18)
// ----
@mixin make-icon ($name, $code) {
.#{$name}::before {
content: str-slice("\x",1,1) + $code;
}
}
@include make-icon('foo', 4556);
.foo::before {
content: "\4556";
}
<span class="foo"></span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment