Sha256: a055ac1692dc2e0f1e854012f1af0593a077a7a4ec30b7f11ce3dfa840b66b8e

Contents?: true

Size: 985 Bytes

Versions: 1

Compression:

Stored size: 985 Bytes

Contents

# This rule is taken from https://github.com/stubbornella/csslint/tree/master/src/rules
#
#
# Copyright (c) 2011 Nicole Sullivan and Nicholas C. Zakas. All rights reserved.
# TODO: Paste the CSSLint LICENSE here.
#
#
# /*
#  * Rule: Avoid too many @font-face declarations in the same stylesheet.
#  */
# /*global CSSLint*/
# CSSLint.addRule({
# 
#     //rule information
#     id: "font-faces",
#     name: "Don't use too many web fonts",
#     desc: "Too many different web fonts in the same stylesheet.",
#     browsers: "All",
# 
#     //initialization
#     init: function(parser, reporter){
#         var rule = this,
#             count = 0;
# 
# 
#         parser.addListener("startfontface", function(){
#             count++;
#         });
# 
#         parser.addListener("endstylesheet", function(){
#             if (count > 5){
#                 reporter.rollupWarn("Too many @font-face declarations (" + count + ").", rule);
#             }
#         });
#     }
# 
# });

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sasslint-0.0.1 lib/sasslint/rules/css/font-faces.rb