Skip to content

Instantly share code, notes, and snippets.

@mattdrose
Created September 29, 2014 22:57
Show Gist options
  • Save mattdrose/62bf3b3ee9a9963908dc to your computer and use it in GitHub Desktop.
Save mattdrose/62bf3b3ee9a9963908dc to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
@mixin module($namespace) {
.#{$namespace},
[class^="#{$namespace}--"],
[class*=" #{$namespace}--"] {
@content;
}
}
@include module("button") {
display: inline-block;
vertical-align: middle;
font-family: inherit;
margin: 0;
border: 1px solid #333;
padding: 0.5em 1em;
cursor: pointer;
background-color: #eee;
}
.button,
[class^="button--"],
[class*=" button--"] {
display: inline-block;
vertical-align: middle;
font-family: inherit;
margin: 0;
border: 1px solid #333;
padding: 0.5em 1em;
cursor: pointer;
background-color: #eee;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment