Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
$cup-colour: #0000ff;
.cup {
color: $cup-colour;
&__milk {
liquid: milk;
calcium: 10g;
&--chocolate {
flavour: chocolate;
/* only the things that make it different from .cup__milk */
}
&__straw {
color: $cup-colour;
}
}
}
.cup {
color: #0000ff;
}
.cup__milk {
liquid: milk;
calcium: 10g;
}
.cup__milk--chocolate {
flavour: chocolate;
/* only the things that make it different from .cup__milk */
}
.cup__milk__straw {
color: #0000ff;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment