mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-29 04:28:07 +01:00
afc3958ab1
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
24 lines
688 B
JSON
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"]}]
|
|
}
|
|
}
|