Skip to content

Instantly share code, notes, and snippets.

@entozoon
Created January 20, 2015 20:21
Show Gist options
  • Save entozoon/adb1e644178db6447fcc to your computer and use it in GitHub Desktop.
Save entozoon/adb1e644178db6447fcc to your computer and use it in GitHub Desktop.
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