1 # function-whitespace-after
3 Require or disallow whitespace after functions.
6 a { transform: translate(1, 1) scale(3); }
11 This rule does not check for space immediately after `)` if the very next character is `,`, `)`, or `}`, allowing some of the patterns exemplified below.
15 `string`: `"always"|"never"`
19 There *must always* be whitespace after the function.
21 The following patterns are considered violations:
24 a { transform: translate(1, 1)scale(3); }
27 The following patterns are *not* considered violations:
30 a { transform: translate(1, 1) scale(3); }
34 a { transform: translate(1, 1) scale(3); }
46 /* notice the two closing parentheses without a space between */
47 a { top: calc(1 * (1 + 3)); }
51 /* notice the ), with no space after the closing parenthesis */
52 a { padding: calc(1 * 2px), calc(2 * 5px); }
56 /* notice the )}, with no space after the closing parenthesis */
58 max-height: #{($line-height) * ($lines-to-show)}em;
63 /* notice the )}, with no space after the closing parenthesis */
65 max-height: ((@line-height) * (@lines-to-show))em;
71 There *must never* be whitespace after the function.
73 The following patterns are considered violations:
76 a { transform: translate(1, 1) scale(3); }
79 The following patterns are *not* considered violations:
82 a { transform: translate(1, 1)scale(3); }