All Projects → lipis → Flag Icon Css

lipis / Flag Icon Css

Licence: mit
🎏 A curated collection of all country flags in SVG — plus the CSS for easier integration

Programming Languages

CSS
56736 projects
SCSS
7915 projects
Less
1899 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Flag Icon Css

Circle Flags
A collection of 300+ minimal circular SVG country flags
Stars: ✭ 139 (-98.26%)
Mutual labels:  country, svg
PhoneCountryCodePicker
An iOS tableview picker for PhoneCountryCode (English & Chinese supported)
Stars: ✭ 31 (-99.61%)
Mutual labels:  country-flags, country
flag-icons-rails
flag-icon-css sass gem for use in Ruby/Rails projects.
Stars: ✭ 32 (-99.6%)
Mutual labels:  country-flags, icon-css
Angular Svg Timer
An SVG-based timer button in AngularJS
Stars: ✭ 11 (-99.86%)
Mutual labels:  svg
Gantt Elastic
Gantt Chart [ javascript gantt chart, gantt component, vue gantt, vue gantt chart, responsive gantt, project manager , vue projects ]
Stars: ✭ 869 (-89.11%)
Mutual labels:  svg
Qpdialcodepickerview
International Dial Code Picker View for Country or Area 国家或地区国际区号选择器
Stars: ✭ 15 (-99.81%)
Mutual labels:  country
Angled Edges
📐 Quickly create angled section edges using only Sass
Stars: ✭ 969 (-87.86%)
Mutual labels:  svg
Go country
Country is the package that helps you to get country name and dialling code by the country ISO 3166-1 Alpha-2 code.
Stars: ✭ 11 (-99.86%)
Mutual labels:  country
React Inlinesvg
An SVG loader component for ReactJS
Stars: ✭ 952 (-88.07%)
Mutual labels:  svg
Ikonograph
⚠️ This project is no longer mantained
Stars: ✭ 13 (-99.84%)
Mutual labels:  svg
Geochile
Esta es una api de Geocodificación, para que, con las coordenadas Latitud y Longitud se entregue una lista de ciudades cercanas.
Stars: ✭ 13 (-99.84%)
Mutual labels:  country
Darkbetter
Dark theme for ruTorrent, but better
Stars: ✭ 12 (-99.85%)
Mutual labels:  svg
Iso3166 1
🇺🇸 The smallest, fastest, node module for ISO 3166-1 alpha 2/3 helper lookup/parser. Browserify/Webpack friendly.
Stars: ✭ 20 (-99.75%)
Mutual labels:  country
Vectorskinning
SVG Image deformation tool. Support cubic Beizer spline only.
Stars: ✭ 11 (-99.86%)
Mutual labels:  svg
Resvg
An SVG rendering library.
Stars: ✭ 964 (-87.92%)
Mutual labels:  svg
Gi
Native Go (golang) Graphical Interface system (2D and 3D), built on GoKi tree framework
Stars: ✭ 864 (-89.18%)
Mutual labels:  svg
Ruby Gem Downloads Badge
Clean and simple gem downloads count badge, courtesy of http://shields.io/. You can checkout the application directly at the following URL:
Stars: ✭ 29 (-99.64%)
Mutual labels:  svg
Wechat
🔥 iOS 利用MVVM + RAC + ViewModel-Based Navigation来搭建微信(WeChat 7.0.0+)的整体基本架构,以及实现微信朋友圈、通讯录、下拉小程序、搜索等主要功能,代码规范惊为天人、注释详解令人发指、细节处理精益求精、核心功能配备文档、接近98%还原度的原生App视觉体验,代码不多,注释多。(持续更新,敬请期待,欢迎Star和Fork…)
Stars: ✭ 870 (-89.1%)
Mutual labels:  svg
Librecms
Free Open Source Content Management System, based on PHP, Bootstrap and jQuery.
Stars: ✭ 12 (-99.85%)
Mutual labels:  svg
Diagram Js
A toolbox for displaying and modifying diagrams on the web.
Stars: ✭ 881 (-88.96%)
Mutual labels:  svg

flag-icons

A curated collection of all country flags in SVG — plus the CSS for easier integration. See the demo.

Install

You can either download the whole project as is or install it via npm or Yarn:

npm install --dev flag-icon-css
# or
yarn add --dev flag-icon-css

Usage

For using the flags inline with text add the classes .flag-icon and .flag-icon-xx (where xx is the ISO 3166-1-alpha-2 code of a country) to an empty <span>. If you want to have a squared version flag then add the class flag-icon-squared as well. Example:

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

You could also apply this to any element, but in that case you'll have to use the flag-icon-background instead of flag-icon and you're set. This will add the correct background with the following CSS properties:

background-size: contain;
background-position: 50%;
background-repeat: no-repeat;

Which means that the flag is just going to appear in the middle of an element, so you will have to set manually the correct size of 4 by 3 ratio or if it's squared add also the flag-icon-squared class.

Development

Run the yarn to install the dependencies after cloning the project and you'll be able to:

To build *.less files

$ yarn build

To serve it on localhost:8000

$ yarn start

To have only specific countries in the css file, remove the ones that you don't need from the flag-icons-list.less file and build it again.

Credits

This project wouldn't exist without the awesome and now deleted collection of SVG flags by koppi.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].