Created
March 14, 2014 11:09
-
-
Save heyMP/9545823 to your computer and use it in GitHub Desktop.
Child Margin Fixer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin child-margin-fixer($selector:'*') { | |
& > #{$selector}:first-child, | |
& > #{$selector}:last-child, | |
& > #{$selector}:last-child > #{$selector}:last-child, | |
& > #{$selector}:last-child > #{$selector}:last-child > #{$selector}:last-child { | |
margin: 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment