Last active
December 30, 2015 08:59
-
-
Save danyeah/7805970 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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
| // ---- | |
| // Sass (v3.3.0.rc.1) | |
| // ---- | |
| @mixin e($name) { | |
| @at-root #{&}__#{$name} { | |
| @content; | |
| } | |
| } | |
| @mixin m($name) { | |
| @at-root #{&}--#{$name} { | |
| @content; | |
| } | |
| } | |
| .media { | |
| float:left; | |
| @include e(img){ | |
| display:block; | |
| @include m(borded) { | |
| border:1px solid red; | |
| } | |
| } | |
| @include e(text) { | |
| display:block; | |
| } | |
| } |
This file contains hidden or 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
| .media { | |
| float: left; | |
| } | |
| .media__img { | |
| display: block; | |
| } | |
| .media__img--borded { | |
| border: 1px solid red; | |
| } | |
| .media__text { | |
| display: block; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment