Skip to content

Instantly share code, notes, and snippets.

@wilfred05777
Created July 1, 2015 08:34
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 wilfred05777/7a2162398a359daa02e8 to your computer and use it in GitHub Desktop.
Save wilfred05777/7a2162398a359daa02e8 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
%yes-extend{
background: url(http://www.placekitten.com/209/200) no-repeat;
}
%no-extend{
background:no-kittens;
}
@mixin my-mixin($val1, $val2:1em, $val3:false){
color:$val1;
font-size:$val2;
@if $val3 { @extend %yes-extend; }
@else { @extend %no-extend; }
}
.my-class{
@include my-mixin(green);
}
.my-class {
background: no-kittens;
}
.my-class {
color: green;
font-size: 1em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment