Sha256: a882caae6e99efcb2ec5a8b42ac67a0f9adfaf842859feec4c6c069a51b4eeb6
Contents?: true
Size: 1.26 KB
Versions: 4
Compression:
Stored size: 1.26 KB
Contents
FlagIconSass --- This project integrates [https://github.com/lipis/flag-icon-css](https://github.com/lipis/flag-icon-css) in a Ruby Gem but only the sass version. **THIS GEM IS IN EARLY BETA STATE SO USE AT YOUR OWN RISK** ### Installation In your Gemfile include: ```ruby gem 'flag-icon-sass' ``` And then execute: ```sh bundle install ``` Import the FlagIconSass styles in your `app/assets/stylesheets/application.scss`. ```scss @import "flag-icon-sass"; ``` #### Plain usage In your view: ```html <span class="flag-icon flag-icon-it"></span> ``` ```html <span class="flag-icon flag-icon-it flag-icon-squared"></span> ``` #### Rails Helper usage In your view: ```ruby flag_icon(:it) # => <span class="flag-icon flag-icon-it"></span> ``` ```ruby flag_icon(:it, true) # => <span class="flag-icon flag-icon-it flag-icon-squared"></span> ``` ```ruby flag_icon(:it, id: 'my-flag', class: 'strong') # => <span id="my-flag" class="flag-icon flag-icon-it flag-icon-squared strong"></span> ``` ### Thanks * [https://github.com/lipis/flag-icon-css](https://github.com/lipis/flag-icon-css) for flags-icon-css * [font-awesome-sass gem](https://github.com/FortAwesome/font-awesome-sass) for inspiration * [bootstrap-sass gem](https://github.com/twbs/bootstrap-sass) for inspiration
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
flag-icon-sass-1.1.3 | README.md |
flag-icon-sass-1.1.1 | README.md |
flag-icon-sass-1.1.0 | README.md |
flag-icon-sass-0.1 | README.md |