Last active
December 11, 2015 20:49
-
-
Save yvesvanbroekhoven/4658251 to your computer and use it in GitHub Desktop.
Spiderman is a mixin to absolute position an element in his first relative parent, top to bottom, left to right.
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
// | |
// Spiderman is a mixin to absolute position an element | |
// in his first relative parent, top to bottom, left to right. | |
// | |
// @param $offset Offset from the edge | |
// | |
@mixin spiderman($offset: 0) { | |
bottom: $offset; | |
left: $offset; | |
position: absolute; | |
right: $offset; | |
top: $offset; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment