Skip to content

Instantly share code, notes, and snippets.

@joelcoxokc
Created July 5, 2015 19:15
Show Gist options
  • Save joelcoxokc/ae5be499fad6bd29289b to your computer and use it in GitHub Desktop.
Save joelcoxokc/ae5be499fad6bd29289b to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<section>
<aside>Sidebar</aside>
<article>Content</article>
</section>
// ----
// libsass (v3.2.5)
// ----
@import "sassdash";
@import "sass-list-maps";
$container: () !default;
@mixin exports($name, $map){
$inst: ($name: $map);
$id: unique-id();
%Element{
@content;
}
$inst: _set($inst, 'Element', Element);
$container: _merge($inst, $container) !global;
}
@mixin import($name){
$inst: _get($container, $name);
$el: _get($inst, 'Element');
%Element{
@content;
el:$inst;
}
@at-root{
@extend %#{Element};
}
}
@include exports('person', ('first':'Joel', 'last':'cox')){
$me: _get($container, 'person');
me: $me;
name: _get($me, 'first');
}
.thing {
@include import('person'){
p: hello;
}
}
$li: sl-expload('modules/button/_config', '/');
.test {
info: $li;
}
.thing .thing {
p: hello;
}
.test {
info: sl-expload("modules/button/_config", "/");
}
<section>
<aside>Sidebar</aside>
<article>Content</article>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment