Skip to content

Instantly share code, notes, and snippets.

@antonkor
Created May 22, 2015 16:41
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 antonkor/33370eda4621548d178b to your computer and use it in GitHub Desktop.
Save antonkor/33370eda4621548d178b to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v3.2.4)
// ----
/* Nesting is real */
.parent {
color: red;
.nested-child {
color: green;
&.compound {
color: blue;
}
}
.grandparent & {
color: grey;
&.dad {
color: darkblue;
.ancestor & {
color: sepia;
}
.ancestor.compound & {
color: lightgray;
}
}
.child {
color: samon;
&.compound {
color: purple;
}
}
}
}
/* Nesting is real */
.parent {
color: red;
}
.parent .nested-child {
color: green;
}
.parent .nested-child.compound {
color: blue;
}
.grandparent .parent {
color: grey;
}
.grandparent .parent.dad {
color: darkblue;
}
.ancestor .grandparent .parent.dad {
color: sepia;
}
.ancestor.compound .grandparent .parent.dad {
color: lightgray;
}
.grandparent .parent .child {
color: samon;
}
.grandparent .parent .child.compound {
color: purple;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment