Skip to content

Instantly share code, notes, and snippets.

@pdaoust
Last active December 21, 2015 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdaoust/6345649 to your computer and use it in GitHub Desktop.
Save pdaoust/6345649 to your computer and use it in GitHub Desktop.
Unexpected behaviour with Sass nested selectors.
@mixin mini-link-reset {
&, &:hover, &:focus, &:active, &:visited {
color: inherit;
text-decoration: none;
}
}
a {
@include mini-link-reset;
color: red; /* Whoa, buddy, how did you get up there? */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment