-
Notifications
You must be signed in to change notification settings - Fork 0
/
css_rules.txt
114 lines (77 loc) · 2.77 KB
/
css_rules.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
"adjoining-classes"
Don't use adjoining classes.
"order-alphabetical"
Assure properties are in alphabetical order
"box-sizing"
The box-sizing properties isn't supported in IE6 and IE7.
"box-model"
Don't use width or height when using padding or border.
"outline-none"
Use of outline: none or outline: 0 should be limited to :focus rules.
"display-property-grouping"
Certain properties shouldn't be used with certain display property values.
"bulletproof-font-face"
Use the bulletproof @font-face syntax to avoid 404's in old IE (http://www.fon
tspring.com/blog/the-new-bulletproof-font-face-syntax).
"compatible-vendor-prefixes"
Include all compatible vendor prefixes to reach a wider range of users.
"qualified-headings"
Headings should not be qualified (namespaced).
"errors"
This rule looks for recoverable syntax errors.
"duplicate-background-images"
Every background-image should be unique. Use a common class for e.g. sprites.
"duplicate-properties"
Duplicate properties must appear one after the other.
"empty-rules"
Rules without any properties specified should be removed.
"selector-max-approaching"
Will warn when selector count is >= 3800 selectors.
"gradients"
When using a vendor-prefixed gradient, make sure to use them all.
"fallback-colors"
For older browsers that don't support RGBA, HSL, or HSLA, provide a fallback c
olor.
"floats"
This rule tests if the float property is used too many times
"font-faces"
Too many different web fonts in the same stylesheet.
"font-sizes"
Checks the number of font-size declarations.
"shorthand"
Use shorthand properties where possible.
"important"
Be careful when using !important declaration
"import"
Don't use @import, use <link> instead.
"import-ie-limit"
IE6-9 supports up to 31 @import per stylesheet
"ids"
Selectors should not contain IDs.
"text-indent"
Checks for text indent less than -99px
"rules-count"
Track how many rules there are.
"regex-selectors"
Selectors that look like regular expressions are slow and should be avoided.
"overqualified-elements"
Don't use classes or IDs with elements (a.foo or a#foo).
"selector-max"
Will error when selector count is > 4095.
"selector-newline"
New-line characters in selectors are usually a forgotten comma and not a desce
ndant combinator.
"star-property-hack"
Checks for the star property hack (targets IE6/7)
"underscore-property-hack"
Checks for the underscore property hack (targets IE6)
"unique-headings"
Headings should be defined only once.
"universal-selector"
The universal selector (*) is known to be slow.
"unqualified-attributes"
Unqualified attribute selectors are known to be slow.
"vendor-prefix"
When using a vendor-prefixed property, make sure to include the standard one.
"zero-units"
You don't need to specify units when a value is 0.