Created
June 25, 2015 00:20
-
-
Save eoneill/87ada8755f365a470224 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$placeholders: (); | |
@mixin placeholder($name) { | |
$name: "%placeholder-#{$name}"; | |
@if not index($placeholders, $name) { | |
$placeholders: append($placeholders, $name) !global; | |
@at-root %static { | |
static: true; | |
} | |
@at-root #{$name} { | |
dynamic: true; | |
} | |
} | |
@extend #{$name}; | |
@extend #{"%static"}; | |
} | |
.test .testa { | |
@include placeholder(test); | |
} | |
.test2 { | |
@include placeholder(test); | |
} | |
.test3 { | |
@include placeholder(test); | |
} |
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
.test .testa, .test2, .test3 { | |
static: true; | |
} | |
.test .testa .testa, .test .testa .test2, .test .testa .test3 { | |
dynamic: true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment