Skip to content

About

scss/sass country flag sprite sheet generator.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

logo quila

Scss Flag Generator

scss/sass countries flags sprite sheet generator.

Language Language

hero

Source code for the demo page can be found on the flag-scss-spritesheet repo

Contents

Install

 $ git clone https://github.com/Leoglme/flag-scss-spritesheet
  1. Download the sprite sheet flags.png and place it in your directory.

  2. At the beginning of the scss file replace the value of the $spriteSheetUrl variable with the path of the image

        $spriteSheetUrl: '/path/to/images/flags.png';
  3. Compile SCSS file and linking CSS to HTML.

        <html lang="en">
           <head>
             <title>Example</title>
             <link href="/examples/countries.css" rel="stylesheet">
           </head>
        </html>
  4. Example of use

        <html lang="en">
           <body>
             <span class="flag flag-fr"></span>
             <span class="flag flag-it"></span>
             <span class="flag flag-de"></span>
             <span class="flag flag-en-uk"></span>
             <span class="flag flag-en"></span>
           </body>
        </html>

License

Copyright (c) 2021 Dibodev

About

scss/sass country flag sprite sheet generator.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages