Sha256: 772470de3f482de8cb7008dc90f8df25a24c22f50866c6f657a52e21f294cfe9

Contents?: true

Size: 817 Bytes

Versions: 1

Compression:

Stored size: 817 Bytes

Contents

@mixin font-face($style-name, $file, $family, $font-weight, $font-style, $category:"") {
    $filepath: "/assets/" + $file;
    @font-face {
        font-family: "#{$style-name}";
        src: url($filepath + ".eot");
        src: url($filepath + ".eot?#iefix") format('embedded-opentype'),
             url($filepath + ".woff") format('woff'),
             url($filepath + ".ttf")  format('truetype'),
             url($filepath + ".svg#" + $style-name + "") format('svg');
        font-weight: $font-weight;
        font-style: $font-style;
    }
    %#{$style-name} {
        font: {
            @if $category != "" {
                family: "#{$style-name}", #{$category};
            }
            @else {
                family: "#{$style-name}";
                weight: normal;
            }
        }
    }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 app/assets/stylesheets/cabinet/mixins/_fonts.scss