Skip to content

Instantly share code, notes, and snippets.

@cpruitt
Created December 19, 2013 20:01
Show Gist options
  • Save cpruitt/8045277 to your computer and use it in GitHub Desktop.
Save cpruitt/8045277 to your computer and use it in GitHub Desktop.
/* This generates no CSS output by itself */
@mixin zeroed {
margin: 0;
padding: 0;
list-style: none;
li {
margin: 0;
padding: 0;
}
}
/* These two will output as though you'd
manually written the above into them */
ul.some-vertical-list {
@include zeroed;
font-size:18px;
font-weight:bold;
}
ul.some-horizontal-list {
@include zeroed;
font-size:10px;
display: inline;
li {
display: inline;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment