Skip to content

github-style buttons as a rails gem with scss mixins for juicy semantic goodness.

License

Notifications You must be signed in to change notification settings

Rockfordal/ghbuttons-rails

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ghbuttons-rails

This is my first fork since i dont know if there exist any easy way to extract out just the twitter bootstrap buttons im just attempting to have the class names more compatible with twitter

goal: link_to 'New', new_stuff_path, class: 'btn'

Github-style buttons for the Rails Asset Pipeline.

Inspired by and ripped out of css3-gitgub-buttons

http://nicolasgallagher.com/lab/css3-github-buttons/

Usage:

  • include the stylesheet directly, or include it in your application.css with directives
  • use the generated css wisely.
  • use the mixins to make your own semantic css.

TODO:

  • Finish sassification. I'd like the colors to be variables you can override.
  • I'd like danger and positive to be created by a mixin you can use with your own colors, so you can have your own semantic classes for emphasis.
  • I want to make some more things mixins - 'big' is presentational, not declarative.
  • Making the 'button' a semantic mixin is going to be tough - the containers modify it, and it is huge, so it will be inefficient to spit out everything multiple times.
  • Since I wrote this I found the font-awesome project and released the font-awesome rails bundle at https://github.com/bokmann/font-awesome-rails. I'm considering removing all of the complexity in this ghbuttons project around the sprites, and just making those two gems work seamlessly together.

License:

MIT license.

About

github-style buttons as a rails gem with scss mixins for juicy semantic goodness.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%