Skip to content

Instantly share code, notes, and snippets.

@mmintel
Created September 24, 2014 14:35
Show Gist options
  • Save mmintel/3c94d2363bb2716005a2 to your computer and use it in GitHub Desktop.
Save mmintel/3c94d2363bb2716005a2 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="class">asd</div>
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
//since 3.4 index() now returns null rather than false if the value isn’t found in the list.
$list: ();
.test {
@if index($list, test) == null {
$list: append($list,test);
}
content: $list; //I expected this to print 'test'...
}
() isn't a valid CSS value.
<div class="class">asd</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment