0
0
mirror of https://github.com/lipis/flag-icons.git synced 2024-11-22 02:47:32 +01:00
🎏 A curated collection of all country flags in SVG — plus the CSS for easier integration
Go to file
Panayiotis Lipiridis 7f62b3bb09 Adde licence
2013-09-25 22:33:29 +02:00
assets Simplified Gruntfile 2013-09-25 22:18:01 +02:00
css Fixed line height 2013-09-25 22:19:30 +02:00
flags Initial commit 2013-09-23 12:56:08 +02:00
less Fixed line height 2013-09-25 22:19:30 +02:00
.editorconfig More updates 2013-09-24 00:07:24 +02:00
.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 Added assets and more examples 2013-09-25 22:00:00 +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