jaynewey / django-octicons-v10

Django templatetags for GitHub Octicons v10.0.0+.
https://pypi.org/project/django-octicons-v10/
MIT License
2 stars 4 forks source link

Give option for manual px variant override #3

Closed jaynewey closed 4 years ago

jaynewey commented 4 years ago

Resolves #2.

Allow users to manually override variant calculation by specifying which variant they want to use.

Example usage:

{% octicon "alert-16" width="32" %}

For if the user wants to use the 16px variant of the icon at larger sizes, for example.