Skip to content

Instantly share code, notes, and snippets.

@airen
Created August 8, 2014 14:43
Show Gist options
  • Save airen/abc10b8f84c1895bd264 to your computer and use it in GitHub Desktop.
Save airen/abc10b8f84c1895bd264 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.0.rc.3)
// Compass (v1.0.0.rc.1)
// ----
//Thanks:http://web-design-weekly.com/2013/05/12/handy-sass-mixins/
@mixin abs-pos ($top: auto, $right: auto, $bottom: auto, $left: auto) {
top: $top;
right: $right;
bottom: $bottom;
left: $left;
position: absolute;
}
//Usage:
.abs {
@include abs-pos(10px, 10px, 5px, 15px);
}
.abs {
top: 10px;
right: 10px;
bottom: 5px;
left: 15px;
position: absolute;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment