New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ghbuttons-rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ghbuttons-rails

  • 0.0.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

ghbuttons-rails

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.

FAQs

Package last updated on 14 Mar 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc