Created
April 26, 2017 23:49
-
-
Save burrich/5b453b5e9bcd51a64cdb2768f13f062f to your computer and use it in GitHub Desktop.
Sass component example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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