No commit activity in last 3 years
No release in over 3 years
General styling patterns in SASS
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

>= 3.2
 Project Readme

Patterns

General styling patterns in SASS. Provides utility mixins for spacing, alignment and cleanup.

Install

Rails 3.1+

Add this line to your application's Gemfile:

gem 'patterns'

And then execute:

$ bundle

And in your .scss file:

@import 'patterns';

Other

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';

Use

See http://patterns-examples.herokuapp.com for functions and variables.

Browser Support

Tested on Chrome 23, Firefox 16 and IE8.

Credits

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.

Contribution

Feel free to fork, post issues or send any pull requests. Thanks.

License

MIT License