Created
January 27, 2014 18:00
-
-
Save KittyGiraudel/8653970 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
// ---- | |
// Sass (v3.3.0.rc.2) | |
// Compass (v1.0.0.alpha.17) | |
// ---- | |
// A mixin of yours | |
@mixin app($conf: ()) { | |
// What could be the defaults parameter for your mixin | |
$conf: map-merge(( | |
speed : 1000, | |
theme : dark, | |
name : 'default', | |
duration : 250ms, | |
width : 100%, | |
widget : modular | |
), $conf); | |
// Do something with the configuration objecy | |
test: inspect($conf); | |
} | |
test { | |
// Including the mixin with a custom conf object | |
@include app(( | |
speed: 500, | |
theme: light, | |
name: 'test' | |
)); | |
// Or full default if you don't feel like specifying any parameter | |
@include app(); | |
} |
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
test { | |
test: (speed: 500, theme: light, name: "test", duration: 250ms, width: 100%, widget: modular); | |
test: (speed: 1000, theme: dark, name: "default", duration: 250ms, width: 100%, widget: modular); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment