Created
April 19, 2017 14:48
-
-
Save jonnymaceachern/3ab8554f759d89f91f07da2e1a5b90df to your computer and use it in GitHub Desktop.
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
/** | |
* Trim beginning and end of group | |
*/ | |
@mixin trim-padding { | |
&:first-of-type { | |
padding-left: 0; | |
} | |
&:last-of-type { | |
padding-right: 0; | |
} | |
} | |
@mixin trim-margin { | |
&:first-of-type { | |
margin-left: 0; | |
} | |
&:last-of-type { | |
margin-right: 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment