0.0
No commit activity in last 3 years
No release in over 3 years
Rails CSS Sprite Utils.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0
 Project Readme

RailsSprite

  usage:

    add to your Gemfile

      gem 'rails-sprite'

    bundle install

  eg.

    image source folder:

      app/assets/images/rails_xxx/sprite_sources

    image sprite source:

      icons/16x16/*.png
      icons/32x32/*.png

    image sprice to:

      app/assets/images/rails_xxx/sprite

    config:

      simple:

        ::RailsSprite.sprite(
          :root_path => "#{::File.dirname(__FILE__)}/..",
          :scope_name => "rails_app_name/",
          :recipe_path => "icons/16x16",
          :css_class_prefix => "u-icons-16x16-",
          :spacing => 10
        )