Git Product home page Git Product logo

django-icomoon's People

Contributors

sveetch avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

django-icomoon's Issues

Broken with Python 3

There is at least one issue with basestring usage in manifest parser, time to add unittest to cover django and python versions

Raise Django compatibility support to 4.0.0

I've have successfully runned quality tasks with Django 4.0 so the app seems safe up to this version.

Just need to update tox config, run it then update setup.cfg and doc about Django support.

Investigate issue with Django 1.8

Reported from an usage on some recent project with Django 1.8 :

mycomputer:someproject Emencia$ make icomoon
usage: django-instance icomoon_deploy [-h] [--version] [-v {0,1,2,3}]
[--settings SETTINGS]
[--pythonpath PYTHONPATH] [--traceback]
[--no-color]
django-instance icomoon_deploy: error: unrecognized arguments: Default icomoon.zip
make: *** [icomoon] Error 2
mycomputer:someproject Emencia$

Generated Sass icon map can be corrupted

Sometime a icon item from icomoon can have an invalid name like foo, bar because of its tags, and it should be something like foo, bar or foobar but never something we invalid characters for a Sass variables (no space, no ,, no $, etc..).

At least, the command line should validate each name and raise a warning or a blocking error when there is some invalid name.

This is to avoid unexpected issues with generated Sass map for users which forgot about the valid variable name requirement.

Add map of icons

Change template for something like:

{% for icon_name,icon_values in icons.items %}${{ icon_values.class_name }}: "{{ icon_values.utf8 }}";
{% endfor %}

$icons: (
    {% for icon_name,icon_values in icons.items %}{{ icon_values.class_name }}: ${{ icon_values.class_name }},
    {% endfor %}
);

@mixin include-icons(){
    @each $name, $value in $icons {
        .#{% templatetag openbrace %}$name{% templatetag closebrace %}::before {
            content: "#{% templatetag openbrace %}$value{% templatetag closebrace %}";
        }
    }
}

Expose icons as variables

This will be usefull to directly include icons in element rules without use @extend.

Dont know exactly how to expose them so they can be used project settings without more complex installation procedure.

Once done, a mixin could be added to create every properties needed to add icon (not only the icon character, but also font-family and stuff). But this may not fit in django-icomoon because it's sass stuff.

Archive deployment

A really usefull feature would be a command line action to automatically deploy stuff from download webfont archive on Icomoon.

So the CLI action should take a path to the zip archive then open it (in temporary dir), put the manifest and font files to the right directory, then finally generate the scss file which contains the icon map.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.