2017 © Pedro Peláez
 

library-assets famfamfam-silk-sprite

The UNOFFICIAL sprite of the Silk icons by FamFamFam (http://www.famfamfam.com/lab/icons/silk/)

image

atelierspierrot/famfamfam-silk-sprite

The UNOFFICIAL sprite of the Silk icons by FamFamFam (http://www.famfamfam.com/lab/icons/silk/)

  • Sunday, October 13, 2013
  • by picas
  • Repository
  • 1 Watchers
  • 1 Stars
  • 5,568 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 6 % Grown

The README.md

FamFamFam - Silk icons CSS sprite

The UNOFFICIAL sprites of the FamFamFam Silk web icons by FamFamFam., (*1)

!! - This work is unofficial and is not liable for FamFamFam., (*2)

Overview

This package proposes a CSS sprite constructed on the FamFamFam Silk web-icons set. The original set of icons is proposed under Creative Commons "Attribution" license, free of use as long as you attach image credits to "FamFamFam"., (*3)

To learn more about "CSS sprites" conception, see the Sprite (computer graphics) wikipedia's page., (*4)

Usage

Installation

This package is a "standalone" CSS framework. To use it, you just need to get its sources from GitHub and include the src/ content of the package in your project assets., (*5)

If you are a Bower user, the package is registered so you can write in your bower.json:, (*6)

"dependencies": {
    ...
    "atelierspierrot/famfamfam-silk-sprite": "dev-master"
}

If you are a Composer user, the package is referenced to Packagist so you can write in your composer.json:, (*7)

"require": {
    ...
    "atelierspierrot/famfamfam-silk-sprite": "dev-master"
}

The package has a library-assets type to allow handling by the Assets Manager Composer's extension. If you plan to use the manager, you can use the assets-install branch of the package, which has the AssetsManager in its requirements (to be sure it will be loaded before the sprite and be able to move it in the project assets)., (*8)

HTML usage

Once the package is included in your project, you can start to use the sprites framework., (*9)

To do so, you first need to include the CSS definitions:, (*10)

<link rel="stylesheet" href="path/to/package/src/silk-icons-sprite.min.css" />

Then you can start writing some Silk icons spans using the framework explained below., (*11)

A demonstration page is available in the global package in demo/ ; it shows in particular the list of available icons and their names., (*12)

CSS Framework

The package defines some CSS sprite classes to render some icons easily and with least of work., (*13)

The CSS framework to use the sprites is based on two classes:, (*14)

  • the first one that is common and global: web-icon,
  • the last one to choose the icon itself, which is the name of the icon.

For instance, to render a the "print" icon, you will write:, (*15)

<span class="web-icon print"></span>

As the sprite is not defined with restrictive CSS rules, you may encounter rendering problems (such as margins or paddings defined globally in your document) that can be avoid adding a reset class to your icons:, (*16)

<span class="web-icon reset print"></span>

Credits

As mentioned above, the original set of icons is made by FamFamFam (Mark James - UK) and proposed under Creative Commons Attribution license. You are free to use it in any work but you must always add a link to www.famfamfam.com in a prominent place (e.g. the page footer), including the CC-BY license and the reference to www.famfamfam.com on every page using the icons., (*17)

The sprite was generated with the help of website-performance.org and is CSS3 valid., (*18)

The minified version of the CSS file of the package was processed with the YUI Compressor., (*19)

The PNG sprite is optimized using Smush.it (TM)., (*20)

The Versions

13/10 2013

dev-assets-install

dev-assets-install http://github.com/atelierspierrot/famfamfam-silk-sprite

The UNOFFICIAL sprite of the Silk icons by FamFamFam (http://www.famfamfam.com/lab/icons/silk/)

  Sources   Download

CC-BY-NC-3.0

The Requires

 

icons famfamfam sprite

13/10 2013

dev-wip

dev-wip http://github.com/atelierspierrot/famfamfam-silk-sprite

The UNOFFICIAL sprite of the Silk icons by FamFamFam (http://www.famfamfam.com/lab/icons/silk/)

  Sources   Download

CC-BY-NC-3.0

icons famfamfam sprite

13/10 2013

dev-master

9999999-dev http://github.com/atelierspierrot/famfamfam-silk-sprite

The UNOFFICIAL sprite of the Silk icons by FamFamFam (http://www.famfamfam.com/lab/icons/silk/)

  Sources   Download

CC-BY-NC-3.0

icons famfamfam sprite

12/10 2013

v1.0.0

1.0.0.0 http://github.com/atelierspierrot/famfamfam-silk-sprite

The UNOFFICIAL sprite of the Silk icons by FamFamFam (http://www.famfamfam.com/lab/icons/silk/)

  Sources   Download

CC-BY-NC-3.0

icons famfamfam sprite