WordPress/wp-content/themes/twentytwentyone/.stylelintrc-css.json
ryelle afc3958ab1 Twenty Twenty-One: Add the px unit to the admin bar height custom property.
The admin bar height custom property is used in `calc` functions, which require consistent unit use, even when the value is zero. A unitless value returns an invalid value for the "height" property, where this variable is used. This also changes the stylelint rule in the theme to allow zero values with a unit, just in custom properties.

Props nico23.
Fixes #52564.


Built from https://develop.svn.wordpress.org/trunk@50388


git-svn-id: http://core.svn.wordpress.org/trunk@49999 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-18 20:46:09 +00:00

24 lines
688 B
JSON

{
"extends": [
"stylelint-config-wordpress"
],
"rules": {
"indentation": "tab",
"no-duplicate-selectors": null,
"function-url-quotes": null,
"selector-attribute-quotes": null,
"declaration-block-no-duplicate-properties": null,
"function-calc-no-unspaced-operator": null,
"selector-pseudo-class-no-unknown": null,
"selector-class-pattern": null,
"font-weight-notation": null,
"selector-type-no-unknown": null,
"max-line-length": null,
"at-rule-empty-line-before": null,
"selector-pseudo-element-colon-notation": null,
"number-leading-zero": null,
"no-descending-specificity": null,
"length-zero-no-unit": [true, {"ignore": ["custom-properties"]}]
}
}