Skip to content

Instantly share code, notes, and snippets.

@robinrendle
Created January 20, 2015 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robinrendle/dcd985f71803ddd6cb97 to your computer and use it in GitHub Desktop.
Save robinrendle/dcd985f71803ddd6cb97 to your computer and use it in GitHub Desktop.
Mixin for sorting all child elements’ margin + padding
// 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