浏览代码

Adjust new cssMobileFirst rule

Gaël Métais 9 年之前
父节点
当前提交
5f7c2f07b8
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/metadata/policies.js

+ 2 - 2
lib/metadata/policies.js

@@ -547,10 +547,10 @@ var policies = {
     "cssMobileFirst": {
     "cssMobileFirst": {
         "tool": "mediaQueriesChecker",
         "tool": "mediaQueriesChecker",
         "label": "Not mobile-first media queries",
         "label": "Not mobile-first media queries",
-        "message": "<p>This is the number of media queries that address small screens.</p><p>The common good practice, when creating a responsive website, is to write it \"mobile-first\". More explanation in <a href=\"http://www.sitepoint.com/introduction-mobile-first-media-queries\" target=\"_blank\">this great article</a>.</p>",
+        "message": "<p>This is the number of CSS rules inside media queries that address small screens.</p><p>The common good practice, when creating a responsive website, is to write it \"mobile-first\". More explanation in <a href=\"http://www.sitepoint.com/introduction-mobile-first-media-queries\" target=\"_blank\">this great article</a>.</p>",
         "isOkThreshold": 25,
         "isOkThreshold": 25,
         "isBadThreshold": 200,
         "isBadThreshold": 200,
-        "isAbnormalThreshold": 600,
+        "isAbnormalThreshold": 1000,
         "hasOffenders": true,
         "hasOffenders": true,
         "offendersTransformFn": function(offenders) {
         "offendersTransformFn": function(offenders) {
             return {
             return {