Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 777 Bytes

README.md

File metadata and controls

47 lines (33 loc) · 777 Bytes

radii

Specify scales for radii.

a {
  border-radius: 2px;
}
/**              ↑
 *               This radius */

This rule can automatically fix all of the problems reported.

This rule checks <length> and <percentage> values.

This rule can be paired with the declaration-property-unit-allowed-list rule in stylelint, using the RegEx:

/radius$/

Options

array of objects as {scale: [], units: []}

Given:

[{ "scale": [1, 2], "units": ["px"] }]

The following patterns are considered violations:

a {
  border-radius: 4px;
}

The following patterns are not considered violations:

a {
  border-top-right-radius: 2px;
}