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

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

%icon {
    display: inline-block;
    font: normal normal normal 14px/1 django-filer-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 == check {
        $char: "E001";
    }
    @if $filename == remove {
        $char: "E002";
    }
    @if $filename == trash-o {
        $char: "E003";
    }

    @return $char;
}

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

// #####################################################################################################################
// #ICONS:start#
// use unicode characters for accessibility reasons and use aria-hidden="true" for decorative icons
// DOCS: http://filamentgroup.com/lab/bulletproof_icon_fonts.html

.cms-icon-check {
    @include icon(check);
}

.cms-icon-remove {
    @include icon(remove);
}

.cms-icon-trash-o {
    @include icon(trash-o);
}
