Skip to content

Instantly share code, notes, and snippets.

@awestmoreland
Last active December 17, 2015 04:59
Show Gist options
  • Save awestmoreland/5554916 to your computer and use it in GitHub Desktop.
Save awestmoreland/5554916 to your computer and use it in GitHub Desktop.
This failed because 4 and 6 are both factors of 12, so the omega is added to the 12th member by the :nth-child(4n+4) rule, then removed by the :nth-child(6n+6) rule. Solution: Reverse the order (remove, then add).
figure{
@include at-breakpoint($size-20){
@include span-columns(3,12);
&:nth-child(4n+4){
@include omega;
}
&:nth-child(6n+6){
@include remove-omega;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment