Skip to content

Instantly share code, notes, and snippets.

@jdsteinbach
Last active September 15, 2015 19:46
Show Gist options
  • Select an option

  • Save jdsteinbach/b2717883c8f1b4ed5215 to your computer and use it in GitHub Desktop.

Select an option

Save jdsteinbach/b2717883c8f1b4ed5215 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
@font-face {
font-family: FA;
src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/fonts/fontawesome-webfont.woff');
}
div {
height: 20px;
width: 20px;
$foo: '\f030';
$baz: '\f050';
$bar: '\f060';
&:after {
font-family: FA;
display: block;
}
&:first-child:after {
content: $foo;
}
&:nth-child(2):after {
content: $bar;
}
&:last-child:after {
content: $baz;
}
}
/* wanting content: "\f102"; */
@charset "UTF-8";
@font-face {
font-family: FA;
src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/fonts/fontawesome-webfont.woff");
}
div {
height: 20px;
width: 20px;
}
div:after {
font-family: FA;
display: block;
}
div:first-child:after {
content: "";
}
div:nth-child(2):after {
content: "";
}
div:last-child:after {
content: "";
}
/* wanting content: "\f102"; */
<div class='div'></div>
<div class='div'></div>
<div class='div'></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment