Skip to content

Instantly share code, notes, and snippets.

@pablolobos
Created January 9, 2015 20:15
Show Gist options
  • Save pablolobos/8a8a3e97f00328f62c99 to your computer and use it in GitHub Desktop.
Save pablolobos/8a8a3e97f00328f62c99 to your computer and use it in GitHub Desktop.
scss_sass_if.scss
@mixin absolute-position($top, $right, $bottom, $left)
{
position: absolute;
@if $top != '' {
top: $top;
}
@if $right != '' {
right: $right;
}
@if $bottom != '' {
bottom: $bottom;
}
@if $left != '' {
left: $left;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment