
// Icons
@font-face {
    font-family: 'icomoon';
    src: url('../fonts/icomoon.woff2') format('woff2'), url('../fonts/icomoon.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@-webkit-keyframes icon-spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes icon-spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@mixin icon {
    font-family: 'icomoon' !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    vertical-align: baseline !important;
    background: none;

    // Better Font Rendering
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@mixin spinner-icon( $size ) {
    @include icon;
    content: "\e980"; // spinner
    -webkit-animation: icon-spin .75s infinite linear;
    animation: icon-spin .75s infinite linear;
    position: absolute;
    top: 50%;
    left: 50%;
    height: $size;
    width: $size;
    font-size: $size;
    margin-left: calc($size / -2);
    margin-top: calc($size / -2);
}