Last active
March 14, 2016 11:16
-
-
Save mrmartineau/0cd2010bf265d712bafb to your computer and use it in GitHub Desktop.
module naming mixins
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
@include component('foo') { | |
margin: auto; | |
@include modifier('bar') { | |
padding: 20px; | |
} | |
@include modifier('baz') { | |
padding: 50px; | |
@include respond-min($bp-single-col) { | |
padding: 20px; | |
} | |
} | |
@include state('active') { | |
background-color: green; | |
} | |
} |
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
.foo { | |
margin: auto; | |
} | |
.foo--bar { | |
padding: 20px; | |
} | |
.foo--baz { | |
padding: 50px; | |
} | |
@media screen and (min-width: 46.875em) { | |
.foo--baz { | |
padding: 20px; | |
} | |
} | |
.foo.is-active { | |
background-color: green; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment