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
This commit is contained in:
parent
02701a5060
commit
afc3958ab1
|
@ -17,6 +17,7 @@
|
||||||
"at-rule-empty-line-before": null,
|
"at-rule-empty-line-before": null,
|
||||||
"selector-pseudo-element-colon-notation": null,
|
"selector-pseudo-element-colon-notation": null,
|
||||||
"number-leading-zero": null,
|
"number-leading-zero": null,
|
||||||
"no-descending-specificity": null
|
"no-descending-specificity": null,
|
||||||
|
"length-zero-no-unit": [true, {"ignore": ["custom-properties"]}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -224,7 +224,7 @@
|
||||||
--widget--spacing-menu: calc(0.66 * var(--global--spacing-unit));
|
--widget--spacing-menu: calc(0.66 * var(--global--spacing-unit));
|
||||||
|
|
||||||
/* Admin-bar height */
|
/* Admin-bar height */
|
||||||
--global--admin-bar--height: 0;
|
--global--admin-bar--height: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-bar {
|
.admin-bar {
|
||||||
|
|
|
@ -227,7 +227,7 @@ $baseline-unit: 10px;
|
||||||
--widget--spacing-menu: calc(0.66 * var(--global--spacing-unit));
|
--widget--spacing-menu: calc(0.66 * var(--global--spacing-unit));
|
||||||
|
|
||||||
/* Admin-bar height */
|
/* Admin-bar height */
|
||||||
--global--admin-bar--height: 0;
|
--global--admin-bar--height: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-bar {
|
.admin-bar {
|
||||||
|
|
|
@ -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));
|
--widget--spacing-menu: calc(0.66 * var(--global--spacing-unit));
|
||||||
|
|
||||||
/* Admin-bar height */
|
/* Admin-bar height */
|
||||||
--global--admin-bar--height: 0;
|
--global--admin-bar--height: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-bar {
|
.admin-bar {
|
||||||
|
|
|
@ -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));
|
--widget--spacing-menu: calc(0.66 * var(--global--spacing-unit));
|
||||||
|
|
||||||
/* Admin-bar height */
|
/* Admin-bar height */
|
||||||
--global--admin-bar--height: 0;
|
--global--admin-bar--height: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-bar {
|
.admin-bar {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.7-beta3-50387';
|
$wp_version = '5.7-beta3-50388';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue