Socket
Book a DemoInstallSign in
Socket

flag-icon-sass

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flag-icon-sass

1.1.3
bundlerRubygems
Version published
Maintainers
1
Created
Source

FlagIconSass

This project integrates 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:

gem 'flag-icon-sass'

And then execute:

bundle install

Import the FlagIconSass styles in your app/assets/stylesheets/application.scss.

@import "flag-icon-sass";

Plain usage

In your view:

<span class="flag-icon flag-icon-it"></span>
<span class="flag-icon flag-icon-it flag-icon-squared"></span>

Rails Helper usage

In your view:

flag_icon(:it)
# => <span class="flag-icon flag-icon-it"></span>
flag_icon(:it, true)
# => <span class="flag-icon flag-icon-it flag-icon-squared"></span>
flag_icon(:it, id: 'my-flag', class: 'strong')
# => <span id="my-flag" class="flag-icon flag-icon-it flag-icon-squared strong"></span>

Thanks

FAQs

Package last updated on 10 Feb 2016

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.