Skip to content

Instantly share code, notes, and snippets.

@lunelson
Created April 28, 2013 20:29
Show Gist options
  • Save lunelson/5478299 to your computer and use it in GitHub Desktop.
Save lunelson/5478299 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com, the Sass playground.
=position($type, $params...)
position: #{$type}
@each $param in $params
#{nth($param,1)}: #{nth($param,2)}
.test
+position(absolute, bottom 0px, top 0px)
.test2
+position(relative, right 3px)
.test {
position: absolute;
bottom: 0px;
top: 0px;
}
.test2 {
position: relative;
right: 3px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment