ahmtcnbs / lang-flag-icon

SCSS for icons with flags for countries and/or languages and Modernizr-style "show-for-..." and "hide-for-..." classes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lang-flag-icon

SCSS to create css for icons with flags for countries

Description

Icons

css for for elements to display flags representing a country

Add [fa] and fa-flag-XX and [fa-flag-squared] where

  • fa is for inline elements (eq. <i> or <span>)
  • fa-flag-XX for the flag for country-code XX where XX is the 2-charts country-code given by ISO 3166-1-alpha-2 2-char codes for countries
  • fa-flag-squared (optional) will give a square flag instead of the default 4/3-size

Example

<button><i class="fa fa-flag-dk"></i>This is Denmark</button>
<button><i class="fa fa-flag-de"></i>This is Germany</button>

Installation

bower

bower install https://github.com/FCOO/lang-flag-icon.git --save

Demo

http://FCOO.github.io/lang-flag-icon/demo/

Copyright and License

This plugin is licensed under the MIT license.

Copyright (c) 2020 FCOO

Contact information

Niels Holt nho@fcoo.dk

Credits and acknowledgements

flag-icon-css by Lipsi

About

SCSS for icons with flags for countries and/or languages and Modernizr-style "show-for-..." and "hide-for-..." classes

License:MIT License


Languages

Language:CSS 100.0%Language:JavaScript 0.0%