django-icons-famfamfam

0.2-1 Other/Proprietary License
  UNRATED

description

specifications

django-icons-famfamfam is a Django app that provides django staticfiles with famous famfamfam silk and flag (png) icon sets combined together into one reuseable app.

All images were additionally optimized using optipng, pngcrush and convert from imagemagick to produce minimal possible size with no loss.

Total image count: 1248. Optimization: 794 kB => 729 kB (~8% less).

Three template tags for easy usage are included via icons tag library.

Installation

Via PyPI:

pip install django-icons-famfamfam

Directly from GitHub:

pip install git+git://github.com/agafonovdmitry/django-icons-famfamfam.git

Usage

Make sure these lines are in INSTALLED_APPS in settings.py:

'django.contrib.staticfiles',
'icons_famfamfam',


In your templates:

Add something like this to CSS:

.icon { width:16px; height:16px; padding:2px; line-height:20px; }
.bgicon { padding-left:20px; background-repeat:no-repeat; line-height:20px; }
.listicon { /* ... */ }


Direct images usage:

< img class="icon" src="{{ STATIC_URL }}icons/thumb_up.png" / >

Or use special template tags bundled:

{% load icons %}

< p >{% icon 'webcam' styles='border:1px solid #ccc' classes='one two' %} See me on-line!< /p >

< p >< a href="/login/" {% bgicon 'door_in' %} >Login< /a >< /p >
< h2 {% bgicon 'user' %} >Username< /h2 >
< p >Please subscribe to our < span {% bgicon 'feed' classes="more" %} >RSS feed.< /p >

< ul >< li {% listicon 'bullet_picture' styles='font-weight:bold' %} >Item< /li >< /ul >


See example_project folder at github which contains minimal django project and provided for testing and demonstration purposes.
read more   
Last updated on August 22nd, 2012

0 User reviews so far.

SUBMIT
Django staticfiles with famfamfam silk and flag icon sets

  89 downloads

#Django staticfiles #famfamfam silk #Django #staticfiles #famfamfam #silk