Skip to content

Instantly share code, notes, and snippets.

@cimmanon
Created January 27, 2016 20:05
Show Gist options
  • Save cimmanon/7fe14ce08218c952abdc to your computer and use it in GitHub Desktop.
Save cimmanon/7fe14ce08218c952abdc to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.20)
// Compass (v1.0.3)
// ----
$first: first_1 first_2;
$second: second_1 second_2;
@each $data in $first {
$i: index($first, $data);
@each $content in $second {
.example-class[data-reactid$='#{$data}'] {
&:before {
content: '#{$content}';
}
}
}
}
.example-class[data-reactid$='first_1']:before {
content: "second_1";
}
.example-class[data-reactid$='first_1']:before {
content: "second_2";
}
.example-class[data-reactid$='first_2']:before {
content: "second_1";
}
.example-class[data-reactid$='first_2']:before {
content: "second_2";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment