Skip to content

Instantly share code, notes, and snippets.

@cimmanon
Last active February 11, 2016 13:27
Show Gist options
  • Save cimmanon/91c3399dbec7a601b1f3 to your computer and use it in GitHub Desktop.
Save cimmanon/91c3399dbec7a601b1f3 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
/* test one */
.pfx {
&__one &{
&__two {
color: red;
}
> &__two {
color: blue;
}
}
}
/* test two */
.pfx2 {
// Isn't this
&__one & {
> &__two {
color: red;
}
}
// The same as this?
&__one > &__two {
color: blue;
}
// The latter produces the expected output, the former being the same as the example
}
/* test one */
.pfx__one .pfx__two {
color: red;
}
> .pfx__one .pfx__two {
color: blue;
}
/* test two */
> .pfx2__one .pfx2__two {
color: red;
}
.pfx2__one > .pfx2__two {
color: blue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment