Skip to content

Instantly share code, notes, and snippets.

@trub
Created April 8, 2014 20:42
Show Gist options
  • Select an option

  • Save trub/10188633 to your computer and use it in GitHub Desktop.

Select an option

Save trub/10188633 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.4)
// Compass (v1.0.0.alpha.18)
// ----
@mixin van($selector: '.seats') {
color: black;
windows: tinted;
license: texas;
@if $selector == '.seats' {
&#{$selector} {
seats: 10;
color: black;
@content;
}
} @else {
&#{$selector} {
@content;
}
}
}
.my-van {
@include van('.chairs');
dents: 3;
}
/*@mixin van {
color: black;
windows: tinted;
license: texas;
&.seats {
seats: 10;
color: black;
@content;
}
}
.my-van {
@include van;
}
.your-van {
@include van{
heated: yes;
fabric: leather;
electric: no;
}
}*/
.my-van {
color: black;
windows: tinted;
license: texas;
dents: 3; }
/*@mixin van {
color: black;
windows: tinted;
license: texas;
&.seats {
seats: 10;
color: black;
@content;
}
}
.my-van {
@include van;
}
.your-van {
@include van{
heated: yes;
fabric: leather;
electric: no;
}
}*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment