django-icons-famfamfam

Django staticfiles with famfamfam silk and flag icon sets
Download

django-icons-famfamfam Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Other/Proprietary Li...
  • Price:
  • FREE
  • Publisher Name:
  • Dmitry Agafonov
  • Publisher web site:
  • https://github.com/agafonovdmitry/

django-icons-famfamfam Tags


django-icons-famfamfam Description

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.InstallationVia PyPI:pip install django-icons-famfamfamDirectly from GitHub:pip install git+git://github.com/agafonovdmitry/django-icons-famfamfam.gitUsageMake 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.Product's homepage


django-icons-famfamfam Related Software