//######################################################################################################################
// #ICONOGRAPHY#

// default font file generated by gulp
@font-face {
    font-family: "django-admin-iconfont";
    src: url("../fonts/django-admin-iconfont.eot?v=3.2.0");
    src: url("../fonts/django-admin-iconfont.eot?v=3.2.0#iefix") format("eot"),
         url("../fonts/django-admin-iconfont.woff2?v=3.2.0") format("woff2"),
         url("../fonts/django-admin-iconfont.woff?v=3.2.0") format("woff"),
         url("../fonts/django-admin-iconfont.ttf?v=3.2.0") format("truetype"),
         url("../fonts/django-admin-iconfont.svg?v=3.2.0#django-admin-iconfont") format("svg");
    font-weight: normal;
    font-style: normal;
}

%icon {
    display: inline-block;
    font: normal normal normal 14px/1 django-admin-iconfont;
    font-size: inherit;
    text-rendering: auto;
    transform: translate(0, 0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@function icon-char($filename) {
    $char: "";

    @if $filename == archive {
        $char: "E001";
    }
    @if $filename == arrow-left {
        $char: "E002";
    }
    @if $filename == arrow-right {
        $char: "E003";
    }
    @if $filename == calendar {
        $char: "E004";
    }
    @if $filename == camera {
        $char: "E005";
    }
    @if $filename == certificate {
        $char: "E006";
    }
    @if $filename == check-circle {
        $char: "E007";
    }
    @if $filename == check {
        $char: "E008";
    }
    @if $filename == chevron-circle-down {
        $char: "E009";
    }
    @if $filename == chevron-circle-left {
        $char: "E00A";
    }
    @if $filename == chevron-circle-right {
        $char: "E00B";
    }
    @if $filename == chevron-circle-up {
        $char: "E00C";
    }
    @if $filename == chevron-left {
        $char: "E00D";
    }
    @if $filename == clipboard {
        $char: "E00E";
    }
    @if $filename == clock {
        $char: "E00F";
    }
    @if $filename == cloud-download {
        $char: "E010";
    }
    @if $filename == cloud-upload {
        $char: "E011";
    }
    @if $filename == cloud {
        $char: "E012";
    }
    @if $filename == cog {
        $char: "E013";
    }
    @if $filename == comment {
        $char: "E014";
    }
    @if $filename == credit-card {
        $char: "E015";
    }
    @if $filename == cube {
        $char: "E016";
    }
    @if $filename == desktop {
        $char: "E017";
    }
    @if $filename == envelope-square {
        $char: "E018";
    }
    @if $filename == envelope {
        $char: "E019";
    }
    @if $filename == exclamation-triangle {
        $char: "E01A";
    }
    @if $filename == eye {
        $char: "E01B";
    }
    @if $filename == file-text {
        $char: "E01C";
    }
    @if $filename == file {
        $char: "E01D";
    }
    @if $filename == files-o {
        $char: "E01E";
    }
    @if $filename == film {
        $char: "E01F";
    }
    @if $filename == flag {
        $char: "E020";
    }
    @if $filename == floppy-o {
        $char: "E021";
    }
    @if $filename == folder-open {
        $char: "E022";
    }
    @if $filename == folder {
        $char: "E023";
    }
    @if $filename == gamepad {
        $char: "E024";
    }
    @if $filename == gift {
        $char: "E025";
    }
    @if $filename == heart {
        $char: "E026";
    }
    @if $filename == home {
        $char: "E027";
    }
    @if $filename == info-circle {
        $char: "E028";
    }
    @if $filename == key {
        $char: "E029";
    }
    @if $filename == laptop {
        $char: "E02A";
    }
    @if $filename == life-ring {
        $char: "E02B";
    }
    @if $filename == lightbulb-o {
        $char: "E02C";
    }
    @if $filename == lock {
        $char: "E02D";
    }
    @if $filename == logo {
        $char: "E02E";
    }
    @if $filename == map-marker {
        $char: "E02F";
    }
    @if $filename == minus-circle {
        $char: "E030";
    }
    @if $filename == mobile {
        $char: "E031";
    }
    @if $filename == money {
        $char: "E032";
    }
    @if $filename == music {
        $char: "E033";
    }
    @if $filename == newspaper-o {
        $char: "E034";
    }
    @if $filename == pencil {
        $char: "E035";
    }
    @if $filename == picture-o {
        $char: "E036";
    }
    @if $filename == picture {
        $char: "E037";
    }
    @if $filename == plus-circle {
        $char: "E038";
    }
    @if $filename == plus {
        $char: "E039";
    }
    @if $filename == print {
        $char: "E03A";
    }
    @if $filename == refresh {
        $char: "E03B";
    }
    @if $filename == remove {
        $char: "E03C";
    }
    @if $filename == reply {
        $char: "E03D";
    }
    @if $filename == scissors {
        $char: "E03E";
    }
    @if $filename == search-plus {
        $char: "E03F";
    }
    @if $filename == search {
        $char: "E040";
    }
    @if $filename == shopping-cart {
        $char: "E041";
    }
    @if $filename == suitcase {
        $char: "E042";
    }
    @if $filename == tag {
        $char: "E043";
    }
    @if $filename == ticket {
        $char: "E044";
    }
    @if $filename == trash-o {
        $char: "E045";
    }
    @if $filename == trash {
        $char: "E046";
    }
    @if $filename == unlock-alt {
        $char: "E047";
    }
    @if $filename == upload {
        $char: "E048";
    }
    @if $filename == user {
        $char: "E049";
    }
    @if $filename == volume-up {
        $char: "E04A";
    }
    @if $filename == wrench {
        $char: "E04B";
    }

    @return $char;
}

@mixin icon($filename, $insert: before) {
    &:#{$insert} {
        content: #{"\"\\"}#{icon-char($filename) + "\""};
    }
}