You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

flag-scss-spritesheet

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flag-scss-spritesheet

scss/sass countries flags sprite sheet generator.

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

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

  • Documentation

Install

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

  • 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';
    
  • Compile SCSS file and linking CSS to HTML.

        <html lang="en">
           <head>
             <title>Example</title>
             <link href="/examples/countries.css" rel="stylesheet">
           </head>
        </html>
    
  • 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

Keywords

css

FAQs

Package last updated on 02 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts