Created
January 20, 2015 12:52
-
-
Save robinrendle/dcd985f71803ddd6cb97 to your computer and use it in GitHub Desktop.
Mixin for sorting all child elements’ margin + padding
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
// stolen from @charlotte_dann : https://twitter.com/charlotte_dann/status/557511812430983168 | |
@mixin trim(){ | |
> *:first-child { | |
} | |
> *:last-child { | |
margin-bottom: 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment