django-icons-famfamfam 0.2-1

Django staticfiles with famfamfam silk and flag icon sets

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
Other/Proprietary License
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Dmitry Agafonov
HOMEPAGE:
github.com
CATEGORY:
ROOT \ Internet \ HTTP (WWW)
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.

Last updated on August 22nd, 2012

requirements

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

Add your review!

SUBMIT