Skip to content

Instantly share code, notes, and snippets.

@orlovmax
Last active November 15, 2015 21:57
Show Gist options
  • Select an option

  • Save orlovmax/d4642c105a3034d0988a to your computer and use it in GitHub Desktop.

Select an option

Save orlovmax/d4642c105a3034d0988a to your computer and use it in GitHub Desktop.
Icon font + pseudoelement Sass workaround
@function unicode($str)
@return unquote("\"")+unquote(str-insert($str, "\\", 1))+unquote("\"")
$icons: (next: 'e804', prev: 'e805', twi: 'e806', loc: 'e807', fb: 'e808', pin: 'e809', gplus: 'e80a')
@each $icon in $icons
&_#{nth($icon, 1)}
&:before
content: unicode(nth($icon, 2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment