No commit activity in last 3 years
No release in over 3 years
Provides imageless css buttons for the Rails 3.1+ asset pipeline.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 2.4.3
~> 0.7.1
~> 2.4.2
~> 3.2.14
~> 10.3.2
~> 3.1.0
~> 0.26.1
~> 1.3.1
~> 1.3.9

Runtime

>= 3.1
 Project Readme

cssbuttongenerator-css-rails

Gem Travis Gemnasium Code Climate Coveralls

Gemified by Doc Walker

Provides imageless css buttons for the Rails 3.1+ asset pipeline.

Installation

Add these lines to your application's Gemfile:

# imageless css buttons packaged for the rails asset pipeline
gem 'cssbuttongenerator-css-rails', '~> 1.0.5'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cssbuttongenerator-css-rails

Usage

Add these lines to app/assets/stylesheets/application.css

/*
provides imageless css buttons from gem 'cssbuttongenerator-css-rails':
= require cssbuttongenerator-css-rails
*/

Use one or more of the following button classes:

.button_css_grey_0
.button_css_red_1
.button_css_green_2
.button_css_blue_3
.button_css_orange_4
.button_css_magenta_5
.button_css_violet_6
.button_css_green_8
.button_css_red_9
.button_css_orange_10
.button_css_blue_12
.button_css_grey_13
.button_css_orange_14
.button_css_green_15
.button_css_blue_16
.button_css_orange_18
.button_css_blue_20
.button_css_orange_21
.button_css_red_22
.button_css_red_24
.button_css_green_26

Rails/HAML examples:

= f.submit :value => 'Submit', :class => :button_css_green_2
= link_to 'Cancel', :back, :class => :button_css_blue_3

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Acknowledgements