Created
March 5, 2015 00:31
-
-
Save Snugug/e45fbfe4c45d743da453 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
| <div class="half"> | |
| <div class="fluid-embed"> | |
| <iframe width="560" height="315" src="https://www.youtube.com/embed/nfWlot6h_JM" frameborder="0" allowfullscreen></iframe> | |
| </div> | |
| </div> |
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.1.0) | |
| // ---- | |
| $Private-Toolkit-Placeholders: ( | |
| ); | |
| ////////////////////////////// | |
| // Placeholder Get/Set | |
| ////////////////////////////// | |
| @function toolkit-placeholder-set($id) { | |
| $unique-id: unique-id(); | |
| $Private-Toolkit-Placeholders: map-merge($Private-Toolkit-Placeholders, ($id: $unique-id)) !global; | |
| @return $unique-id; | |
| } | |
| @function toolkit-placeholder-get($id) { | |
| @return map-get($Private-Toolkit-Placeholders, $id); | |
| } | |
| ////////////////////////////// | |
| // Generate Placeholder Class and Extend | |
| ////////////////////////////// | |
| @mixin dynamic-extend($id, $extend: true) { | |
| $placeholder-id: toolkit-placeholder-get($id); | |
| @if $extend == true { | |
| @if $placeholder-id == null { | |
| $placeholder-id: toolkit-placeholder-set($id); | |
| @at-root %#{$placeholder-id} { | |
| @content; | |
| } | |
| } | |
| @extend %#{$placeholder-id}; | |
| } | |
| @else { | |
| @content; | |
| } | |
| } | |
| @mixin button($color) { | |
| background: $color; | |
| @include dynamic-extend('button') { | |
| border: 1px solid; | |
| border-radius: 5px; | |
| padding: .25em .5em; | |
| } | |
| } | |
| .foo { | |
| @include button(red); | |
| } |
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 { | |
| background: red; | |
| @at-root %uad2118cf { | |
| border: 1px solid; | |
| border-radius: 5px; | |
| padding: .25em .5em; } | |
| } |
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
| <div class="half"> | |
| <div class="fluid-embed"> | |
| <iframe width="560" height="315" src="https://www.youtube.com/embed/nfWlot6h_JM" frameborder="0" allowfullscreen></iframe> | |
| </div> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment