Created
October 27, 2014 10:30
-
-
Save ReneKriest/79bafdaa6a0de1430b4a to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// 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; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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