0
0
mirror of https://github.com/lipis/flag-icons.git synced 2024-11-25 13:29:24 +01:00
🎏 A curated collection of all country flags in SVG — plus the CSS for easier integration
Go to file
Panayiotis Lipiridis 896021dfd2 Updated link
2013-09-26 01:45:17 +02:00
assets Removed bluescreen 2013-09-26 01:39:19 +02:00
css Fixed line height 2013-09-25 22:19:30 +02:00
flags Removed bluescreen 2013-09-26 01:39:19 +02:00
less Fixed line height 2013-09-25 22:19:30 +02:00
.editorconfig
.gitignore Removed dist and minor updates 2013-09-24 12:25:39 +02:00
Gruntfile.coffee Simplified Gruntfile 2013-09-25 22:18:01 +02:00
index.html Updated link 2013-09-26 01:45:17 +02:00
LICENCE Adde licence 2013-09-25 22:33:29 +02:00
package.json Simplified Gruntfile 2013-09-25 22:18:01 +02:00
README.md Adde licence 2013-09-25 22:33:29 +02:00

country-flag-icons

CSS classes

.flag-icon sets the correct proportions for the flag icon when used inline with text.

.flag-icon-xx sets the background-image with the correct flag, where xx is the ISO 3166-1-alpha-2 code.

.flag-icon-squared for the squared version of the flag.

.flag-icon-background sets the the background to position: 50%, repeat:no-repeat and size:contain.

Usage

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

Credits

This project wouldn't exist without the awesome collection of svg flags: koppi/iso-country-flags-svg-collection