Skip to content

Instantly share code, notes, and snippets.

@seven-phases-max
Last active August 29, 2015 14:02
Show Gist options
  • Select an option

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

Select an option

Save seven-phases-max/ceb9b792e99ae3d5496a to your computer and use it in GitHub Desktop.
.button-link {
.imlazyandherearemycolors(white, black);
}
.not-button-link {
.imlazyandherearemycolors(red, blue);
}
.imlazyandherearemycolors(@fore, @back: (#fff - @fore), @state: ~':hover') {
color: @fore;
background: @back;
&@{state} {
color: @back;
background: @fore;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment