You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
5 years ago | |
|---|---|---|
| .. | ||
| README.md | 5 years ago | |
| index.js | 5 years ago | |
README.md
function-calc-no-unspaced-operator
Disallow an unspaced operator within calc functions.
a { top: calc(1px + 2px); }
/** ↑
* The space around this operator */
Before the operator, there must be a single whitespace or a newline plus indentation. After the operator, there must be a single whitespace or a newline.
Options
true
The following patterns are considered violations:
a { top: calc(1px+2px); }
a { top: calc(1px+ 2px); }
The following patterns are not considered violations:
a { top: calc(1px + 2px); }
a { top: calc(calc(1em * 2) / 3); }
a {
top: calc(var(--foo) +
var(--bar));
}
a {
top: calc(var(--foo)
+ var(--bar));
}