Skip to content

Instantly share code, notes, and snippets.

@MichaelArestad
Created July 24, 2014 16:25
Show Gist options
  • Select an option

  • Save MichaelArestad/4b4f9ddfbfb31f394784 to your computer and use it in GitHub Desktop.

Select an option

Save MichaelArestad/4b4f9ddfbfb31f394784 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.10)
// Compass (v1.0.0.alpha.20)
// ----
$genericons:(
up: up,
down: down
);
%genericons {
font-family: Genericons;
font-weight: normal;
font-size: 20px;
}
@mixin genericons($icon, $size: 1){
content: '#{map-get($genericons, $icon)}';
@if $size != 1 {
font-size: 20px * $size;
}
@extend %genericons;
}
.standard:before {
@include genericons(up);
}
.double:before {
@include genericons(up, 2);
}
.standard:before, .double:before {
font-family: Genericons;
font-weight: normal;
font-size: 20px;
}
.standard:before {
content: "up";
}
.double:before {
content: "up";
font-size: 40px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment