color-hex-length
指定十六进制颜色的短或长表示法。
¥Specify short or long notation for hex colors.
a { color: #fff }
/** ↑
* This hex color */
fix
选项 可以自动修复此规则报告的所有问题。
¥The fix
option can automatically fix all of the problems reported by this rule.
message
次要选项 可以接受该规则的参数。
¥The message
secondary option can accept the arguments of this rule.
选项
¥Options
string
:"short"|"long"
"short"
以下模式被视为问题:
¥The following patterns are considered problems:
a { color: #ffffff; }
a { color: #ffffffaa; }
以下模式不被视为问题:
¥The following patterns are not considered problems:
a { color: #fff; }
a { color: #fffa; }
a { color: #a4a4a4; }
"long"
以下模式被视为问题:
¥The following patterns are considered problems:
a { color: #fff; }
a { color: #fffa; }
以下模式不被视为问题:
¥The following patterns are not considered problems:
a { color: #ffffff; }
a { color: #ffffffaa; }