Agnostic::Frontend
Because in the absence of evidence, one should never assume.
Purpose
The primary purpose of this gem is to make available, in a single gem, various css tools (i.e. resets/grids) and some cookie-cutter javascripts for the Rails asset pipeline. It kinda just seems to make sense that we should really leverage the power of the asset pipeline which we're already using for getting rid of some fairly mundane and monotonous tasks.
Included CSS Resets
These files are nested under the path 'reset', so if you want to include the a reset, do so with the following sprocket directive:
/*
*= require reset/#{name_of_file}
*/
Blueprint
*= require reset/blueprint
*= require reset/bootstrap
*= require reset/bootstrap.min
Eric Meyer
*= require reset/eric-meyer
*= require reset/eric-meyer.min
HTML5 doctor
*= require reset/eric-meyer
*= require reset/eric-meyer.min
Normalize
*= require reset/normalize
*= require reset/normalize.min
Yahoo YUI3
*= require reset/yui3
*= require reset/yui3.min
Included Grid Systems
These files are nested under the path 'grid', so if you want to include the a reset, do so with the following sprocket directive:
*= require grid/#{name_of_file}
Blueprint
*= require grid/blueprint #for convenience this will package up blueprint's forms/grid/ie/print/typography files
# If, hypothetically, you decide to completely ignore and punish people for using internet explorer,
# then you're in luck, as I have left you the option of including the blueprint files individually, say:
*= require grid/blueprint/grid
*= require grid/blueprint/print
*= require grid/blueprint/forms
*= require grid/blueprint/typography
# thus forgoing the blueprint i.e. file:
*= require grid/blueprint/ie
Grid 960
*= require grid/960
*= require grid/960_rtl
*= require grid/960_12_col
*= require grid/960_12_col_rtl
*= require grid/960_16_col
*= require grid/960_16_col_rtl
*= require grid/960_24_col
*= require grid/960_24_col_rtl
Intuit (i.e. an elastic spin off of Grid960. caveat: this one includes it's own reset)
*= require grid/intuit
Fluid 960
*= require grid/fluid_960
*= require grid/bootstrap
*= require grid/bootstrap.min
Included Javascripts
//= adapt.js # some grid 960 js file
//= bootstrap # version 2.1.0
//= bootstrap.min # version 2.1.0
//= jquery.cookie # how is this not included in jquery core??
//= modernizr # how is this not included in jquery core??
//= yepnope #conditional loading of files
Installation
Add this line to your application's Gemfile:
gem 'agnostic-frontend'
And then execute:
$ bundle
Or install it yourself as:
$ gem install agnostic-frontend
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request