Skip to content

Instantly share code, notes, and snippets.

@ReneKriest
Created October 27, 2014 10:30
Show Gist options
  • Save ReneKriest/79bafdaa6a0de1430b4a to your computer and use it in GitHub Desktop.
Save ReneKriest/79bafdaa6a0de1430b4a to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.6)
// Compass (v1.0.1)
// ----
$class_list: icon-device, icon-explore, icon-recommend, icon-recentlywatched;
%class_styles {
content: '';
display: block;
position: absolute;
left: 0px;
top: -10px;
width: 50px;
height: 50px;
background-position: 50%;
background-repeat: no-repeat;
}
@mixin icon-classes {
@each $class in $class_list {
.#{$class}:before { @extend %class_styles; }
}
}
@include icon-classes;
.icon-device:before, .icon-explore:before, .icon-recommend:before, .icon-recentlywatched:before {
content: '';
display: block;
position: absolute;
left: 0px;
top: -10px;
width: 50px;
height: 50px;
background-position: 50%;
background-repeat: no-repeat;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment