Skip to content

Instantly share code, notes, and snippets.

@BPScott
Created February 27, 2015 15:38
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 BPScott/cf3d0f690cdfcd6e473f to your computer and use it in GitHub Desktop.
Save BPScott/cf3d0f690cdfcd6e473f to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v3.1.0)
// ----
$some-list: (item1, item2, item3);
@mixin someMixin($first, $second, $third) {
.mixin-variables-proving-the-mix-ca{
content: '#{$first}, #{second} #{third}';
}
}
/* Should have content: 'item1, item2, item3'; */
.prove-list-is-defined-initially {
content: '#{$some-list}';
}
@include someMixin(nth($some-list,1), nth($some-list,2), nth($some-list,3));
/* Should have content: 'item1, item2, item3'; */
.prove-list-is-set-after-calling-mixin-with-explicit-parameters {
content: '#{$some-list}';
}
@include someMixin($some-list...);
/* Should have content: 'item1, item2, item3'; */
/* With libsass 3.1.0 this has content: ''; */
.prove-list-is-set-after-calling-mixin-with-list-as-arguments {
content: '#{$some-list}';
}
/* Should have content: 'item1, item2, item3'; */
.prove-list-is-defined-initially {
content: 'item1, item2, item3'; }
.mixin-variables-proving-the-mix-ca {
content: 'item1, second third'; }
/* Should have content: 'item1, item2, item3'; */
.prove-list-is-set-after-calling-mixin-with-explicit-parameters {
content: 'item1, item2, item3'; }
.mixin-variables-proving-the-mix-ca {
content: 'item1, second third'; }
/* Should have content: 'item1, item2, item3'; */
/* With libsass 3.1.0 this has content: ''; */
.prove-list-is-set-after-calling-mixin-with-list-as-arguments {
content: ''; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment