Skip to content

Instantly share code, notes, and snippets.

@Anahkiasen
Created May 28, 2014 15:09
Show Gist options
  • Save Anahkiasen/654ca2b5570bb5b0314b to your computer and use it in GitHub Desktop.
Save Anahkiasen/654ca2b5570bb5b0314b to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.7)
// Compass (v1.0.0.alpha.18)
// ----
.icon {
font-family:"icons";
display:inline-block;
vertical-align:middle;
line-height:1;
font-weight:normal;
font-style:normal;
speak:none;
text-decoration:inherit;
text-transform:none;
text-rendering:optimizeLegibility;
-webkit-font-smoothing:antialiased;
-moz-osx-font-smoothing:grayscale;
}
.icon-activity-beach:before {
content:"\e001";
}
.icon-activity-city:before {
content:"\e002";
}
.icon-activity-family:before {
content:"\e003";
}
// Our code
$icons: ("activity-beach", "activity-city", "activity-family");
@each $icon in $icons {
%icon-#{$icon} {
&:before {
@extend .icon;
@extend .icon-#{$icon};
}
}
}
.test {
@extend %icon-activity-beach;
}
.icon, .test:before {
font-family: "icons";
display: inline-block;
vertical-align: middle;
line-height: 1;
font-weight: normal;
font-style: normal;
speak: none;
text-decoration: inherit;
text-transform: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-activity-beach:before, .test:before {
content: "\e001";
}
.icon-activity-city:before {
content: "\e002";
}
.icon-activity-family:before {
content: "\e003";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment