Commit 427695e7 authored by Lipis's avatar Lipis
Browse files

Merge pull request #5 from lipis/master

Updating gh-pages
parents be392bc3 fb7a47e7
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -3,16 +3,15 @@ module.exports = (grunt)->
  TARGET_DIR = "css"

  grunt.initConfig
    pkg: grunt.file.readJSON('package.json')
    less:
      app_css:
        src: "#{SRC_DIR}/<%= pkg.name %>.less"
        dest: "#{TARGET_DIR}/<%= pkg.name %>.css"
        src: "#{SRC_DIR}/flag-icon.less"
        dest: "#{TARGET_DIR}/flag-icon.css"

    cssmin:
      app_css:
        src: "#{TARGET_DIR}/<%= pkg.name %>.css"
        dest: "#{TARGET_DIR}/<%= pkg.name %>.min.css"
        src: "#{TARGET_DIR}/flag-icon.css"
        dest: "#{TARGET_DIR}/flag-icon.min.css"

    watch:
      css:
+5 −19
Original line number Diff line number Diff line
@@ -4,28 +4,14 @@ flag-icon-css
CSS for vector based country flags. See the
[demo](http://lipis.github.io/flag-icon-css/).

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](http://www.iso.org/iso/country_names_and_code_elements).

`.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
-----

For using the flags inline with text add the classes `.flag-icon` and `.flag-icon-xx`
to an empty `<span>`. If you want the flag to have the squared version then also add
the clas `flag-icon-squared`. Example:
(where `xx` is the
[ISO 3166-1-alpha-2 code](http://www.iso.org/iso/country_names_and_code_elements) 
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>
@@ -62,7 +48,7 @@ To serve it on `localhost:8000`

To have only specific countries in the css file, remove the ones that you don't
need from the
[`flag-icon-list.less`](https://github.com/lipis/flag-icon-css/blob/master/less/flag-icon-css-list.less)
[`flag-icon-list.less`](https://github.com/lipis/flag-icon-css/blob/master/less/flag-icon-list.less)
file and build it again.

Credits

assets/bootstrap.min.css

deleted100644 → 0
+0 −8

File deleted.

Preview size limit exceeded, changes collapsed.

+2 −3
Original line number Diff line number Diff line
window.onload = function () {
  document.getElementById('btn-bootstrap').onclick = function() {
    console.log('shit');
    if (document.getElementById('bootstrap').rel == 'stylesheet') {
      document.getElementById('bootstrap').rel = 'none';
      document.getElementById('bootstrap').rel = 'styleshit';
      document.getElementById('btn-bootstrap').innerHTML = 'Enable Bootstrap';
    } else {
      document.getElementById('bootstrap').rel = 'stylesheet';
      document.getElementById('btn-bootstrap').innerHTML = 'Disalbe Bootstrap';
      document.getElementById('btn-bootstrap').innerHTML = 'Disable Bootstrap';
    }
  }
}

bower.json

0 → 100644
+8 −0
Original line number Diff line number Diff line
{
  "name": "flag-icon-css",
  "version": "0.2.0",
  "main": ["./css/flag-icon.css", "./flags/*"],
  "ignore": [
      "**/.*"
  ]
}
Loading