Skip to content

Instantly share code, notes, and snippets.

@iammerrick
Created November 15, 2010 18:39
Show Gist options
  • Save iammerrick/700751 to your computer and use it in GitHub Desktop.
Save iammerrick/700751 to your computer and use it in GitHub Desktop.
The ampersand with reference the parent selector. Mmmm....
// SCSS
a{
color: #ff0000;
&:hover{
color: #660000;
}
}
// CSS Output
a{ color: #ff0000; }
a:hover{ color: #660000; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment