Skip to content

Gem with country flags in one sprite with CSS prepared for the Rails 3.1 asset pipeline

Notifications You must be signed in to change notification settings

chic-by-choice/world_flags

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The flags of all countries in the world in one sprite.
Original work by: https://github.com/lafeber/world-flags-sprite

I've just corrected a small mistake in the original CSS and bundled it all up to be easily used with the Rails 3.1 asset pipeline.

Installation:

    gem 'world_flags', :git => 'git://github.com/djonasson/world_flags.git'

    In your app/assets/stylesheets/application.css, require the CSS that you
    want to use:

    = require world_flags/flags16
    or
    = require world_flags/flags32

Usage:

  <ul class="f32">
    <li class="flag ar">Argentina</li>
    <li class="flag au">Australia</li>
    <li class="flag at">Austria</li>
  </ul>

About

Gem with country flags in one sprite with CSS prepared for the Rails 3.1 asset pipeline

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 94.4%
  • Ruby 5.6%