Skip to content

Instantly share code, notes, and snippets.

@Snugug
Created March 5, 2015 00:31
Show Gist options
  • Select an option

  • Save Snugug/e45fbfe4c45d743da453 to your computer and use it in GitHub Desktop.

Select an option

Save Snugug/e45fbfe4c45d743da453 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<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>
// ----
// 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);
}
.foo {
background: red;
@at-root %uad2118cf {
border: 1px solid;
border-radius: 5px;
padding: .25em .5em; }
}
<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