sanketsaurav / django-octicons

Django template tags for GitHub Octicons.
https://pypi.org/project/django-octicons
MIT License
15 stars 4 forks source link

Accept a `scale` argument in the tag #2

Closed sanketsaurav closed 6 years ago

sanketsaurav commented 6 years ago

The template tag currently accepts width and height arguments which help scale the icon arbitrarily. In addition to this, accept a scale argument that adjusts the width and height proportionately w.r.t. the original size.

The behaviour should be something like this:

<!-- should scale the default icon by a factor of 1.5 -->
{% octicon "thumbsup" scale="1.5" %}
sanketsaurav commented 6 years ago

Fixed in #3 by @sauravsrijan.