0.0
No commit activity in last 3 years
No release in over 3 years
label.css is a stylesheet providing an easy way to label html elements. This gem integrates label.css with Rails asset pipeline for easy of use.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

>= 3.0
 Project Readme

Golden Label

label.css is a stylesheet providing an easy way to label html elements.

The golden-label gem integrates label.css with Rails asset pipeline for easy of use.

Installation

Include golden-label in Gemefile

gem 'golden-label'

Then run bundle install

Usage

Add to your app/assets/stylesheets/application.css.

*= require golden/label

Add html element with label class and data-label attribute.

<figure class="label" data-label="HTML5 & CSS3">
  <img src="images/html5css3.png" alt="HTML5 & CSS3">
</figure>

Adjust positon of label by adding class combination.

  • inside can go with top, middle, bottom, left and right
  • outside can go with top and bottom

Add hover effects by adding fade or float class.

<figure class="label inside bottom left float" data-label="HTML5 & CSS3">
  <img src="images/html5css3.png" alt="HTML5 & CSS3">
</figure>

Customization

Add to your app/assets/stylesheets/golden/label/variables.sass.

$label-background-color: rgba(242, 190, 69, 0.8)
$label-font-family: Helvetica
$label-font-size: 2em
$label-font-weight: bold

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

License

use MIT license.