Skip to content

Instantly share code, notes, and snippets.

@johnw86
Created May 18, 2012 10:10
Show Gist options
  • Save johnw86/2724435 to your computer and use it in GitHub Desktop.
Save johnw86/2724435 to your computer and use it in GitHub Desktop.
.NamedColors(@name, @color)
{
(~"body.@{name}") {
h1{
color: @color;
}
}
(~"li.@{name}"){
a{
background-image: ~'url("/media/@{name}_triangle.png")';
}
}
}
.NamedColors(pink, #ef309b);
.NamedColors(blue, #2cb6e5);
.NamedColors(green, #9acb51);
.NamedColors(orange, #faab28);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment