General styling patterns in SASS. Provides utility mixins for spacing, alignment and cleanup.
Add this line to your application's Gemfile:
gem 'patterns'
And then execute:
$ bundle
And in your .scss file:
@import 'patterns';
Otherwise, clone the repo and copy app/assets/stylesheets where your SASS assets should be. And in your .scss file:
@import 'some-relative-directories/patterns';
See http://patterns-examples.herokuapp.com for functions and variables.
Tested on Chrome 23, Firefox 16 and IE8.
Extracted out of Hockeystick. Thanks to Scalability Inc. for giving me permission to open source this.
Code inspired by the css class based version in Placemarklist and copied gem scaffold from bourbon.
Thanks to Luke Zhang for doing the documentation website.
Feel free to fork, post issues or send any pull requests. Thanks.
MIT License