Created
January 19, 2016 02:28
-
-
Save zephraph/7d108b45a14a19288edb to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
<div class="EditorialPromo media"> | |
<header class="EditorialPromo media-headline"> | |
Editorial Promo | |
</header> | |
</div> |
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
// ---- | |
// libsass (v3.3.2) | |
// ---- | |
@mixin namespace($namespace: "") { | |
@at-root .#{$namespace} { | |
@content; | |
} | |
} | |
@mixin block($block) { | |
$namespace: #{&} + "."; | |
$prefix: if(#{&}, $namespace, ""); | |
@at-root #{$prefix}#{$block} { | |
@content; | |
} | |
} | |
@mixin element($element) { | |
@at-root #{&}-#{$element} { | |
@content; | |
} | |
} | |
@mixin modifier($modifier) { | |
@at-root #{&}--#{$modifier} { | |
@content; | |
} | |
} | |
@include namespace(EditorialPromo) { | |
@include block(media) { | |
@include element(headline) { | |
font-weight: bold; | |
font-size: 36px; | |
} | |
} | |
} |
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
.EditorialPromo.media-headline { | |
font-weight: bold; | |
font-size: 36px; | |
} |
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
<div class="EditorialPromo media"> | |
<header class="EditorialPromo media-headline"> | |
Editorial Promo | |
</header> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment