Skip to content

Instantly share code, notes, and snippets.

@seven-phases-max
Created April 3, 2014 08:44
Show Gist options
  • Select an option

  • Save seven-phases-max/9950738 to your computer and use it in GitHub Desktop.

Select an option

Save seven-phases-max/9950738 to your computer and use it in GitHub Desktop.
.icon(1) {&:extend(.icon_1);}
.icon(2) {&:extend(.icon_2);}
.icon(3) {&:extend(.icon_3);}
.icon(4) {&:extend(.icon_4);}
.icon(5) {&:extend(.icon_5);}
// etc.
.icon-hover(1) {&:extend(.icon_1_hover);}
.icon-hover(2) {&:extend(.icon_2_hover);}
.icon-hover(3) {&:extend(.icon_3_hover);}
.icon-hover(4) {&:extend(.icon_4_hover);}
.icon-hover(5) {&:extend(.icon_5_hover);}
// etc.
// usage:
// .icon(@i);
// .icon-hover(@i);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment