Skip to content

Instantly share code, notes, and snippets.

@P233
Created July 31, 2014 08:53
Show Gist options
  • Save P233/efe05764ee61d0e76c03 to your computer and use it in GitHub Desktop.
Save P233/efe05764ee61d0e76c03 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.0.rc.2)
// Compass (v1.0.0.alpha.21)
// ----
$value-1: one;
$value-2: two;
$list-1: one two;
$list-2: three four;
$empty: ();
body {
// combine two single values, works fine
list-1: append($value-1, $value-2, comma);
// combine two space separated lists, not works
list-2: append($list-1, $list-2, comma);
list-2-length: length(append($list-1, $list-2, comma));
// combine an empty value and two space separated lists, works fine again
list-3: append(append($empty, $list-1), $list-2, comma);
list-3-length: length(append(append($empty, $list-1), $list-2, comma));
}
body {
list-1: one, two;
list-2: one, two, three four;
list-2-length: 3;
list-3: one two, three four;
list-3-length: 2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment