Twenty Twenty-One: Re-add px unit to the admin bar height custom property.

The `px` unit added in [50388] to prevent invalid values when using `calc` functions was inadvertently removed in [50972].

This re-adds the unit to ensure the issue reported in #52564 remains fixed. The same stylelint rule adjustment made in [50388] to `.stylelintrc-css.json` has also been copied over to `stylelintrc.json` file,  which is the configuration file used when linting `.scss` files.

Props ocean90.
See #52624, #52564.

git-svn-id: https://develop.svn.wordpress.org/trunk@50975 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jonathan Desrosiers 2021-05-24 18:32:17 +00:00
parent 4667ee6efe
commit 5da4eb1661
6 changed files with 7 additions and 6 deletions

View File

@ -10,6 +10,7 @@
"at-rule-empty-line-before": null,
"selector-pseudo-element-colon-notation": null,
"number-leading-zero": null,
"no-descending-specificity": null
"no-descending-specificity": null,
"length-zero-no-unit": [true, {"ignore": ["custom-properties"]}]
}
}

File diff suppressed because one or more lines are too long

View File

@ -224,7 +224,7 @@
--widget--spacing-menu: calc(0.66 * var(--global--spacing-unit));
/* Admin-bar height */
--global--admin-bar--height: 0;
--global--admin-bar--height: 0px;
}
.admin-bar {

View File

@ -227,7 +227,7 @@ $baseline-unit: 10px;
--widget--spacing-menu: calc(0.66 * var(--global--spacing-unit));
/* Admin-bar height */
--global--admin-bar--height: 0;
--global--admin-bar--height: 0px;
}
.admin-bar {

View File

@ -317,7 +317,7 @@ Twenty Twenty-One is distributed under the terms of the GNU GPL.
--widget--spacing-menu: calc(0.66 * var(--global--spacing-unit));
/* Admin-bar height */
--global--admin-bar--height: 0;
--global--admin-bar--height: 0px;
}
.admin-bar {

View File

@ -317,7 +317,7 @@ Twenty Twenty-One is distributed under the terms of the GNU GPL.
--widget--spacing-menu: calc(0.66 * var(--global--spacing-unit));
/* Admin-bar height */
--global--admin-bar--height: 0;
--global--admin-bar--height: 0px;
}
.admin-bar {