Created
September 11, 2015 09:19
-
-
Save cahnory/8fdaa01f08422a693f4e 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
@mixin hold-once($name) { | |
// if placeholder not in declared ones | |
@if not index($PLACEHOLDER__DECLARED, $name) { | |
// set placeholder as declared | |
$PLACEHOLDER__DECLARED: append($PLACEHOLDER__DECLARED, $name)!global; | |
// declare placeholder | |
%#{$name} { | |
@content; | |
} | |
} | |
} | |
$PLACEHOLDER__DECLARED: ()!default; | |
%foo { | |
foo: 1; | |
} | |
%foo { | |
foo: 2; | |
} | |
@include hold-once('bar') { | |
bar: 1; | |
} | |
@include hold-once('bar') { | |
bar: 2; | |
} | |
@include hold-once('bar') { | |
bar: 3; | |
} | |
.foo { @extend %foo } | |
.bar { @extend %bar } |
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
.foo { | |
foo: 1; | |
} | |
.foo { | |
foo: 2; | |
} | |
.bar { | |
bar: 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment