Skip to content

Instantly share code, notes, and snippets.

@matthew-andrews
Last active December 18, 2015 17:59
Show Gist options
  • Save matthew-andrews/5822423 to your computer and use it in GitHub Desktop.
Save matthew-andrews/5822423 to your computer and use it in GitHub Desktop.
@extend-able SASS placeholder selectors for filling position:relative'd containers.
%absolute {
position: absolute;
}
%absolute-fill-width {
@extend %absolute;
left: 0;
right: 0;
}
%absolute-fill-height {
@extend %absolute;
top: 0;
bottom: 0;
}
%absolute-fill {
@extend %absolute-fill-width;
@extend %absolute-fill-height;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment