Skip to content

Instantly share code, notes, and snippets.

@carrieforde
Last active January 4, 2017 04:37
Show Gist options
  • Save carrieforde/51320fc3fa590cb0d5c27120fd7a9e6c to your computer and use it in GitHub Desktop.
Save carrieforde/51320fc3fa590cb0d5c27120fd7a9e6c to your computer and use it in GitHub Desktop.
Sass snippets
@mixin element($element) {
&__#{$element} {
@content;
}
}
@mixin modifier($modifier) {
&--#{$modifier) {
@content;
}
}
@mixin vertical-rhythym($margin: rem(60)) {
& + & {
margin-top: $margin;
@content;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment