simplysass
A set of Sass mixins for use in projects
Install
npm install simplysass
With Eyeglass
If you have eyeglass installed, no more work is needed as this mixin is setup to be a eyeglass module out of the box.
With Gulp
var simplysass = includePaths; gulp;
Usage
So far, there are five mixins included (with more to come):
center-element
Will using absolute positioning & transforms, center align (either horizontally or vertically) an element.
}
or
}
clearfix
}
or
}
hide-text
Hide text for use with background images.
}
hit-area
Increase hit area for an element.
}
position
Quickly set the position of an element. The variables go something like this:
So for example if you wanted to have an element be positioned absolutely with a top of 20px and left of 20px, you could simply write:
To speed up this process, there is also a few other mixins available: