Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Generated by SassMeister.com.
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
%component {
background: red;
&-sub {
background: orange;
}
}
@mixin component {
background: red;
&-sub {
background: orange;
}
}
// negeneruje .Component1-sub
.Component1 {
@extend %component;
}
// generuje .Component2-sub
.Component2 {
@include component;
}
.Component1 {
background: red;
}
.Component2 {
background: red;
}
.Component2-sub {
background: orange;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment