Skip to content

Instantly share code, notes, and snippets.

@burrich
Created April 26, 2017 23:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save burrich/5b453b5e9bcd51a64cdb2768f13f062f to your computer and use it in GitHub Desktop.
Save burrich/5b453b5e9bcd51a64cdb2768f13f062f to your computer and use it in GitHub Desktop.
Sass component example
// an icons stack component example (used on a Font Awesome vertical stack)
%icons-stack {
position: absolute;
font-size: 1.4em;
}
@mixin icons-stack($top, $right, $bottom, $left) {
@extend %icons-stack;
top: $top;
right: $right;
bottom: $bottom;
left: $left;
}
.icons-stack-top-right {
@include icons-stack(5px, 5px, auto, auto);
}
.icons-stack-top-left {
@include stack-v(5px, auto, auto, 5px);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment